Coder Social home page Coder Social logo

house-rental-api's Introduction

House Rental

This project an API for the reservation of houses. If you're planning a special day or event, or if you want to spend time with your family, this is the website for you.You can book a house in any city on the planet.ย  Main features of this website are:

  • Users can see details of all the Houses.
  • Users can reserve a house for a special day and in the specific city.
  • Admin users can add and dlete houses.

Built With

  • Technologies: Ruby on Rails, JWT, Rspec, Swager, PostgreSql

Link to front-end App

Live Demo

Live Demo Link

  • Kanban Board
  • Kanban Board: Kanban Board link Initial state of the Kanban Board:

Screen Shot 2022-11-09 at 4 47 02 PM Screen Shot 2022-11-09 at 4 44 54 PM

  • Front-end iamge Screen Shot 2022-11-09 at 11 44 04 AM

Getting Started

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

Prerequisites

  • A web browser like Google Chrome.
  • A code editor like Visual Studio Code with Git and nodejs.
  • Have visual-studio code or any other code editor installed on your computer.

Setup

  • In order to get a copy of this project you need to download it from link
  • Extract the zipped file and open it in your code editor

Install and start

  • Run the command below in your terminal to get all required files:
bundle install
rails db:drop db:create db:migrate
rails s

Test

  • Run tests with the next command:

  • rake rswag

Authors

๐Ÿ‘ค Sanja Mandic

๐Ÿ‘ค Yohannes Dagnachew

๐Ÿ‘ค NabilHY

๐Ÿค 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

๐Ÿ“ License

This project is MIT licensed.

house-rental-api's People

Contributors

sanja969 avatar yohannesdagnachew avatar

Watchers

 avatar

house-rental-api's Issues

[4.5 pt] Detail page

When the user selects a specific item, they can see the details page with its full description.

Fetch JSON with hame detailed info from created API

In the details page, the user can click the "Reserve" button (in the design you can see the "Configure" button - please replace it with the "Reserve" button).
Details

When the user clicks the "Add item" link in the navigation panel they can see a form for adding a new item.

Make the app responsive, creating both mobile and desktop versions.

[4 pt] My reservations

When the user clicks the "My reservations" link in the navigation panel they can see a list of their reservations (with information about item name, date and city).

[3 pt] "Delete item" link

When the user clicks the "Delete item" link in the navigation panel they can see a list of all items with title and "Delete" button.
When the user clicks the "Delete" button, the selected item is marked as removed and does not show on the main list anymore.

[3 pt] "Delete item" link

When the user clicks the "Delete item" link in the navigation panel they can see a list of all items with title and "Delete" button.
When the user clicks the "Delete" button, the selected item is marked as removed and does not show on the main list anymore.

[4 pt] Reserve an appointment

To reserve an appointment, the user has to select a date and city (username and selected item are autofilled).
Use the design based on the "Book a vespa test-ride" and add all necessary inputs.
The user can also access the "Reserve" page from the navigation panel. In that case only username is autofilled.

[7 pt] Make reservations endpoint

Generate a reservation model with user_is and home_id, as well as the date, city, and status.

Create a reservations controller with index action for showing lists of reservations and create action for making new reservations.

[4 pt] Navigation panel

User can see links to:

Motorcycles/doctors/classes/items that you selected as a theme.
"Reserve" form.
"My reservations".
"Add motorcycle/doctor/class/item that you selected as a theme" (the link is visible to everybody).
"Delete motorcycle/doctor/class/item that you selected as a theme" (the link is visible to everybody).

[3 pt] "Add item" link

When the user clicks the "Add item" link in the navigation panel they can see a form for adding a new item.

[7pt] Main page

On the main page, the user can see a list of homes. Fetch a list of homes from created API.

[3 pt] Endpoint for Homes

Generate home model and migrations for creating homes table in Postgres. Generate homes controller for returning JSON.

In the controller make index and show actions, for returning a list of homes and home details respectively in JSON.

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.