Land Availability Tool - Frontend
Make sure you have PostgreSQL (tested with 9.6) installed.
It's strongly suggested to use Postgres.app on OSX and to install all the other tools and dependencies using brew.
createdb landavailability-ui
Make sure you have these environment variables set:
DATABASE_URL=postgres://USERNAME:PASSWORD@HOST:PORT/DBNAME
SECRET_KEY='abcd1234'
LAND_AVAILABILITY_API_URL=http://localhost:8000
LAND_AVAILABILITY_API_TOKEN=abcd1234
Example value:
DATABASE_URL=postgres://andreagrandi@localhost:5432/landavailability-ui
If you are using a Python virtual environment, you can save these values in $venv_folder/bin/postactivate script:
export DATABASE_URL=postgres://andreagrandi@localhost:5432/landavailability-ui
...
The project is being developed and tested with Python >= 3.5.x