Dockerized web app (FastAPI + React + PostgreSQL) for scoping client ratecards against the GMAL master asset database. Features: - GMAL data ingestion from Excel (390 assets, 120 roles, 5 model types) - AI-powered document parsing and asset extraction (Claude Opus 4.6) - AI matching engine with parallel batching, confidence scoring, caveats - Ratecard builder with hours x volume calculation - Excel and PDF export - GMAL browser and inline editor - AI cost tracking per project (persisted to DB) - Debug panel for AI call inspection - Dark theme UI with gold (#FFC407) accent Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
447 B
Bash
Executable file
20 lines
447 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
export PYTHONPATH=/app
|
|
|
|
echo "Initializing database..."
|
|
python -c "
|
|
from sqlalchemy import create_engine
|
|
from app.database import Base
|
|
from app.models import *
|
|
import os
|
|
|
|
engine = create_engine(os.environ['DATABASE_URL_SYNC'])
|
|
Base.metadata.create_all(bind=engine)
|
|
engine.dispose()
|
|
print('Database tables created successfully')
|
|
"
|
|
|
|
echo "Starting FastAPI server..."
|
|
exec uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|