Git Product home page Git Product logo

assignment's Introduction

Hotel Management RESTfull API Service for Node.js using MongoDB

Prerequisites

To run this sample you will need the following:

Download the Sample application and modules

Next, clone the sample repo and install the NPM. From your shell or command line:

$ git clone https://github.com/ranjeetdob18/assignment.git
$ cd your directory
$ npm install

Run the application

$ cd your directory
$ node index.js

You're done!

You will have a server successfully running on http://localhost:8000. Your REST / JSON API Endpoint will be available at ``. For user API with sample given

{
	
	"fullName" : "Ranjeet Bhardwaj",
	"mobile" : 8009056458,
	"email" : "[email protected]"
}

{
	"fullName" : "Ranjeet Bhardwaj",
	"mobile" : 8009056458,
	"email" : "[email protected]"
}

For Hotel API with sample given

{
	"name" : "Treebo Laxvas",
	"contact" : 8009056458,
	"description" : "This property also has one of the best-rated locations in Thane! Guests are happier about it compared to other properties in the area.",
	"address" : "Near Lodha Paradise, Bhivandi Bypass Road, Majiwade, Thane, , 400601 Thane, India",
	"location" : {"type"  :"Point","coordinates" : [72.9776,19.2079]}
}

For Room API with sample given

{
	"hotel_id" : "5c569d2582506440d00cdcb6",
	"capacity" : 6,
	"types" : "Queen",
	"price" : 7999
}

assignment's People

Contributors

ranjeetdob18 avatar ramu-design avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.