Skip to content

This project is about creating API end point using Ruby on Rails and deploying the API on heroku. The API has rooms and reservations endpoints. The API also has authentication and authorization for the user. The API is used in our front end React project which is based on an app to book a room in Lunar hotel.

Notifications You must be signed in to change notification settings

medaminedev66/lunar-hotel-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LUNAR HOTEL BACKEND

This project is about creating API end point using Ruby on Rails and deploying the API on heroku. The API has rooms and reservations endpoints. The API also has authentication and authorization for the user. The API is used in our front end React project which is based on an app to book a room in Lunar hotel.

The learning objective of this project are

  • Create rails app
  • Connect react front end app to rails back end
  • Use API end point to get data
  • Fetch data from the API

Deployment

  • Click here to view the documentation of the Lunar Hotel API.

Front-end Interface

You can use this API in conjunction with our front-end lunar-hotel app: see the repo

Kanban board

  • Click this link to view the Kanban board that was used while building this app.

  • Click here to view the initial state of our Kanban board.

  • At the end of this project, there are four(4) people in the team.

Built With

  • Ruby on Rails
  • Rswag

Getting Started

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

Prerequisites

Setup

  • git clone git@github.com:medaminedev66/lunar-hotel-backend.git

  • cd lunar-hotel-backend

Running The App

  • Run bundle install to install all the necessary gems
  • Run rake db:create and rake db:migrate then run rails s
  • Go to the browser and type localhost:3000 to see the app

Test

  • Run gem install rspec to install Rspec,

  • Run rspec spec to run all the test cases, and

  • Run rspec spec/name_of_test_file.rb to run test cases individually.

API Documentation

  • Used Rswag for the API documentation

Authors

👤 Adedamola Shittu

👤 Amine Smahi

👤 Daniel M. Matongo

👤 Juliana Ifionu

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hats off to Murat Korkmaz for designing the awesome template that was used. ✨
  • Microverse for giving us this chance
  • The amazing code reviewers for making us improve every day 👍

About

This project is about creating API end point using Ruby on Rails and deploying the API on heroku. The API has rooms and reservations endpoints. The API also has authentication and authorization for the user. The API is used in our front end React project which is based on an app to book a room in Lunar hotel.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •