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 routesservices/financeProcessor.tsβ finance parsing and batch processingservices/ticketProcessor.tsβ ticket parsingutils/β parsing helpers
Running locally
- cd backend-sync
- yarn install
- Set
.envwithSUPABASE_URL,SUPABASE_SERVICE_KEY, and other credentials - yarn dev
Security
- Use Supabase service role keys for server-side operations.
- Validate incoming requests via JWTs or a simple shared secret in headers.