- Install Node.js
npm i
- instal PostgreSQL, create tables, fill data
node index.js
Tech Stack: Node.js, Express, PostgreSQl, PM2
- get Pizzas:
GET: /api/pizzas/
- get specific pizza:
GET: /api/pizzas/{id}
- save user:
POST: /api/users/save {email, name}
- create order:
POST: /api/orders/create {pizzas, email: order_email, user_email, name, address, phone, comment, total, currency}
- get orders by user:
POST: /api/orders/get-order-by-user {email}
- Auth
- CI
- Unit tests
- Clean up
- Learn backend