v20.10.0
"body-parser": "^1.20.2",
"dotenv": "^16.3.1",
"ejs": "^3.1.9",
"express": "^4.18.2",
"sqlite": "^5.1.1",
"sqlite3": "^5.1.7"
$ npm install -y
$ node src/app.js
environment hosted at '/127.0.0.1:3000'
'/ ' //testing route
'/produtos' //application route
GET Route response
{
"id": 0,
"nome": "",
"descricao": "",
"preco": 0.0
}
POST Route request
{
"nome": "",
"descricao": "",
"preco": 0.0
}
PUT Route request
{
"nome": "",
"descricao": "",
"preco": 0.0,
"id": 0
}
DELETE Route request
{
"id": 0
}