-
Checkout the repository
git clone https://github.com/Meisterschueler/python-ogn-ddb.git cd python-ogn-ddb
-
Optional: Create and use a virtual environment
python3 -m venv my_environment source my_environment/bin/activate
-
Install python requirements
pip install -r requirements.txt
-
Set environment variables
export FLASK_APP=ddb.py export FLASK_ENV=development
If you want the app to send emails, you also have to set the variables MAIL_USERNAME and MAIL_PASSWORD. Default email configuration is google mail, other server need modification in the file 'config.py'
-
Optional: insert some (fake) data into the db
flask filldata aircrafts flask filldata fakedata
-
Run the application
flask run
Now you can open the application in your brower: http://localhost:5000
They are some options, e.g. if you want to access the application from outside localhost at port 8080, you should use:
flask run -h 0.0.0.0 -p 8080