A comprehensive skeleton setup for a multi-agent financial due-diligence system, featuring a FastAPI Python backend and a React + Vite + TypeScript + Tailwind CSS frontend.
/backend: FastAPI backend app.app/main.py: Main application setup.app/routes/health.py: Health check route (GET /api/health).app/utils/llm_client.py: Shared Google Gen AI SDK client.app/agents/,app/models/,app/utils/: Structuring placeholders for agents and data layers.
/frontend: React client application.src/App.tsx: Main dashboard showcasing connection status, server health payload, and system stats.
Navigate into the backend directory:
cd backendCopy the template .env.example file to .env:
cp .env.example .envOpen the .env file and fill in your placeholders:
GEMINI_API_KEY: Your Gemini API Key from Google AI Studio.SCREENER_SESSION_TOKEN: Session token for scraping Screener financial reports.NEWS_API_KEY: API Key for accessing finance/market news providers.
Create a Python virtual environment and activate it:
- Windows (PowerShell):
python -m venv .venv .\.venv\Scripts\Activate.ps1 - macOS / Linux:
python -m venv .venv source .venv/bin/activate
Install requirements:
pip install -r requirements.txtRun the local uvicorn server in watch mode:
uvicorn app.main:app --reload --port 8000Verify the server is running by visiting: http://localhost:8000/api/health.
Navigate into the frontend directory:
cd frontendnpm installnpm run devOpen your browser and navigate to: http://localhost:5173/ to verify the application skeleton and health status displays.