Create and activate a virtual environment:
conda create -n unemployment-env python=3.8
conda activate unemployment-env
Install package dependencies:
Navigate to the directory where files are located.
pip install -r requirements.txt
Obtain an API Key from AlphaVantage.
Then create a local ".env" file and provide the key like this:
# this is the ".env" file...
ALPHAVANTAGE_API_KEY="_________"
Run the unemployment report:
python -m app.unemployment
python -m app.stocks
pytest
pytest -v # the verbose option shows you all the test names
Run the web app (then view in the browser at http://localhost:5000/):
# Mac OS:
FLASK_APP=web_app flask run
# Windows OS:
# ... if `export` doesn't work for you, try `set` instead
# ... or set FLASK_APP variable via ".env" file
export FLASK_APP=web_app
flask run