A completely done for you secure Flask 3 Web Application Template that includes user and admin dashboards, email notifications and more.
git clone https://github.com/michaelwalkerfl/flask-three.git
cd flask-three
python3 -m venv venv
source venv/bin/activate (if Windows, use: venv\Scripts\activate.bat
Create a file named config.env
. Do not commit this file to your repository, as it contains secrets.
Add a secret key to this file e.g., FLASK_SECRET_KEY=ThisIsOurTopSecretEncryptionKeyThatOurApplicationUses
Other variables that can be added:
APP_NAME=Flask-Three
FLASK_ENV=development
DEVELOPMENT_DATABASE=sqlite:///development.db
TEST_DATABASE=sqlite:///test.db
PRODUCTION_DATABASE=sqlite:///production.db
pip install -r requirements.txt
brew install redis (If Ubuntu/Debian use: apt install redis-server)
brew services start (or restart)
FLASK_APP=wsgi.py
flask run --cert=adhoc
These commands can be run from the command line interface to quickly set up a database, roles and an admin user for your Flask application.
flask create-database
flask create-roles
flask create-admin
Run the following command from the root directory.
python -m pytest --cov=webapp
- Docker
- CI/CD for automated tests and deployment