npm i express
npm i -d nodemon
npm i sequelize
npm i --save-dev sequelize-cli`
npm i --save pg pg-hstore
npm i --save-dev jest
npm i --save-dev sequelize-mock
run: "nodemon --inspect src/server.js",
run-migrations: "npx sequelize-cli db:migrate",
undo-migrations: "npx sequelize-cli db:migrate:undo",
undo-all-migrations: "npx sequelize-cli db:migrate:undo:all",
run-seeds: "npx sequelize-cli db:seed:all",
undo-all-seeds: "npx sequelize-cli db:seed:undo:all",
test: "jest --forceExit --detectOpenHandles"
- body:
{
"name" : "Random2",
"email" : "Random2@test.com",
"phone" : "14997654812"
}
- body:
{
"name": "Menu_Test",
"description": "Test description",
"price": 2250,
"category": "main_course"
}
url: http://localhost:3000/menu?page=0&limit=3 (to search cathegory add: &category=dessert)
- body:
{
"customer_id": 1,
"items": [
{
"menu_item_id": 1,
"quantity": 1
},
{
"menu_item_id": 2,
"quantity": 1
}
]
}
- body:
{
"status": "preparing"
}
- body:
{
"items": [
{
"menu_item_id": 1,
"quantity": 10
}
]
}