Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saiyamdubey/basic_crud_app
This is a basic application written in NODE.js { javascript } , It can perform GET, PUT, POST, PATCH, DELETE operations in MONGODB ...
https://github.com/saiyamdubey/basic_crud_app
controllers database-management db html-css-javascript js middleware mongodb mongoose nodejs server
Last synced: about 1 month ago
JSON representation
This is a basic application written in NODE.js { javascript } , It can perform GET, PUT, POST, PATCH, DELETE operations in MONGODB ...
- Host: GitHub
- URL: https://github.com/saiyamdubey/basic_crud_app
- Owner: saiyamdubey
- Created: 2024-01-04T14:46:01.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-06-22T17:08:02.000Z (6 months ago)
- Last Synced: 2024-06-23T00:32:27.753Z (6 months ago)
- Topics: controllers, database-management, db, html-css-javascript, js, middleware, mongodb, mongoose, nodejs, server
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
#####Clonethe repository:
### bash
Copy codegit 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.