Skip to content

This project demonstrates a Simple CRUD API built with Node.js and Express.js, allowing for basic Create, Read, Update, and Delete operations on a MongoDB database. It covers fundamental backend development concepts, including handling HTTP requests, database interaction, and RESTful API design

Notifications You must be signed in to change notification settings

Ajaychaki2004/Simple-CRUD-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple CRUD API

This project demonstrates a basic CRUD (Create, Read, Update, Delete) API built using Node.js and Express.js.

Features

  • Create: Add new products to the database.
  • Read: Retrieve all products or a specific product by ID.
  • Update: Modify an existing product by ID.
  • Delete: Remove a product from the database by ID.

Technologies Used

  • Node.js
  • Express.js
  • MongoDB with Mongoose

API Endpoints

Create a Product

  • POST /api/products
{
  "name": "Product Name",
  "price": 100,
  "description": "Product Description"
}

How to run locally

  1. Clone the repository
  2. Navigate to the project directory
  3. Install dependencies
  4. Create a .env file and add your MongoDB connection string
  5. Start the server

About

This project demonstrates a Simple CRUD API built with Node.js and Express.js, allowing for basic Create, Read, Update, and Delete operations on a MongoDB database. It covers fundamental backend development concepts, including handling HTTP requests, database interaction, and RESTful API design

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published