A simple starting point for a basic CRUD app with flask.
- python 3.10
- ORM (Flask-SQLAlchemy)
- Database migrations (Flask-Alembic)
- Authentication (Flask-Login)
- Form validation (Flask-WTF)
-
Just run make!
make
This will create the venv, install dependencies, run database migrations, and run the development server all in one go.
-
Create a user
make create-user
-
Open the app in a browser at http://127.0.0.1:5000
See the Makefile
for other commands
-
Install dependencies
-
Create a venv
python -m venv venv
-
Activate the venv
source ./venv/bin/activate
-
Run pip install
pip install -R requirements.txt
-
-
Copy example config
cp ./config.example.yml ./config.yml
-
(Optional) Modify config
-
Setup the database
flask db upgrade
-
Create a user
flask create-user
-
Run the development server
flask run
-
Open the app in a browser at http://127.0.0.1:5000