| id | index |
|---|---|
| title | Backend |
| sidebar_position | 3 |
The Mass Payout backend is a NestJS application that provides REST API, database management, and blockchain synchronization.
- REST API: HTTP endpoints for frontend operations
- Database Management: PostgreSQL storage for assets, distributions, and payouts
- Blockchain Sync: Polls Hedera for events and syncs on-chain state
- Scheduled Execution: Automatic execution of scheduled distributions
- Batch Processing: Manages large-scale payouts with retry logic
Learn about the Domain-Driven Design architecture and application layers.
Understand the PostgreSQL schema, entities, and relationships.
How the backend syncs with Hedera and processes scheduled payouts.
Development setup, deployment, and testing strategies.
# Start PostgreSQL
cd apps/mass-payout/backend
docker-compose up -d
# Configure environment
cp .env.example .env
# Edit .env with your configuration
# Run backend in development mode
npm run mass-payout:backend:devBackend runs on http://localhost:3000 with Swagger docs at http://localhost:3000/api.
- SDK Integration - Integrate Mass Payout SDK
- Smart Contracts - LifeCycle Cash Flow contract
- API Documentation - REST API reference