A robust RESTful API backend for a Pizza Store, built using Node.js, Express, and MongoDB. The project features full CRUD (Create, Read, Update, Delete) operations for managing pizza inventory.
Note: As this is a backend service, the primary interaction is through API requests (via Postman or Thunder Client).
GET /items- Retrieve all pizza items (Renders HTML view)GET /items/:id- Retrieve a specific pizza by ID (JSON)POST /items- Add a new pizza item (JSON)PUT /items/:id- Update an existing pizza item (JSON)DELETE /items/:id- Delete a pizza item (JSON)
- Node.js & Express.js
- MongoDB & Mongoose
- EJS (Template Engine)
- Postman (API Testing)
- Clone the repository.
- Navigate to
PizzaStoreProject/PizzaStoreProject/Major Project/src. - Run
npm installto install dependencies. - Set your
MONGO_URIin your environment variables. - Run
npm startto start the server.