Skip to content

This is a simple application to Create, Read, Update, and Delete (CRUD) entries in a MongoDB database using Mongoose.

Notifications You must be signed in to change notification settings

Anupam-03/Week-5_Assignment_Celebal-Summer-Internship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Week-5_Assignment_Celebal-Summer-Internship

CRUD Application with MongoDB and Mongoose

This repository contains a CRUD (Create, Read, Update, Delete) application implemented using MongoDB and Mongoose.

Features

  • 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.

Technologies Used

  • Backend: Node.js, Express.js
  • Database: MongoDB
  • ODM (Object Data Modeling): Mongoose

Installation

To run this application locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/Anupam-03/Week-5_Assignment_Celebal-Summer-Internship.git
  2. Navigate into the project directory:
    cd Week-5_Assignment_Celebal-Summer-Internship
  3. Install dependencies:
    npm install
  4. 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>
    
  1. Start the application:
    npm start

Usage

  • Use Postman or any REST API client to interact with the CRUD operations exposed by the API endpoints.

Demo / Example:

Create Record:

image

Read All Records:

image

Update Record's Data:

image

Delete Record:

image

Folder Structure

  • models/: Contains Mongoose models for defining the database schema.
  • routes/: Defines routes for handling CRUD operations.
  • controllers/: Implements controller functions for handling business logic.

About

This is a simple application to Create, Read, Update, and Delete (CRUD) entries in a MongoDB database using Mongoose.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published