Files
pos-system/deployments/local
Ho Ngoc Hai 76b5e6afd0 feat: Phase 2 close-out — multi-branch management, production K8s, revenue dashboard UI, responsive POS
Backend:
- Multi-branch shop management: SetDefaultShop, TransferShop commands, GetMerchantShops paginated query
- Shop aggregate: IsDefault field, SetAsDefault/ClearDefault/TransferOwnership behavior methods
- 2 new domain events: ShopSetAsDefaultDomainEvent, ShopTransferredDomainEvent

Frontend:
- Revenue Dashboard (MudChart line/donut/bar, 4 KPI cards, top products table)
- Staff Performance (sortable table, color-coded completion rates, CSV export)
- Customer QR Menu page (/menu/{ShopId}, mobile-first, Vietnamese labels)
- QR Code Generator admin page (batch generate, print-all, per-table QR)
- Responsive POS layout (collapsible sidebar, slide-out order drawer, touch-friendly CSS)
- ResponsiveOrderPanel component (desktop inline / tablet drawer / mobile overlay)

Infrastructure:
- Production K8s manifests: 8 services (3 replicas, 512Mi-1Gi, HPA min3/max10), Redis with persistence
- Production ingress: api.goodgo.vn, cert-manager TLS, rate-limit middleware
- Deploy script: pre-flight checks, dry-run, single-service deploy, rollback support
- CI/CD: deploy-production.yml with environment approval, commit SHA tags
- Prometheus full scrape config (11 targets), docker-compose observability stack
- Production deployment checklist (80+ items)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 19:58:40 +07:00
..

Local Development Deployment

Docker Compose configuration for running the GoodGo platform locally.

Quick Start

# Setup environment
cp env.local.example .env
cp env.local.example .env.local

# Update all placeholder secrets/connection strings in both files
# before starting the stack.

# Start platform
docker-compose up -d

# View status
docker-compose ps

Access

Documentation

For detailed documentation, see:

Files

  • docker-compose.yml - Service orchestration
  • env.local.example - Sanitized environment variables template
  • .env - Docker Compose interpolation file (fill with real values)
  • .env.local - Local override file (fill with real values)

Common Commands

docker-compose up -d              # Start all
docker-compose logs -f [service]  # View logs
docker-compose down               # Stop all
docker-compose ps                 # Check status

For troubleshooting and advanced usage, see the full documentation above.