NBA-Betting / NBA_Betting

Using data analytics and machine learning to create a comprehensive and profitable system for predicting the outcomes of NBA games.
149 stars 17 forks source link

Documentation to run #51

Open PranayRaman opened 10 months ago

PranayRaman commented 10 months ago

please include docs to run

MarKaliGG commented 10 months ago

we need your help!!

MarKaliGG commented 10 months ago

Im stuck whit the installation too

Jonesdane commented 10 months ago

same here

jeffjohannsen commented 10 months ago

The updated Readme does a better job of explaining the workflow of the project. In general though, this isn't a piece of software to be installed. The project focuses on approaching the goal of better predicting the outcomes of NBA games. If you have any specific questions, please let me know.

ard033 commented 10 months ago

permission denied when running src/deployment - why is that?

jeffjohannsen commented 10 months ago

Hmm, let me look at that when I get home tonight. I probably didn't update the Flask login info.

ard033 commented 10 months ago

Any update on this? Is there somewhere we need to login to?

jeffjohannsen commented 10 months ago

I made some updates to src/deployment/web_app.py. Hopefully, this fixes the problem. If you are running the web app for testing and debugging you can use python web_app.py. Otherwise, if you have gunicorn setup, you can run the app using gunicorn nba_app_wsgi:app. Either way, the web app and incorporated dashboards require DB_ENDPOINT, DB_PASSWORD, WEB_APP_USERNAME, WEB_APP_PASSWORD, and WEB_APP_SECRET_KEY from your .env file. Since .env is private and not shown in the public GitHub repo, here is an blank setup of mine:

# DATABASE
DB_ENDPOINT = <>
DB_PASSWORD = <>

# WEB APP
WEB_APP_USERNAME = <>
WEB_APP_PASSWORD = <>
WEB_APP_SECRET_KEY = <>  # Session Management

# AIRFLOW
EMAIL_ADDRESS = <>  # Error Reporting

# DATA COLLECTION
ZYTE_API_KEY = <>  # Scrapy Data Collection
ODDS_API_KEY = <>  # On Demand Lines from https://the-odds-api.com/

# PROJECT BASE DIRECTORY - Example: /home/username/documents/NBA_Betting
NBA_BETTING_BASE_DIR = <>  # Local
# NBA_BETTING_BASE_DIR = <> # AWS EC2