This repository implements the firebase authentication example shown in this tutorial. The original example only allows Google authentication, this example has been enriched with the Email/Password authentication method.
In order to run the example you need to install Docker and docker-compose and take the following steps:
- Clone this respository
- Create the file
server/src/firebase/credentials.jsonfollowing the instructions contained in the aforementioned tutorial - Create the file
frontend/src/firebaseConfig.jsonwith the configuration that you app needs to contact the firebase authentication server. In the tutorial this information are shown in the screenshot titledAdd firebase to your app. The json file will result in something like
{
"apiKey": "your-apiKey",
"authDomain": "your-authDomain",
"projectId": "your-projectId",
"storageBucket": "your-storageBucket",
"messagingSenderId": "your-messagingSenderId",
"appId": "your-appId"
} - Then run
docker-compose build - And finally
docker-compose up
When the server and the frontend finish to load you should be able to contact the frontend at this address