- Python 3.10+
- Node.js 18+
- Azure CosmosDB credentials (not included in the repo — see Setup below)
git clone https://github.com/YoovanP/GRASP/
cd GRASPThe CosmosDB API key is not included in the repo. You need to create two .env files manually before starting either server.
backend/.env
API_KEY=your_generated_api_key
COSMOS_ENDPOINT=https://your-account.documents.azure.com:443/
COSMOS_KEY=your_cosmos_primary_key
frontend/.env.local
BACKEND_URL=http://localhost:8000
API_KEY=same_value_as_backend_env
Your CosmosDB credentials are in the Azure Portal → your CosmosDB account → Keys tab.
cd frontend
npm installcd ../backend
pip install -r requirements.txtmacOS only: LightGBM requires OpenMP. If you see
OSError: libomp.dylib not loaded, run:brew install libomp
Both servers need to be running at the same time. Open two terminal windows.
cd GRASP/frontend
npm run devFrontend available at http://localhost:3000
Run from root (
GRASP/), not frombackend/
cd GRASP
uvicorn backend.api:app --reload --port 8000 --host 0.0.0.0Backend available at http://localhost:8000/health
Open http://localhost:8000/health in your browser. You should see:
{ "status": "ok" }Then open http://localhost:3000 to access the dashboard.