First, you need to install Docker and run it.
To start components locally use the following command (from inside the folder containing docker-compose.yml
file):
$ docker-compose -f docker-compose.yml -f docker-compose-dev.yml up --build
If everything's fine, you should be able to visit:
http://localhost:8080
to see web client;http://localhost:8081
to see web admin;http://localhost:5000/swagger
to see web API OpenAPI/Swagger documentation.If you want to start only one of the components (Web API or anything) then use the following command:
$ docker-compose -f docker-compose.yml -f docker-compose-dev.yml up --build webapi
To enable Firebase Cloud Messsaging in web-api
, you need to provide Google Service Account credentials.
To authenticate a service account and authorize it to access Firebase services, you must generate a private key file in JSON format.
To generate a private key file for your service account:
firebase-sdk-sa.json
and put/replace it in ./web-api/firebase/
folder.BE CAREFUL! Don't put this file under source control because it contains very sensitive credentials!