modcomms/frontend
michael 99af0164e6 Add PostgreSQL database support with Alembic migrations
Backend:
- Add PostgreSQL service to docker-compose with health checks
- Add SQLAlchemy async models for all entities (Agency, User, Campaign,
  Proof, ProofVersion, FlaggedItem, ResolvedItem, ErrorItem)
- Add Alembic migration framework with initial schema migration
- Add repository layer for CRUD operations
- Add REST API endpoints for campaigns, proofs, and audit items
- Add file storage service for proof uploads
- Update WebSocket handler to optionally persist analysis results

Frontend:
- Add apiService.ts for REST API communication
- Update geminiService.ts to support database persistence options

Deployment:
- Update deploy.sh to handle database migrations (6-step process)
- Update Dockerfile to include alembic configuration
- Add PostgreSQL environment variables to .env templates

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 12:27:18 -06:00
..
components Implement Microsoft MSAL SSO with PKCE flow 2025-12-16 08:43:30 -06:00
services Add PostgreSQL database support with Alembic migrations 2025-12-16 12:27:18 -06:00
App.tsx Implement Microsoft MSAL SSO with PKCE flow 2025-12-16 08:43:30 -06:00
constants.ts initial commit 2025-12-12 09:03:17 -06:00
index.html initial commit 2025-12-12 09:03:17 -06:00
index.tsx Implement Microsoft MSAL SSO with PKCE flow 2025-12-16 08:43:30 -06:00
metadata.json initial commit 2025-12-12 09:03:17 -06:00
package-lock.json Implement Microsoft MSAL SSO with PKCE flow 2025-12-16 08:43:30 -06:00
package.json Implement Microsoft MSAL SSO with PKCE flow 2025-12-16 08:43:30 -06:00
README.md initial commit 2025-12-12 09:03:17 -06:00
tsconfig.json initial commit 2025-12-12 09:03:17 -06:00
types.ts initial commit 2025-12-12 09:03:17 -06:00
vite.config.ts initial commit 2025-12-12 09:03:17 -06:00

GHBanner

Run and deploy your AI Studio app

This contains everything you need to run your app locally.

View your app in AI Studio: https://ai.studio/apps/drive/1vH-R-vj0Xkk_g2ZFdHtLxNc12sFTOl2L

Run Locally

Prerequisites: Node.js

  1. Install dependencies: npm install
  2. Set the GEMINI_API_KEY in .env.local to your Gemini API key
  3. Run the app: npm run dev