hello! langchain llm tool for nba player comparison in their reg. season vs post season. added frontend w fastapi integration:
- Create a virtual environment and install dependencies:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt- Run the FastAPI app with Uvicorn:
uvicorn api.app:app --reload --host 0.0.0.0 --port 8000API endpoints:
POST /api/playerwith JSON{ "name": "LeBron James" }GET /api/player/{name}
- Install dependencies and start dev server:
cd frontend
npm install
npm run devthe frontend expects the backend at http://localhost:8000