This repository contains a minimal proof-of-concept for a historical NBA stats dashboard. The backend uses nba_api to query official NBA statistics and exposes them through a small FastAPI service. A static frontend demonstrates how the data can be visualised with Chart.js.
cd backend
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reloadThen visit http://localhost:8000 to view the dashboard.
Build and run the full stack with Docker:
docker-compose up --buildThe app will be available at http://localhost:8000.
A basic test suite ensures that the API returns data:
cd backend
pytest