# Finance Service Service for payments, ledgers, rate models, and invoicing. ## Features - Double-entry ledger - Payment processing - Rate models - Invoicing - Deal milestone tracking ## Development ```bash # Install dependencies pnpm install # Run development server pnpm dev # Build pnpm build # Start production server pnpm start ``` ## API Endpoints - `GET /health` - Health check - `POST /ledger/entry` - Create ledger entry - `POST /payments` - Process payment ## Environment Variables - `PORT` - Server port (default: 4003) - `DATABASE_URL` - PostgreSQL connection string - `PAYMENT_PROVIDER` - Payment provider configuration