Getting Started
Welcome to the MPAC SmartPOS Cloud Platform documentation. This guide will help you navigate the project and get up and running.
Project Structure
MPAC is a monorepo with git submodules managing a payment processing platform:
| Submodule | Purpose | Tech Stack |
|---|---|---|
| mpac-pgw | Payment gateway service | Go 1.24, Gin, GORM, PostgreSQL 16, Redis 7 |
| mpac-infra | AWS infrastructure | CloudFormation YAML |
| mpac-obs | Observability stack | Alloy, Prometheus, Loki, Tempo, Grafana |
Quick Start
Payment Gateway (mpac-pgw)
bash
cd mpac-pgw
make docker-up # Start PostgreSQL + Redis
make migrate # Apply database migrations
make run # Run server (port 8080)
make test # All tests with coverageInfrastructure (mpac-infra)
bash
cd mpac-infra
make lint # cfn-lint validation
make validate # Validate via AWS API
make deploy-pgw-dev # Deploy PGW to dev
make status # Check stack statusObservability (mpac-obs)
bash
cd mpac-obs
make up # Start local observability stack
make down # Stop stack
make logs # Tail all logsOnboarding Path
For New Developers
- Read the Product Overview
- Understand the System Architecture
- Explore the relevant Business Domains
- Review the Technical Architecture
For Feature Development
- Find your domain in the Domain Catalog
- Check the API Reference
- Review Database Architecture
- Consult the Testing Strategy
For DevOps/SRE
- Review AWS Infrastructure
- Understand the Deployment Strategy
- Check Observability
- Review the CI/CD Pipeline
Next Steps
- Architecture Overview - System diagrams and multi-tenant hierarchy
- SDK Quick Start - Integrate payments with JS, Go, or Python
- API Reference - Full endpoint documentation