Files

1 line
1.1 KiB
JSON

{"repo": "bkitano/mad", "files": {"README.md": {"824f0e4016584c5b10f4c360d424f8f03f8ec43d": {"t": 1785846942.3196266, "n": 928, "h": "c8ff495116948d1e", "c": "## Running the Worker Locally\n1. Make sure your `mad/.env` has everything in it.\n```bash\nPGUSER=\"\"\nPGPASSWORD=\"\"\nPGHOST=\"\"\nPGPORT=\"\"\nPGDATABASE=postgres\nSUPABASE_URL=\"\"\nSUPABASE_KEY=\"\"\nMODAL_CREATE_JOB_URL=\"\"\nWANDB_API_KEY=\"\"\nANTHROPIC_API_KEY=\"\"\nOPENCODE_GO_API_KEY=\"\"\nOPENCODE_CONFIG=\"path/to/opencode.jsonc\"\nHF_TOKEN=\"\"\nHF_REPO_ID=\"\"\n```\n\n2. Start ngrok.\n```bash\nngrok http 8001\n```\n\n3. Start the API.\n```bash\ncd mad/backend/\nset -a; source ../../.env; uv run uvicorn app:app --port 8001 --reload\n```\n\n4. Run the worker\n```bash\ncd mad/backend/\nrm -rf ../.e2e/*; MAD_SERVICE_URL=<YOUR_NGROK_URL> pytest tests/test_e2e_mnist.py -v -s\n```\n\n## Using the Dashboard\n\n### Production\nhttps://madder.netlify.app/\n\n### Local\n1. Start ngrok for your backend API if you haven't already.\n```bash\nngrok http 8001\n```\n2. Start the dashboard app.\n```bash\ncd mad/dashboard\nVITE_API_URL=<YOUR_NGROK_URL> npm run dev\n```\n\n## Deploying to Modal\n"}}}}