Skip to content

Introducing Database-Free REST API with Node.js and Express.js Project – a lightweight solution for building RESTful APIs without traditional database dependencies. Leveraging the capabilities of Node.js and Express.js, this API offers seamless CRUD operations, making it ideal for rapid development and prototyping.

Notifications You must be signed in to change notification settings

Apsara1505/Database-Free-REST-API-With-NodeJS-and-ExpressJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Database-Free-REST-API-With-NodeJS-and-ExpressJs

This is a simple RESTful API built with Node.js and Express.js that does not require a database connection. It provides basic CRUD (Create, Read, Update, Delete) operations for managing data.

Features

  • Create: Add new data
  • Read: Retrieve existing data
  • Update: Modify existing data
  • Delete: Remove existing data

Technologies Used

  • Node.js
  • Express.js

Prerequisites

Before running this application, ensure that you have Node.js installed on your machine.

Installation

  1. Clone the repository to your local machine:

  2. Navigate to the project directory using command cd <repository_name>

  3. Install dependencies: npm install

Usage

  1. Start the server: npm start

  2. Access the API endpoints using your preferred HTTP client. Ex: Postman

API Endpoints

GET /api/users

  • Retrieves all users

GET /api/users/:id

  • Retrieves a user by ID

POST /api/users

  • Adds a new user

DELETE /api/users/:id

  • Deletes a user by ID

PATCH /api/users/:id

  • Updates a user by ID

Thank You ❤️!

About

Introducing Database-Free REST API with Node.js and Express.js Project – a lightweight solution for building RESTful APIs without traditional database dependencies. Leveraging the capabilities of Node.js and Express.js, this API offers seamless CRUD operations, making it ideal for rapid development and prototyping.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published