Make sure you have python3, pip, and sqlite3. From the home directory of the repo, run
$ pip install -r requirements.txt
Set up the database using
$ flask db init
$ flask db upgrade
$ export FLASK_APP=app.py
$ export FLASK_ENV=development
$ flask run
After adding new dependencies via pip install
, run this command to update the requirements
$ pip freeze > requirements.txt
Commit the file to source control.
To test, run
$ python -m unittest tests.test_person
$ flask db migrate -m "<migration_name>"
$ flask db upgrade
Commit the migration files to source control.