Spaces:
3SCError404
/
Paused

nexus / README.md
dushyantsingh0
backend stabilization
c054d5f
|
Raw History Blame Contribute Delete
1.89 kB
metadata
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.

2. Local: Universal Engineering Environment (Always)

For development and local testing. We use Docker to ensure parity with production.

One-Click Start (Windows)

./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.
  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