- Git
- NodeJs LTS
- MySQL
- API Rest Client (Postman, Insomnia, etc)
1 - Clone:
$ git clone git@github.com:thiiagoms/scalable-poc-api-alura
2 - Change credentials
in config/default.json
:
{
"mysql": {
"databaseName": "[DATABASE-NAME]",
"databaseUser": "[DATABASE-USER]",
"databasePass": "[DATABASE-PASS]",
"databaseHost": "[DATABASE-HOST]"
},
"api": {
"PORT": [API-PORT-HERE]
}
}
3 - Run migrations:
$ npm run migrate
4 - Stand up server
$ npm run dev
Listening on http://localhost:[YOUR-API-PORT] or Listening on http://localhost:8000