Student instructions (feel free to remove this section later, as desired):
FYI - there are some important things missing from this repo. Follow along in class to implement testing and continuous integration, and secure environment variables using a ".env" and ".gitignore" file, etc. We may also extend the functionality to build a web interface. For full solutions, see https://github.com/s2t2/my-first-repo-fall-2025 (including that repository's commit history for step-by-step walkthrough).
FYI - students please use a "premium" AlphaVantage API Key shared by the prof (see "Configuration" section below).
Students: first visit https://github.com/prof-rossetti/software-dev-exercise and click "Use this template" green button to make a copy of the repo under your own control.
Clone the repo to download it from GitHub. Perhaps onto the Desktop.
Navigate to the repo using the command line.
cd ~/Desktop/software-dev-exerciseCreate a virtual environment:
conda create -n software-dev-env python=3.11Activate the virtual environment:
conda activate software-dev-envInstall package dependencies:
pip install -r requirements.txtThe stocks functionality requires an AlphaVantage API key. Obtain a premium AlphaVantage API Key (using the form or shared by the prof).
Create a local ".env" file and store your environment variable in there:
# this is the ".env" file...
ALPHAVANTAGE_API_KEY="______________"
# also tell flask where our web app is defined:
FLASK_APP=web_appRun RPS game:
python -m app.rpsRun stocks dashboard:
python -m app.stocksRun tests:
pytest