Logo Lanfrica

AjayAJ3001/Payment-Namibia

Domain:

digital infrastructure

Record type:

software
Creator:
Aja
Host:
Scalable payment gateway platform for Namibia - Microservices architecture # Payment Gateway Platform A highly scalable, microservices-based payment gateway for Namibia. ## πŸš€ Quick Start ### Prerequisites - Node.js 20+ - pnpm 8+ - Docker & Docker Compose ### Setup ```bash # Install dependencies pnpm install # Copy environment file cp .env.example .env # Start infrastructure (PostgreSQL, Redis) pnpm docker:up # Run database migrations pnpm migrate # Seed test data pnpm seed # Start all services in development mode pnpm dev ``` ## πŸ“ Project Structure ``` β”œβ”€β”€ docs/ # Architecture & API documentation β”œβ”€β”€ config/ # Environment-specific configs β”œβ”€β”€ libs/ # Shared libraries β”œβ”€β”€ services/ # Microservices β”œβ”€β”€ frontend/ # React apps β”œβ”€β”€ scripts/ # Migrations & utilities β”œβ”€β”€ logs/ # Centralized logs └── monitoring/ # Prometheus/Grafana ``` ## πŸ”§ Services | Service | Port | Description | |---------|------|-------------| | API Gateway | 3000 | Entry point, routing, rate limiting | | Auth Service | 3001 | Authentication & authorization | | Payment Orchestrator | 3003 | Payment flow coordination | | Wallet Service | 3004 | Wallet management | | Ledger Service | 3005 | Double-entry accounting | | Transaction Service | 3006 | Transaction processing | | Bank Integration | 3007 | Bank API integration (simulated) | | Payment Rail | 3008 | Card/Mobile money (simulated) | | Risk & Fraud | 3009 | Fraud detection | | Notification | 3010 | SMS/Email/Push | | Reconciliation | 3011 | Settlement & reconciliation | | Admin Service | 3012 | Admin operations | ## πŸ› οΈ Development ```bash # Run specific service pnpm --filter auth-service dev # Run tests pnpm test # Lint code pnpm lint # Format code pnpm format ``` ## πŸ“Š Admin UIs - **pgAdmin**: localhost (admin@payment-gateway.local / admin123) - **Redis Commander**: localhost ## πŸ—οΈ Technology Stack - **Backend**: Node.js, TypeScript, Express - **Database**: PostgreSQL, Redis - **Mobile**: React …