Skip to content

gaurang171/simple-rest-server-no-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple rest server - No DB

Simple Rest Server without any Database. Data stored to files. No database requried

You must have nodejs install to run this

  git clone https://github.com/gaurang171/simple-rest-server-no-db.git

if forked form this one.

  git clone https://github.com/YOUR_USERNAME/simple-rest-server-no-db.git

or you can download and extract the zip file.

Go to the directory

  cd simple-rest-server-no-db

Install npm packages

  npm install

Start server

  npm start  
  
  OR
  
  node server.js

How it Works,

  1. Creating new Item POST request : Post data should not have Id
POST /users 
  1. Retrive all items
GET /users 
  1. Retrive item with id 1
GET /users/1 
  1. Modify Item - Post/Put data must have matching ID
PUT or POST  /users/1
  1. Delete ite
DELETE   /users/1

About

Simple Rest Server without any Database. Data stored using files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published