- Node.js
- NPM or YARN
- Postgres Database
npm i
npm install express pg pg-hstore sequelize sequelize-cli nodemon
edit de values of username and password with the credencials you created on the installation of postegres
username: "postgres", password: "admin",
npx sequelize db:create
npx sequelize db:migrate
npm start
- users
- products
- pedidos
{ "name": " name of user ", "email": "[email protected]", "adress": " adresss number xx " }
{ "name": " name of product ", "description":" description (optional) " , "price":999.999 }
{ "produto_id": "id_of_product", "quantity": 99999 }
GET request on localhost:3333/users
GET request on localhost:3333/products
GET request on localhost:3333/users/orders