/test-repo

Primary LanguagePython

NBA Matchup Predictor

Prerequisites

  • Python 3.9+
  • pip

Installing

  1. Clone the repo.

  2. Create a virtual env (optional)

    python3 -m venv venv && source venv/bin/activate
  3. Install the backend/frontend requirements:

    pip install -r requirements.txt
    npm install --prefix src/frontend
  4. Setup the flask app:

    export FLASK_APP=src/app.py
  5. Build frontend:

    npm run build --prefix src/frontend

Running Locally

  1. Run tests:

    DATABASE_URL="sqlite:///:memory:" pytest
  2. Run the flask app:

    flask run

Built With