docker-compose up
- swagger: http://localhost:3000/api-docs/
- result page: swagger: http://localhost:3000/
- mongo-express: http://0.0.0.0:8081/
- on the project folder
- dev configuration come with a remote mongodb server
const environment = "";
with
const environment = "dev";
docker-compose up
npm i
npm run dev
- swagger: http://localhost:3000/api-docs/
- result page: swagger: http://localhost:3000/
- mongo-express: http://0.0.0.0:8081/
{
"teams": [
{
"name": "Team 1"
},
{
"name": "Team 2"
}
],
"location": "Madrid",
"matchDate": "26/11/2020",
"matchHour": "15:30",
"result": ""
}
{
"_id": "5e36fee89cea767be7d0fb82",
"teams": [
{
"_id": "5e36fee89cea767be7d0fb83",
"name": "Team 11"
},
{
"_id": "5e36fee89cea767be7d0fb84",
"name": "Team 22"
}
],
"location": "Madrid",
"matchDate": "26/11/2020",
"matchHour": "15:30",
"result": ""
}
- open 2 window on browser and make change
- swagger work only as api rest , don`t launch any even when data is updated
- is tested only get, post and put method
- the swagger example json is only for demo propose