/Basic_CRUD_app

This is a basic application written in NODE.js { javascript } , It can perform GET, PUT, POST, PATCH, DELETE operations in MONGODB ...

Primary LanguageJavaScript

Basic_CRUD_app

This is a basic application written in NODE.js { javascript } , It can perform GET, PUT, POST, PATCH, DELETE operations in MONGODB ...

Basic CRUD Operations in Node.js with MongoDB This repository contains a simple Node.js application demonstrating basic CRUD (Create, Read, Update, Delete) operations using MongoDB as the database.

Prerequisites

Before running the application, make sure you have the following installed on your machine:

#####Node.js: Download and Install Node.js #####MongoDB: Install MongoDB #####Getting Started #####Clone

the repository:

bash

Copy code

git clone https://github.com/saiyamdubey/Basic_CRUD_app

Navigate to the project directory:

bash

Copy code cd Basic_CRUD_app Install dependencies:

bash Copy code npm install Configure MongoDB:

Make sure your MongoDB server is running.

Update the MongoDB connection details in config.js if necessary. Run the application:

bash

Copy code npm start The application will be accessible at http://localhost:3000.

API Endpoints

Create a new item:

Endpoint: POST /user Request Body: json Copy code { "name": "user Name", "description": "user description data" } Get all items:

Endpoint: GET /user Get a specific item:

Endpoint: GET /user/:id Update an item:

Endpoint: PUT /user/:id Request Body: json Copy code { "name": "Updated Item Name", "description": "Updated Item Description" } Delete an item:

##Endpoint: DELETE /items/:id Contributing Feel free to contribute to this project by opening issues or submitting pull requests. Your feedback and contributions are highly appreciated!

##License This project is licensed under the MIT License - see the LICENSE file for details.