Code Monkey home page Code Monkey logo

hotel-room-booking-app's Introduction

Hotel Room Booking App

This is a full stack web application built using React, Node.js, Express, and MongoDB. It is a hotel room booking app where users can book a room in a hotel of their choice. Users can also add hotels to their wishlist and view their bookings and wishlist.

Demo

Screenshots

image

image

Whishlist

image

Search

image

Filter

image

image

Routes

Example: http://localhost:5000/api/hotels

{
  "name": "The Oberoi",
  "description": "A five-star hotel in Bengaluru that offers spacious rooms, lush gardens and a range of dining options.",
  "thumbnail": "https://p.bookcdn.com/data/Photos/Big/2802/280227/280227909/The-Oberoi-Bengaluru-photos-Exterior-Exterior-View.JPEG",
  "photos": [
    "https://i.travelapi.com/hotels/1000000/30000/21700/21672/091e0da7_z.jpg",
    "https://i.travelapi.com/lodging/1000000/30000/21700/21672/e66fb5e5_z.jpg",
    "http://www.cfmedia.vfmleonardo.com/imageRepo/6/0/102/968/196/TOBL_Business_Centre_board_room_1_P.jpg",
    "https://q-xx.bstatic.com/xdata/images/hotel/840x460/47332041.jpg?k=57b8804a2c78b7c0d606a6296307f81887bc85dd6ad2c46ae3ce99b6b026e9c6&o=",
    "https://q-xx.bstatic.com/xdata/images/hotel/max1280x900/47333165.jpg?k=db4d3a70602042f50cd96765f627bdc1c6c9d8bbb0d9ae350027bd650afb4f99&o=",
    "https://i.travelapi.com/lodging/1000000/30000/21700/21672/51d47acc_z.jpg",
    "http://www.cfmedia.vfmleonardo.com/imageRepo/6/0/102/968/450/TOBL_The_Lobby_new_big_P.jpg"
  ],
  "facilities": [
    "Free Wi-Fi",
    "Swimming pool",
    "Spa",
    "Restaurant",
    "Bar",
    "Gym",
    "Parking"
  ],
  "totalBookings": 89,
  "rating": 4.7,
  "minPrice": 9000,
  "maxPrice": 20000,
  "type": "Luxury",
  "address": {
    "street": "37-39, Mahatma Gandhi Road",
    "city": "Bengaluru",
    "state": "Karnataka",
    "country": "India",
    "zip": "560001"
  }
}
  • POST /api/auth/register
  • POST /api/auth/login
  • GET /api/auth/profile
  • POST /api/auth/addTowishlist
  • POST /api/auth/removeFromWishlist
  • POST /api/bookings
  • GET /api/bookings
  • DELETE /api/bookings/:id
  • PUT /api/bookings/:id
  • POST /api/hotels
  • GET /api/hotels
  • GET /api/hotels/:id
  • DELETE /api/hotels/:id
  • PUT /api/hotels/:id
  • POST /api/rooms
  • GET /api/rooms
  • DELETE /api/rooms/:id
  • PUT /api/rooms/:id

Features

  • User authentication
  • User profile
  • Add hotels to wishlist
  • Book a room
  • View bookings and wishlist

Tech Stack

  • React
  • Node.js
  • Express
  • MongoDB
  • Mongoose
  • JWT
  • Bcrypt
  • React Router

Installation

Clone the repository

git clone

Install dependencies

npm install

Start the server

npm start

hotel-room-booking-app's People

Contributors

sauravhathi avatar

Watchers

 avatar  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.