Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
/ housensei Public archive

With more than 40 years of data, Housensei is the all-in-one solution for your HDB property market research needs.

Notifications You must be signed in to change notification settings

seowalex/housensei

Repository files navigation

Housensei

Housensei

Poster

Final Report

Development

This repository is a monorepo containing both the frontend and the backend in their respective folders.

Requirements

  • Node.js (tested on v14.18.0)
  • PostgreSQL (tested on v14.0)

The following step is common for both the frontend and backend folder.

  1. Install all dependencies and setup the pre-commit hooks:
npm install

Backend

  1. (Optional) Populate the .env file (following the .env.example file) if the default user (postgres) and password (postgres) does exist.

  2. Create and seed the database:

  • Import BTO excel file to file path src/database/data/HDB-BTO-Prices-List.xls
  • Convert the resale files from csv to xlsx and import to the following file paths:
    • src/database/data/resale-flat-prices-based-on-approval-date-1990-1999.xlsx
    • src/database/data/resale-flat-prices-based-on-approval-date-2000-feb-2012.xlsx
    • src/database/data/resale-flat-prices-based-on-registration-date-from-mar-2012-to-dec-2014.xlsx
    • src/database/data/resale-flat-prices-based-on-registration-date-from-jan-2015-to-dec-2016.xlsx
    • src/database/data/resale-flat-prices-based-on-registration-date-from-jan-2017-onwards.xlsx
npm run db:create

and

npm run db:seed
  1. Start the development server:
npm run dev

Update data

  • To update BTO table, import new BTO excel file to file path src/database/data/HDB-BTO-Prices-List.xls. Then run
npm run db:update-bto src/database/data/HDB-BTO-Prices-List.xls
  • To update Resale table, run
npm run db:update-resale

Frontend

  1. Start the development server:
npm run dev

Production

You may also choose to run the app in production mode.

  1. Build the frontend and backend:
cd frontend
npm run build
cd ../backend
npm run build
  1. Inside the backend folder, start the production server:
npm start

About

With more than 40 years of data, Housensei is the all-in-one solution for your HDB property market research needs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages