Toy Application demonstrating embedded spreadsheets and long running tasks in flask. Paste in data with missing values and press impute. Random forest imputation takes place as a background job and the front end checks in every couple seconds to see if it's done.
Includes:
- Login / User Registration with email confirmation (Learn More)
- Bootstrap 4 via bootstrap-flask
- Heroku Procfile (Learn More)
- Redirect to HTTPS and Content Security Policy (CSP) Support* via flask-talisman
- Blueprint app structure (Learn More)
- Easy database upgrades via flask-migrate
*This template ships with a more relaxed CSP than included with flask-talisman by default in order to allow Bootstrap 4 to work properly. Please refer to flask-talisman documentation to decide what's right for your site.
- Set up a virtual environment and install the requirements more info
- Create a .env file in the root directory (/.venv) more info
- Set up your gmail accout to allow third party sign-in. See above link for more info.
- Sample .env file:
FLASK_APP=flaskapp MAIL_SERVER=smtp.googlemail.com MAIL_PORT=587 MAIL_USE_TLS=1 MAIL_USERNAME=example@gmail.com MAIL_PASSWORD=examplepassword SECURITY_PASSWORD_SALT=put_your_password_salt_here SECRET_KEY=put_your_secret_key_here
- run
flask db upgradeto setup the database.