Tags: mongoose
, express.js
, node.js
, restful-api
, starter-project
A basic project for building RESTful APIs with Mongoose and Express.js.
- Clone the repository: git clone https://github.com//mongoose-express-starter.git
- Install dependencies: npm install
- Start the server: npm run dev / npm run start
- Use a tool like Postman or cURL to test the API endpoints
- GET /products: Retrieve a list of all products
- GET /products/:id: Retrieve a single product by ID
- POST /products: Create a new product
- PUT /products/:id: Update an existing product
- DELETE /products/:id: Delete a product
This project is licensed under the MIT License. See the LICENSE file for details.