This doc contains instructions for creating a starter flask app.
- Python 3.6 or later installed
- Pip installed
- First, we want to make our project directory and create a virtual env, i.e.
python3 -m venv venv
. We can use this virtual environment to install packages into. - Active your virtual env (platform dependent).
- Install flask with
pip install flask
. From now on, this is how we will add packages/dependencies to our project:pip install [package-name]
. - Make
app/__init__.py
and first route inindex.py
. export FLASK_APP=tutorial.py
&flask run
- Make
models.py
with user models andflask-sqlalchemy
andflask-migrate
flask db init
,flask db migrate
,flask db upgrade
flask-wtf
- Signup route and form: have it redirect to home only for now
- change successful signup to create and insert a user
- login route and form
- update
index.html
to say hello to logged in user