Note: these instructions work for MacOS and should be similar for linux. If you're on windows I pity you.
- Set up a virtualenv
virtualenv -p python3.8 venv source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Start a local postgres db
pg_ctl -D /usr/local/var/postgres start && brew services start postgresql
- Check the local db user
Note the configured user and set it as the environment variable
psql # \du
POSTGRES_USER
Set the user's password under$ export POSTGRES_USER=[user]
POSTGRES_PW
if it's anything other than a null password. - Setup the local db
flask db init flask db migrate -m "Initial db migrate" flask db upgrade flask seed_db
- Start the server
flask run
- Navigate to the server at 127.0.0.1:5000