Skip to content

A basic project for building RESTful APIs with Mongoose and Express.js. This project provides a simple example of how to set up a Mongoose model, create routes with Express.js, and handle CRUD operations.

Notifications You must be signed in to change notification settings

Freezler/mongoose-express-crud

Repository files navigation

Mongoose Express CRUD application

Tags: mongoose, express.js, node.js, restful-api, starter-project

A basic project for building RESTful APIs with Mongoose and Express.js.

get Started

  • 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

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

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A basic project for building RESTful APIs with Mongoose and Express.js. This project provides a simple example of how to set up a Mongoose model, create routes with Express.js, and handle CRUD operations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published