--- title: Nexus emoji: 🚀 colorFrom: blue colorTo: indigo sdk: docker app_port: 7860 pinned: false --- # Nexus Deployment Strategy This project follows a 3-tier high-availability strategy to ensure constant uptime for the Customer and Internal portals. ## 1. Primary: Hugging Face Spaces (Live) Our main public environment. - **Customer Portal**: [https://3scerror404-nexus.hf.space/](https://3scerror404-nexus.hf.space/) - **Internal Portal**: [https://3scerror404-nexus.hf.space/internal/](https://3scerror404-nexus.hf.space/internal/) - **API Documentation**: [https://3scerror404-nexus.hf.space/docs](https://3scerror404-nexus.hf.space/docs) ## 2. Local: Universal Engineering Environment (Always) For development and local testing. We use Docker to ensure parity with production. ### One-Click Start (Windows) ```powershell ./scripts/start_local.bat ``` This will: 1. Start/Reload Docker containers. 2. Initialize the sidecar Redis and AI Worker. 3. Serve portals at `http://localhost:8000`. ## 3. Backup: Railway Failover (Additional) In case of Hugging Face outages, we maintain a standby deployment on Railway. ### Disaster Recovery Setup: 1. Connect this repo to a new [Railway Service](https://railway.app). 2. The platform will automatically detect `railway.json` and build the `production` Docker target. 3. **Required Variables**: Ensure `DATABASE_URL` (Supabase) and `REDIS_URL` (Upstash) are set in the Railway dashboard. --- ## Features - **Hybrid AI Core**: Integrated LangGraph agent and semantic search. - **Unified Logic**: Frontend and Backend served from a single origin. - **Auto-Sync**: Background worker for Knowledge Base re-indexing is built into the sidecar. ## Manual Local Development (No Docker) 1. Start Backend: `python main.py` 2. Start Customer: `npm run dev -w frontend/apps/customer` 3. Start Internal: `npm run dev -w frontend/apps/internal`