Skip to content

6thSemMinorProject-ModelForRealEstate/Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real Estate Model for Price Prediction

Backend of Real Estate model for Price Prediction.

API Reference

Hosted Backend Base URL

  https://realestate-minor-project.glitch.me

Get all Available Houses

  GET https://realestate-minor-project.glitch.me/house/availableHouses

Add a House

  POST https://realestate-minor-project.glitch.me/house/availableHouses
Parameter Type Description
userId string Required. The user's ID who added this house
area number Required. Area of the house
city number Required The value is between 0 and 5 (both inclusive), for reference please check values.js in frontend
location number Required The value is between 0 and 1775 (both inclusive), for reference please check values.js in frontend
wantedPrice number Required. The price that owner wants.
predictedPrice number Required. The price that model predicted for this house.

Login User

  POST https://realestate-minor-project.glitch.me/auth/login
Parameter Type Description
userEmail string Required. Email Id of the user.
userPassword string Required. Password of the user.

Signup User

  POST https://realestate-minor-project.glitch.me/auth/signup
Parameter Type Description
userEmail string Required. Email Id of the user.
userPassword string Required. Password of the user.
userName string Required. Name of the user.
userAge number Required. Age of the user.

Predict the price of a House

  POST https://realestate-minor-project.glitch.me/prediction/predict
Parameter Type Description
area number Required. Area of the house
city number The value is between 0 and 5 (both inclusive), for reference please check values.js in frontend
location number The value is between 0 and 1775 (both inclusive), for reference please check values.js in frontend

Run Locally

Clone the project

  git clone https://link-to-project

Go to the project directory

  cd Backend

Install dependencies

  npm install

Start the server

  npm start

Tech Stack

Server: Node, Express

Database: MongoDB