Skip to content

A RESTful API for product management built with Express.js and MongoDB. Features complete CRUD operations with proper routing and MongoDB Atlas integration.

tarun2684/express-mongodb-product-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ Product CRUD API

A simple RESTful API built using Node.js, Express, and MongoDB for managing product inventory. It supports Create, Read, Update, and Delete operations for product data.


πŸ“¦ Features

  • Create a new product
  • Retrieve all products
  • Retrieve a single product by ID
  • Update a product
  • Delete a product
  • Organized using MVC architecture (Models, Routes, Controllers)
  • MongoDB Atlas for cloud database connection

πŸ›  Tech Stack

  • Node.js
  • Express.js
  • MongoDB (via Mongoose)
  • dotenv for environment variables
  • Postman for testing

πŸ—‚ Project Structureproduct-crud-api/

β”œβ”€β”€ controllers / product.controller.js

β”œβ”€β”€ models / product.model.js

β”œβ”€β”€ routes / product.route.js

β”œβ”€β”€ .env
β”œβ”€β”€ .gitignore
β”œβ”€β”€ index.js
β”œβ”€β”€ package.json
β”œβ”€β”€ README.md

About

A RESTful API for product management built with Express.js and MongoDB. Features complete CRUD operations with proper routing and MongoDB Atlas integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published