Skip to content

Hi! This is our Hotel Booking Project. In this project both Rails is used as backend and React is used as frontend. Project is made according to the requirements in the form of Pair Programming.

License

Notifications You must be signed in to change notification settings

zunairkhan811/Hotel-Booking

Repository files navigation

** Note this Repository is only a copy of my original work done in this Main Repository **

The Hotel Booking

πŸ“— Table of Contents

πŸ“– Hotel Booking

The Hotel Booking is hotel booking application.

πŸ›  Built With

  • βœ… React
  • βœ… React-Redux
  • βœ… Ruby
  • βœ… Ruby on Rails
  • βœ… Postgresql
  • βœ… Linters

Tech Stack

Language
  • Ruby
  • React

Key Features

  • πŸ”° Authenticate users
  • πŸ”° Read all hotels
  • πŸ”° Read hotel description
  • πŸ”° Reserve a hotel
  • πŸ”° Choose a date/city to reserve
  • πŸ”° Admin can add/remove hotel

(back to top)

Kanban board link

Live Demo Link

Note: In order to have admin rights in Live Link to add or delete hotels

πŸ’» Getting Started

To get a local copy up and running, follow these steps.

  1. Download or clone this repostory.
  2. Provide a modern web browser.

API Docs:

API docs are created and are accessible by following steps:

Run below command in the terminal

rails s

Paste this Link below in the Browser

http://localhost:4000/api-docs/index.html

Prerequisites

In order to run this project you need:

  • βœ” Ruby installed in your machine. you can download it from here
  • βœ” IDE or a code editor installed in your machine.
  • βœ” IRB.
  • βœ” Get Postgresql up and running. you can download it from here.
  • βœ” Git installed in your machine.
  • βœ” Sign in or sign up to your Github account.
  • βœ” A professional editer such as VS Code.
  • βœ” An Updated web browser such as Google Chrome, you can download it from here.

Setup

  • Clone this repository to your desired folder:

  • Run this command in your command line interface:

  cd [YOUR FOLDER]
  git https://github.com/paulshaun-kdtk/Hotel-Booking.git
  cd Hotel-Booking
  bundle install
  code .
  • Update the database.yml with your database credentials under the development section

Usage

  • To run the Backend of project, execute the following command:
    bundle install
    rails db:create
    rails db:migrate
    rails s
  • In case you find any error in starting backend that might be due to credentials.yml file so delete that file and then run the commands below:
    --open your gitbash terminal--
    EDITOR="code --wait" rails credentials:edit
    --then close your credentials file--
    bundle install
    rails db:create
    rails db:migrate
    rails s
  • To run the FrontEnd of project, execute the following command:
    --open another gitbash terminal--
    cd frontend-react-app
    npm i
    npm start

Deployment

This project is deployed by the author, no permission for deployment by any other client.

Tests

  • To run the tests of project, execute the following command in root folder:
    --open your gitbash terminal--
    rspec ./spec/integration
    rspec ./spec/models

(back to top)

πŸ‘₯ Author

πŸ‘€ Muhammad Zunair khan

πŸ‘€ Assem Zhorabay

πŸ‘€ Shaun Kudzai

πŸ‘€ Obi Anthony

πŸ‘€ Mumbere Habert

(back to top)

πŸ”­ Future Features

  • Add start/end dates
  • Add share the reservation button

(back to top)

🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this project, kindly drop a start ⭐️ for the repository;

(back to top)

πŸ™ Acknowledgments

We would like to express our heartfelt gratitude to Behance Design for the wonderful design which we used according to Creative Commons license of the design.

(back to top)

πŸ“ License

This project is MIT licensed.

(back to top)

About

Hi! This is our Hotel Booking Project. In this project both Rails is used as backend and React is used as frontend. Project is made according to the requirements in the form of Pair Programming.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published