Skip to content

priti-chimanpure921/MongoDB-Express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗄️ MongoDB + Express CRUD App

A simple full-stack backend project demonstrating how to build a RESTful API using Node.js, Express.js, and MongoDB. This app performs full CRUD operations (Create, Read, Update, Delete) on a resource using a real database.

🚀 Features

✔ Connects to MongoDB Atlas (cloud database)

✔ Uses Express routes to handle API requests

✔ Supports:

🟢 Create (POST)

📄 Read (GET)

✏️ Update (PUT/PATCH)

❌ Delete (DELETE)

✔ Returns structured JSON responses

✔ Uses async/await for database operations

🧠 Technologies Used

Node.js – Backend JavaScript runtime

Express.js – Web framework

MongoDB Atlas – Cloud database

Mongoose – MongoDB ODM (Object Data Modeling)

dotenv – Manage environment configs

nodemon – Auto restart server during development

📌 Prerequisites

Before running the project, make sure you have:

✔ Node.js installed

✔ A MongoDB Atlas account + cluster

✔ A .env file with your MongoDB connection URL

📈 What You’ll Learn

By building this project you’ll understand:

✔ How to connect Express with MongoDB

✔ How to define Mongoose schemas & models

✔ How to write REST API routes

✔ How to handle async operations

✔ How to manage environment variables

🚀 Possible Enhancements

Here are ways to improve this app:

✨ Add user authentication (JWT)

✨ Add pagination & filtering

✨ Add swagger docs for API

✨ Add validation with Joi or celebrate

✨ Deploy with Render / Vercel / Heroku

About

Performed CRUD operation on DB with express error handling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors