Skip to content

Developed a full-fledged REST API server with Express, MongoDB and Mongoose

License

Notifications You must be signed in to change notification settings

divyanshu-rawat/resturant-management-rest-api

Repository files navigation

Join the chat Contact me on Codementor

Twitter URL DUB

Divyanshu Say Thanks! Build Status NPM

Live Application

Live Demo Here

Description

  • Developed a full-fledged REST API server with Express, MongoDB and Mongoose
  • Serve up various REST API end points together with interaction with the MongoDB server.

Installation Instructions ❕

  • Clone or download the repo. into any fresh temporary folder.

  • Cd into that root folder you just cloned locally.

  • Open terminal in the current folder and to install all dependencies type

   npm install 
  • Now typing
   npm start 
  • will start a server !

DB Used (MongoDB)

  • MLab's MongoDB hosting platform is the fastest growing cloud Database-as-a-Service in the world. Get started with a free database and expert support.

Package Manager Used (NPM)

  • NPM is the default package manager for the JavaScript runtime environment Node.js.

Package.json (dependencies)

"dependencies": {

"body-parser": "~1.15.1",

"cookie-parser": "~1.4.3",

"debug": "~2.2.0",

"express": "~4.13.4",

"jade": "~1.11.0",

"morgan": "~1.7.0",

"serve-favicon": "~2.3.0",

"mongoose-currency": "~0.2.0",

"mongoose": "~4.7.2"

}

For Testing (Postman)

  • Postman extension can be used for testing !
  • Supercharge your API workflow with Postman! Build, test, and document your APIs faster.
  • You can now fire up postman and then perform several operations on the REST API.

Sample Data (db.json)

  • You can use the data for all the Routes dishes,promotions and leadership provided in the db.json file .

Contributing

  1. Create your branch: git checkout -b my-new-feature

  2. Commit your changes: git commit -m 'Add some feature'

  3. Push to the branch: git push origin my-new-feature

  4. Send a Pull Request

  5. Enjoy!

For advanced version

Refer Here

Examples

Images corresponding to

  • GET Request to URL localhost:3001/dishes/

alt tag

  • GET Request to URL localhost:3001/promotions

alt tag

About

Developed a full-fledged REST API server with Express, MongoDB and Mongoose

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published