It's a microsservice with a basic CRUD and a endpoint that returns the ideal beer according to the temperature given. It also returns a playlist based on the beer style.
It integrates with Spotify API to get playlists and tracks.
$ yarn install
Before running any of the scripts bellow, don't forget to create a .env
file with a mongo db uri and your spotify's client id and client secret.
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
# unit tests
$ yarn test:watch
# test coverage
$ yarn test:cov
You can find the API and endpoints documentation HERE.
This API deploy is automated using Railway so, when some branch is merged in main
branch, it re deploy the application.