Giter Club home page Giter Club logo

yellowrooms-back's Introduction

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

[email protected]: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.

yellowrooms-back's People

Contributors

anagudelogu avatar marurevi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

yellowrooms-back's Issues

[2ps] [B] - Setup

  • Install Rails app
  • Install Devise gem
  • Install Rspec gem
  • Install Cancancan gem

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.