Files
the_order/services/intake
defiQUG 3d43155312 feat: expand test coverage and configure comprehensive alerting
- Add unit tests for all core services (identity, intake, finance, dataroom)
- Create integration test framework with shared setup utilities
- Add E2E test suite for complete user workflows
- Add test utilities package (server factory)
- Configure Prometheus alert rules (service health, infrastructure, database, Azure)
- Add alert rules ConfigMap for Kubernetes
- Update Prometheus deployment with alert rules
- Fix tsconfig.json to include test files
- Add tests/tsconfig.json for integration/E2E tests
- Fix server-factory.ts linting issues
2025-11-13 10:04:32 -08:00
..

Intake Service

Service for document ingestion, OCR, classification, and routing.

Features

  • Document upload and ingestion
  • OCR processing
  • Content classification (legal/treaty/finance/history)
  • Entity extraction
  • Routing to appropriate workflows

Development

# Install dependencies
pnpm install

# Run development server
pnpm dev

# Build
pnpm build

# Start production server
pnpm start

API Endpoints

  • GET /health - Health check
  • POST /ingest - Ingest document

Environment Variables

  • PORT - Server port (default: 4001)
  • DATABASE_URL - PostgreSQL connection string
  • STORAGE_PROVIDER - Storage provider (s3/gcs)
  • STORAGE_BUCKET - Storage bucket name