Skip to content

marurevi/YellowRooms-Back

Repository files navigation

Yellow Rooms - Back-end

Yellow rooms have been created to save reservations of a Hotel room. This project is have been done to provide the backend to Yellow Rooms app. On this repository, we created the database with Postgresql following the ERD design...


ERD image


We created it following the BDD method (Behavioral Driven Development). To improve the efficiency of our test, we add to this project a coverage gem to allow us to keep a register of the test behavior.

The coverage gem generates an HTML inform that can be found in the path YellowRooms-Back/coverage/index.html


ERD image


We documented the Api's endpoints with Swagger. You can check it here.


ERD image


Built With

  • Ruby on Rails
  • PostgresSQL
  • Rspect to tests
  • Swagger to create Api documentation
  • Deployed in Fly

Api's Endpoints

Authentication

POST  /api/v1/register
create account

POST  /api/v1/login
create session

DELETE  /api/v1/logout
delete session

Rooms

GET  /api/v1/rooms
list rooms

POST  /api/v1/rooms
create room

DELETE  /api/v1/rooms/{id}
delete room

Register

GET  /api/v1/reservations
list reservations

POST  /api/v1/reservations
create reservation

DELETE  /api/v1/reservations/{id}
delete reservation

Getting Started

git@github.com:marurevi/YellowRooms-Back.git
  • To get started, In the root directory run:
gem install bundler

Then run:

bundle install

Open terminal and run ruby app in the command Line:

bin/main

In case you want to run test, write the following command in your terminal:

bin/rspec

Authors

👤 Andres Agudelo

👤 Mariana Revilla Lérida

👤 Axel Soler

👤 Tadesse Alemayehu

🤝 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!

📝 License

This project is MIT licensed.

About

Back end to suport Yellow Rooms application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Generated from marurevi/readme-template