Some starter code to facilitate lessons on code maintenance and quality control, including refactoring and automated testing. See the Exercise Instructions.
Create and activate a new virtual environment:
conda create -n cleanup-env python=3.8
conda activate cleanup-env
Copy the default products inventory (then optionally customize the resulting "products.csv" file with your own products as desired):
cp data/default_products.csv data/products.csv
Obtain your own AlphaVantage API Key, then create a new file called ".env" and place the following contents inside, replacing the placeholder with your own API Key:
# this is the .env file...
ALPHAVANTAGE_API_KEY="__________"
Install package dependencies:
pip install -r requirements.txt
Running the abbreviated shopping cart:
python -m app.shopping
Running the abbreviated game:
python -m app.game
Running the abbreviated robo advisor:
python -m app.robo
Running all tests:
pytest