Giter VIP home page Giter VIP logo

shahadat3669 / rent-home-now-api Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 167 KB

Rent Home Now API is RESTful API that facilitates the connection between property owners interested in renting out their properties and potential renters. The API allows for the creation of reservations on selected properties. It has been developed using the Ruby on Rails framework and uses a PostgreSQL database.

License: MIT License

Ruby 99.80% HTML 0.20%
devise devise-token-auth rails-api rails7 restful-api rspec-rails rubocop-rails ruby-on-rails ruby-on-rails-api

rent-home-now-api's Issues

[2pt] Create the users controller for API

  • Create reservation_critarias API endpoint for each following operation:
    • index: get requests for all users
    • show: get request for specific user
    • create: post request with create a new user
    • update: put request for updating existing user
    • destroy: delete request for specific user

[1pt] My Reservations page (Frontend)

  • My Reservations page allow the user to show the list of the property he has currently reserved.
  • User sees all the reserved property
  • User can delete a reserved property
  • User can update a reservation if possible

[1pt] Reserve property page (Frontend)

  • The reserve property page allows the user to reserve the property for a certain time
  • User name and property will fill up automatically
  • User has to select reservation starting and end time

[1pt] Create the categories

  • Create the properties model with the following field:
    • name
  • configure many-to-many relationships with properties.
  • Add validation rules.
  • Add test cases for the model.

[2pt] Create the properties controller for API

Create properties API endpoint for each following operation:

  • index: get requests for public properties
  • show: get requests for a specific property
  • create: post request for creating a new property
  • update: put a request for updating an existing property
  • destroy: delete request for a specific property

[2pt] Designe propery list page (Front-end)

  • Design property card component
    • The card should show an image
    • The card should show the property title
    • The card should show the initial rental price
    • Card shows the address of the property
  • Design home page all public property will show

[2pt] Create the reservation controller for API

  • Create reservation API endpoint for each following operation:
    • index: get request for all reservation
    • show: get request for the specific reservation
    • create: post request for creating a new reservation
    • update: put request for updating an existing reservation
    • destroy: delete request for the specific reservation

[1pt] Create the properties and address model

  • Create the properties model with the following fields:
    • Title
    • Description
    • bedrooms
    • beds
    • baths
    • Size
    • kind
  • Create the address model with the following fields:
    • house_no
    • street_address
    • zip_code
    • City
    • Country
  • Add validation rules
  • Add test cases for the model

[1pt] Create the users model

  • Create the users model with the following field:
    • name
    • email
    • password
    • role
    • avatar
  • Add validation rules.
  • Add test cases for the model.

[1pt] Create the reservation model

  • Create the reservation model with the following field:
    • start_date
    • end_date
    • price
    • guests
  • Add validation rules
  • Add test cases for the model

[1pt] Add property page (Frontend)

  • Add property page allows the user to add their property
  • The user has to fill up all the necessary details for a property
  • The user needs to add at least one reservation criterion for the property

[2pt] Create the reservation_critarias controller for API

  • Create reservation_critarias API endpoint for each following operation:
    • index: get request for all reservation_critaria
    • show: get request for specific reservation_critaria
    • create: post request with creating a new reservation_critaria
    • update: put a request for updating existing reservation_critaria
    • destroy: delete request for specific reservation_critaria

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.