A comprehensive NestJS backend for international energy trading with compliance, multi-currency support, regulatory reporting, and real-time analytics.
- Cross-border energy trading with multi-currency support
- Compliance and regulatory reporting modules
- Risk management and fraud detection
- Energy market forecasting and analytics
- Microgrid management and smart grid integration
- Settlement, pricing, and fee management
- Security, authentication, and audit workflows
- Webhooks, API gateway, and health endpoints
- OpenTelemetry tracing and Prometheus metrics
- Node.js >= 18.x
- npm
npm installnpm run start:dev # development
npm run build # production build
npm run start:prod # productionnpm run test # unit tests
npm run test:cov # with coverage
npm run test:e2e # end-to-end testsnpm run lintThe application is built with NestJS and follows a modular structure. Key modules:
| Module | Description |
|---|---|
auth/ security/ |
Authentication, authorization, security scanning |
compliance/ |
Regulatory reporting and compliance checks |
pricing/ fees/ |
Dynamic pricing and fee calculation |
settlement/ |
Trade settlement and netting |
forecasting/ |
Energy market forecasting |
market-data/ energy/ |
Market data ingestion and energy management |
microgrid/ |
Smart grid integration and load balancing |
monitoring/ tracing/ |
OpenTelemetry, Prometheus, health checks |
logging/ |
Structured logging and log retention |
webhooks/ |
Outbound webhook delivery |
integration/ analytics/ |
Third-party integrations and BI analytics |
currency/ cross-border/ |
Multi-currency and cross-border transactions |
transactions/ matching/ |
High-volume transaction processing and order matching |
- Docker:
Dockerfile,docker-compose.yml - Kubernetes:
k8s/— see README-K8S.md - Terraform:
terraform/ - CI/CD:
.github/workflows/ - Logging stack:
logstash/,elasticsearch/,kibana/— see LOGGING_MONITORING_GUIDE.md
- CONTRIBUTING.md — development workflow and guidelines
- DEPLOYMENT.md — deployment instructions
- README-K8S.md — Kubernetes setup
- LOGGING_MONITORING_GUIDE.md — logging and monitoring
- README-WEBHOOK-PRICING.md — webhook and pricing details
- README-LOCATION-ANALYTICS.md — location analytics
- MICROGRID_IMPLEMENTATION.md — microgrid system details
- docs/HIGH_VOLUME_TRANSACTIONS.md — high-volume transaction processing
UNLICENSED