Skip to content

This repo contains all the src files for CRUD API created using Node JS , Express JS framework, Mongo DB, Mongoose ODM library.

Notifications You must be signed in to change notification settings

SHERLOCKx90/Backend-restful-CRUD-API-NodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend-restful-CRUD-API-NodeJS🟢

This repo contains all the src files for CRUD API created using Node JS , Express JS framework, Mongo DB, Mongoose ODM library.

CRUD API Project

This is a CRUD (Create, Read, Update, Delete) API project built with Node.js and Express.js. It provides endpoints for managing resources through HTTP requests.

Prerequisites

Before getting started, ensure that you have the following installed:

  • Node.js (version X.X.X)
  • npm (Node Package Manager, usually comes with Node.js installation)

Installation

  1. Clone this repository:

    git clone https://github.com/your-username/crud-api-project.git
    
  2. cd crud-api-project

  3. npm install

Usage

To start the server and run the API, use the following command:

API Endpoints

The API provides the following endpoints for managing resources:

  • GET /api/resources: Retrieve all resources
  • GET /api/resources/:id: Retrieve a specific resource by ID
  • POST /api/resources: Create a new resource
  • PUT /api/resources/:id: Update a specific resource by ID
  • DELETE /api/resources/:id: Delete a specific resource by ID

You can use tools like Postman or cURL to send HTTP requests to these endpoints and interact with the API.

Configuration

The API can be configured by modifying the .env file in the project root directory. Available configuration options include:

PORT: The port number on which the server should listen (default: 3000) DB_URI: The URI of the database connection Make sure to create a .env file and provide the necessary values for these configuration options.

Contributing

Contributions are welcome! If you find any issues or want to contribute new features, feel free to open a pull request.

License

This project is licensed under the MIT License.

Feel free to customize this template according to your specific project requirements. Remember to replace placeholders such as `your-username` and update the content accordingly.

About

This repo contains all the src files for CRUD API created using Node JS , Express JS framework, Mongo DB, Mongoose ODM library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published