Skip to content

sofinms/Drinks

 
 

Repository files navigation

Build Status Built by engineers

Drinks

How to deploy dev environment locally?

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

How to enable Firebase Cloud Messaging in web-api?

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:

  • In the Firebase console, open Settings > Service Accounts.
  • Click Generate New Private Key, then confirm by clicking Generate Key.
  • Name this file 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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 36.3%
  • C# 35.3%
  • TypeScript 23.4%
  • HTML 3.9%
  • JavaScript 0.6%
  • Dockerfile 0.4%
  • CSS 0.1%