-
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
-
Notifications
You must be signed in to change notification settings - Fork 0
License
Meisterschueler/python-ogn-ddb
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published