Backend
The Mass Payout backend is a NestJS application that provides REST API, database management, and blockchain synchronization.
What the Backend Does
- 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
Available Guides
Architecture Overview
Learn about the Domain-Driven Design architecture and application layers.
Database Schema
Understand the PostgreSQL schema, entities, and relationships.
Blockchain Integration
How the backend syncs with Hedera and processes scheduled payouts.
Running & Testing
Development setup, deployment, and testing strategies.
Quick Start
# 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:dev
Backend runs on http://localhost:3000 with Swagger docs at http://localhost:3000/api.
Next Steps
- SDK Integration - Integrate Mass Payout SDK
- Smart Contracts - LifeCycle Cash Flow contract
- API Documentation - REST API reference