A helpful tool for users of LUUPS:
- Display all venues on a map
- Filter by voucher type, opening hours,...
LUUPSMAP has a number of dependencies. Install them using
pip install -r requirements.txt
Confirm that you can start the application by running
pip install -r requirements.txt
LUUPSMAP requires a number of environment variables to run. Create a .env
file in the application root and add at
least the following variables:
APP_SETTINGS="luupsmap.config.DevelopmentConfig"
SECRET_KEY=<application-key>
DB_USER = <db-user>
DB_PW = <db-password>
GMAPS_API_KEY=<api-key>
Confirm that you can start the application by running
flask run
You might need to set the environment variable FLASK_APP
first:
# UNIX
export FLASK_APP=luupsmap
# WINDOWS
set FLASK_APP=luupsmap
LUUPSMAP requires PostgreSQL to be running under localhost:5432
. The development database is named luups_map_dev
and needs to be created manually.
Initialize with the following command:
flask db init
After changing the model create migrations and upgrade the database using:
flask db migrate -m <descriptive-message>
flask db upgrade
To seed the database with data run:
flask data seed
Seed data is taken from the csv files in data
. These files need to be edited manually, however some data can be
auto-completed using the Google Place API by running:
flask data update
This will update the CSV with missing location data and venue data. For more information see update.py.