These instructions will help you set up and run the project on your local machine.
- Python (version 3.10.x)
- Flask (version 3.0.0)
- FLASK-SQLAlchemy (version 3.1.1): local database management
- The-Odds-API (version 4): populates the odds for upcoming games
- maximum 500 requests/month
- nfl-data-py (version 0.3.1): populates the scores, player stats, and team stats
-
Clone the repository:
git clone https://github.com/jtrbg/pulse-picks.git
-
Navigate to the project directory:
cd your-repo
-
Set up a virtual environment (optional but recommended):
python -m venv venv
-
Activate the virtual environment:
# On Windows .\venv\Scripts\activate # On macOS/Linux source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Create a
config.py
file in the project root:python generate_config.py
The generated config file should look something along the lines of:
# config.py class Config: API_KEY = 'your_api_key_here' # Add other configuration parameters as needed
Replace
'your_api_key_here'
with your actual API key that you got from https://the-odds-api.com/.
-
Run the application:
python main.py
-
Open your browser and go to http://localhost:5000/.