Skip to main content

Backend Sync Service

The backend-sync folder contains an Express server used to process and parse emails, financial transactions, and tickets. It is not a public API; it is intended for internal processing and should be secured by service-level keys.

Structure

  • server.ts β€” entry point and routes
  • services/financeProcessor.ts β€” finance parsing and batch processing
  • services/ticketProcessor.ts β€” ticket parsing
  • utils/ β€” parsing helpers

Running locally

  1. cd backend-sync
  2. yarn install
  3. Set .env with SUPABASE_URL, SUPABASE_SERVICE_KEY, and other credentials
  4. yarn dev

Security

  • Use Supabase service role keys for server-side operations.
  • Validate incoming requests via JWTs or a simple shared secret in headers.