REST API to create and fetch workout sessions
Declare a .env file with your desire configuration, an example is provided (.env-example).
Once you have your configuration ready, and you are sure you have the dependencies install in your PC do:
> docker-compose build
> docker-compose up -dTo check the logs of the containers do:
docker-compose logs -fTo stop the services (containers) do:
docker-compose downBe aware the database has a persistent volume, in case that you want to delete this volume to start fresh do:
docker-compose down -vor
docker volume rm mongodb_datadocker exec -it node-sweat bash -c "bash generate-jwt.sh {replace-with-user-id}"At the moment userId is not being checked against the database, so you can use any integer.
To access the api documentation go to:
http://localhost:3000/documentation
(Make sure to change the host and port according to whatever you configure in your .env file)
- Add unit and integration tests
- Configure CI/CD in github and gitlab
Note: Make sure you do not commit your secrets to the repository.