This is a public Api, built to serve as a backend for the real estate project. A project that student have to do as the last project in the main Microverse curriculum, based on the concept of software as a service.
The app allows authenticated users to access information about properties they seek to sell online and also allow users to make contact with estate agent to purchase a property. This is the backend component which is expected to run on a react front end api. The backend has different routes needed by the front end to accepts specific resources. The authentication is managed with Jwt.
api calls are currently accessed via the following ressources:
resources :sellers, only: %i[index show]
resources :houses
resources :users, only: %i[create]
resources :sessions, only: %i[create]
get '/login_user', to: 'currents#login_user'
get '/is_user_login', to: 'currents#user_login?'
get '/user_id', to: 'currents#user_id'
get 'category/:category', to: 'currents#categorize'
get '/user_homes', to: 'currents#user_homes'
get '/uploader_homes/:id', to: 'currents#user_homes'
resources :alerts, only: %i[create]
each returns a JSON response
More resources can be added as the front evolves.
Clone the repository to your local machine
$ git clone https://github.com/forison/Real-estate-api.gitcd into the directory
$ cd Real-estae-api$ rails sClone the repository to your local machine
$ git clone https://github.com/forison/Real-estate-api.gitcd into the directory
$ cd Real-estate-api$ rspec- Ruby on rails
- RSpec
👤 Addo Forison
