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.txtLUUPSMAP 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 runYou might need to set the environment variable FLASK_APP first:
# UNIX
export FLASK_APP=luupsmap
# WINDOWS
set FLASK_APP=luupsmapLUUPSMAP 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 initAfter changing the model create migrations and upgrade the database using:
flask db migrate -m <descriptive-message>
flask db upgradeTo seed the database with data run:
flask data seedSeed 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 updateThis will update the CSV with missing location data and venue data. For more information see update.py.
