Prerequisites
- Node.js 18+
- PostgreSQL database
- OCR provider credentials (Google Document AI or AWS Textract)
Environment Variables
Create a.env file based on .env.example:
OCR Provider Configuration
Set theOCR_PROVIDER environment variable:
| Value | Provider |
|---|---|
documentai | Google Document AI (default) |
textract | AWS Textract Expense Analysis |
textract-openai | Hybrid: Textract + OpenAI |
- Google Document AI
- AWS Textract
Database Setup
Initialize the database with Prisma:Email Forwarding (Optional)
To enable email forwarding, configure Postmark:Running Locally
http://localhost:5000.
Production Deployment
Vercel (Recommended)
- Connect your repo to Vercel
- Add environment variables in project settings
- Deploy
Docker
Troubleshooting
Database connection errors?
Database connection errors?
Ensure your
DATABASE_URL is correct and the PostgreSQL server is accessible.OCR not working?
OCR not working?
Check that your OCR provider credentials are set and the service is enabled in your cloud console.