This repository contains a CRUD (Create, Read, Update, Delete) application implemented using MongoDB and Mongoose.
- Create: Allows users to add new entries to the database.
- Read: Retrieves and displays existing data from the database.
- Update: Modifies existing records in the database.
- Delete: Removes entries from the database.
- Backend: Node.js, Express.js
- Database: MongoDB
- ODM (Object Data Modeling): Mongoose
To run this application locally, follow these steps:
- Clone the repository:
git clone https://github.com/Anupam-03/Week-5_Assignment_Celebal-Summer-Internship.git
- Navigate into the project directory:
cd Week-5_Assignment_Celebal-Summer-Internship
- Install dependencies:
npm install
- Set up environment variables:
- Create a
.env
file in the root directory. - Add MongoDB connection URI in the .env file:
MONGODB_URI=<your_mongodb_uri>
- Start the application:
npm start
- Use Postman or any REST API client to interact with the CRUD operations exposed by the API endpoints.
models/
: Contains Mongoose models for defining the database schema.routes/
: Defines routes for handling CRUD operations.controllers/
: Implements controller functions for handling business logic.