Loads data from property APIs (currently Zoopla) and provides enhanced filtering options.
Requires a PostgreSQL database to connect to:
psql postgres -c 'CREATE DATABASE house_hunt;'
And a Zoopla API key (see https://developer.zoopla.co.uk/home to register).
For all the following commands, if you used an alternative database name or a remote database, you can specify the connection string explicitly:
DB_URL=postgresql://localhost:5432/house_hunt whatever-command-here
This command will connect to the property API and load or refresh data:
ZOOPLA_KEY=my-key-here ./src/load/index.mjs
This may take several hours to complete due to API rate limits. The process can be stopped and restarted at any time.
Once you have loaded new data, you should apply processing (this is much faster).
./src/process/index.mjs
You do not need to wait for all the data to load to run this command, and it can be run repeatedly as more data is loaded.
Once you have loaded some data, you can start the application:
./src/start/index.mjs