chore: repo foundation and local stack (change 1) #1

Merged
ngqile merged 16 commits from add-repo-foundation-local-stack into main 2026-11-26 11:10:43 +00:00
Owner

OpenSpec change add-repo-foundation-local-stack (Co-Lite phase 1, change 1).

What

  • Ports the kept Tastefully modules (core-libs, core-session, api-gateway, mobile-api, services auth/system/counter/member/log/email) plus the babyboo admin-portal and the Tastefully customer-portal.
  • Adds a root aggregator pom; the core library version is now colite-v1.
  • Removes gateway routes to dropped services and replaces hardcoded secrets with environment variables.
  • Adds the local stack in local/: docker-compose (MySQL, Redis, Pub/Sub emulator, 8 services), seed files (schema-only + reference rows + dev admin), up.sh and smoke.sh.

Verification

  • mvn -T 1C verify: 280 tests, 0 failures.
  • local/up.sh from an empty volume: 8 of 8 services start, no seed errors.
  • local/smoke.sh: OK (admin login, counter read via gateway, public mobile-api call).
  • openspec validate add-repo-foundation-local-stack --strict: valid.

Notes

  • Commit 5ee51d1 still holds Tastefully gateway keys and a Userstack key in history (removed by later fixups). Rotate them on the Tastefully side.
  • Deviations from plan: three-call smoke check, 32 subscriptions (not 37), README documents rebuild-one-service instead of IDE run.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM

OpenSpec change `add-repo-foundation-local-stack` (Co-Lite phase 1, change 1). ## What - Ports the kept Tastefully modules (core-libs, core-session, api-gateway, mobile-api, services auth/system/counter/member/log/email) plus the babyboo admin-portal and the Tastefully customer-portal. - Adds a root aggregator pom; the core library version is now `colite-v1`. - Removes gateway routes to dropped services and replaces hardcoded secrets with environment variables. - Adds the local stack in `local/`: docker-compose (MySQL, Redis, Pub/Sub emulator, 8 services), seed files (schema-only + reference rows + dev admin), `up.sh` and `smoke.sh`. ## Verification - `mvn -T 1C verify`: 280 tests, 0 failures. - `local/up.sh` from an empty volume: 8 of 8 services start, no seed errors. - `local/smoke.sh`: OK (admin login, counter read via gateway, public mobile-api call). - `openspec validate add-repo-foundation-local-stack --strict`: valid. ## Notes - Commit `5ee51d1` still holds Tastefully gateway keys and a Userstack key in history (removed by later fixups). Rotate them on the Tastefully side. - Deviations from plan: three-call smoke check, 32 subscriptions (not 37), README documents rebuild-one-service instead of IDE run. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
ngqile added 16 commits 2026-11-26 11:10:38 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Backend modules from tastefully 8bd93d15: core-libs, core-session,
api-gateway, mobile-api, services-auth, services-system,
services-counter, services-member, services-log, services-email.
solvway-admin-portal from babyboo f64d096ea, solvway-customer-portal
from tastefully 8bd93d15. Copied as tracked files only.

Literal secrets replaced with environment placeholders:
- services-email: SMTP_PASSWORD, MAILGUN_API_KEY, SENDGRID_API_KEY,
  MAILJET_API_KEY, MAILJET_SECRET_KEY (optional, empty default)
- services-system: JUMIO_TOKEN, JUMIO_SECRET (optional)
- services-auth: USER_AUTH_API_SECRET (required); commented JWT secret removed
- core-libs: JWT_TOKEN default removed (required), XXL_JOB_TOKEN default
  removed, ipgeolocation key read from IPGEOLOCATION_API_KEY
- services-system EkycAppConfig: commented Jumio credentials removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Removed 41 routes whose target service is not part of Co-Lite:
bonus, payment (payment, wallet, paymentMethod, voucher, onlinePayment),
inventory (product, category, sku, pricing, deliveryOrder, promotion,
stockist stock and related), job, drive (storage), staff (staff,
staffGroup), css (feedback), sms, stockist, notification service,
kyc and report. Their app.services.name entries are removed too.
Kept targets: auth, system, member, log, counter, email.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Schema from a Tastefully schema-only dump with data rows, AUTO_INCREMENT
counters and DEFINER users stripped. Reference rows from an allow-list of
service-system lookup tables (no user, member, attendance or order data;
supported_user_agent rows omitted). Adds a local company row and an
admin/colite-dev-admin login.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
proc_create_user and proc_create_member generate users and members with a
fixed password hash; they are removed whole. Every other routine and trigger
is now kept intact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
ngqile merged commit 1c77d9b63f into main 2026-11-26 11:10:43 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ngqile/co-lite#1