Backend App to manage soccer teams.
GET
- Show all teams
http://localhost:3001/clubes
POST
- create a team
http://localhost:3001/clubes
POST
- consume resources
http://localhost:3001/consumir
Change file name .env-example
to .env
Start docker containers
docker-compose up -d
Use docker terminal cbc_api
:
docker exec -it cbc_api bash
Install dependencies
npm install
Start the app, this will create a populated database
npm run dev
In case of port conflict, run:
killall node # Parar qualquer aplicação node que esteja sendo executados na máquina!
docker stop $(docker ps -qa) # Para containers que estão sendo executados!