Skip to content

A CRUD Restful API using the NodeJs , ExpressJs and MongoDB -> Mongoose.

License

Notifications You must be signed in to change notification settings

Technology-Geek/Simple_Node_Restful_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Node Restful API

A CRUD Restful API using the NodeJs , ExpressJs and MongoDB -> Mongoose.

Setup

Create .env file with your configuration keys to "configuration/.env" like .env.example

httpPort=<Port Number>
mongoURI='<MongoDB Connection String>'
mongoDBName='<Your DB Name>'

Install Dependencies

npm install

Quick Start

# production mode
$ npm start

# development mode
$ npm run dev

End Points Examples

  • Get All Books

    GET /book

  • Get Book by ISBN

    GET /book/:ISBN

  • Add Book

    POST /book

    Body
    {
    "ISBN" : "isbn" ,
    "title" : "book title" ,
    "description" : "book description" ,
    "publishYear" : 2000
    }
  • Edit Book

    PUT /book/:ISBN

    Body
    {
    "title" : "new book title"
    }
  • Delete Book

    DELETE /book/:ISBN

App Info

Author

Technology-Geek

Version

1.0.0

License

This project is licensed under the MIT License

About

A CRUD Restful API using the NodeJs , ExpressJs and MongoDB -> Mongoose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published