A starter kit for a flask application with Authentication using the factory pattern and Blueprints.
Only sqlite is supported. To use other databases, install the required drivers and update the SQLALCHEMY_DATABASE_URI
environment variable with the corresponding details. Learn more from the Flask SQLAlchemy Documentation
I created this to help users to follow some technical articles I've written on:
-
Clone or download the repository
git clone git@github.com:Mupati/agora-flask-starter.git
-
Create your
.flaskenv
file and update your variablescd agora-flask-starter cp .flaskenv.example .flaskenv
-
Install project dependencies
pip install -r requirements.txt
-
Initialize db and apply migrations
flask db init flask db migrate -m "Create users table" flask db upgrade
-
Start application on development server
flask run