Add complete BlackRoad OS backend API and wire all apps

- Created FastAPI backend with all endpoints (auth, agents, chat, blockchain, payments)
- Added unified BlackRoad API client (blackroad-api.js) for all frontend apps
- Updated index.html to use new unified API
- Backend includes health checks, JWT auth, and mock AI responses
- Ready for Railway deployment with Procfile and railway.json
- All frontend apps can now share authentication and API calls

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Alexa Louise
2025-12-13 14:29:08 -06:00
parent 2e3dedf9bf
commit fae60f79d2
7 changed files with 790 additions and 66 deletions

13
backend/railway.json Normal file
View File

@@ -0,0 +1,13 @@
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "uvicorn main:app --host 0.0.0.0 --port $PORT",
"healthcheckPath": "/health",
"healthcheckTimeout": 100,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}