Skip to content

Rent calculator app that takes address and multiple house parameters as input and retrieves information about the property from publicly available databases. The app then sends this data to the Google spreadsheet ws.here the final value is calculated and returned. Works only in The Netherlands.

Notifications You must be signed in to change notification settings

krifpvlic/rent-calculator-nodejs

 
 

Repository files navigation

Rent calculator and house info lookup

Web-application that calculates the approximate max legal price of any property that is used for living in the Netherlands. User can look up different information about the house such as total area, build year, WOZ value, energy label and energy Index. The application scrapes data from multiple publicly open databases, shows it and calculates the result based on it.

Features

  • Calculates rent price in the Netherlands
  • Displays information about the property
  • Shows all previous requests with according info

Demo

Live version🏠

How to run the application locally

Put .env in the root directory. Format:

PORT = 10000 ENERGY_LABEL_API_KEY = BAG_API_KEY = SPREADSHEET_ID = GOOGLE_APPLICATION_CREDENTIALS = NODE_ENV = production OR development

npm i to install dependencies

npm start to start the server

cd frontend && npm run dev to start the frontend

Descirption of main javascript files

  • server.js: server set up with express, has endpoint that takes address entered by the user and finds the data about it. Has multiple API requests.
  • scrapeLogic.js: has functions that scrape websites listed below, to obtain information about the house.
  • calculateRentPrice.js: sends API/scraped data to the spreadsheet that calculates the result
  • main.js: makes an API call and displays the result in the frontend, has miscelaneous code for remembering last form input, loading animation, etc.

Resources that were used to obtain data

Screenshots

Main input form

screenshot1.png

Results display

screenshot2.png

Records of previous requests

screenshot3.png

About

Rent calculator app that takes address and multiple house parameters as input and retrieves information about the property from publicly available databases. The app then sends this data to the Google spreadsheet ws.here the final value is calculated and returned. Works only in The Netherlands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 39.2%
  • SCSS 24.8%
  • CSS 23.4%
  • HTML 12.6%