Bootstrap SXCHNGE product BFF with independent Go modules #35

Closed
tech wants to merge 1 commits from bff-34 into main
pull from: bff-34
Owner

SXCHNGE owns its customers, authentication and sessions. This bootstrap copies selected working Sendico components into locally owned Go modules that can diverge independently.

backend/ groups product/ (customer BFF with its own main.go, go.mod and configuration) and shared/ (generic infrastructure library with its own go.mod). Models and storage live beside their product features. Shared infrastructure cannot import executable modules. Backoffice belongs in a separate future executable module with its own entry point and configuration; it is not folded into product.

Local organizations, memberships, roles, policies, invitations and unrelated platform scaffolding are removed. Customer creation/activation and deletion/session revocation are atomic. Protected and refresh routes reject inactive customers, and customer responses use explicit DTO fields. Removed all 112 unused public contract snapshot files. Future Sendico integrations must use the public HTTP API, with consumed wire types owned by their adapter and the single Sendico organization kept in provider configuration.

Validation passed: make test (backend race tests and frontend suites), make lint-backend, product executable build and -version, integration-tagged suite compilation in both modules, provenance source-blob checks and git diff --check. Mongo tests exercise fresh startup, customer isolation, duplicates, rollback and deletion/session revocation. No security scan requested or run.

Signup/profile HTTP wiring, verification delivery/completion and live Sendico adapters remain follow-up work. Frontend still uses existing dummy services. See backend/PROVENANCE.md, docs/architecture/bff.md and docs/implementation.md for source attribution, public API capabilities, scope and validation.

Closes #34.

SXCHNGE owns its customers, authentication and sessions. This bootstrap copies selected working Sendico components into locally owned Go modules that can diverge independently. `backend/` groups `product/` (customer BFF with its own main.go, go.mod and configuration) and `shared/` (generic infrastructure library with its own go.mod). Models and storage live beside their product features. Shared infrastructure cannot import executable modules. Backoffice belongs in a separate future executable module with its own entry point and configuration; it is not folded into product. Local organizations, memberships, roles, policies, invitations and unrelated platform scaffolding are removed. Customer creation/activation and deletion/session revocation are atomic. Protected and refresh routes reject inactive customers, and customer responses use explicit DTO fields. Removed all 112 unused public contract snapshot files. Future Sendico integrations must use the public HTTP API, with consumed wire types owned by their adapter and the single Sendico organization kept in provider configuration. Validation passed: `make test` (backend race tests and frontend suites), `make lint-backend`, product executable build and `-version`, integration-tagged suite compilation in both modules, provenance source-blob checks and `git diff --check`. Mongo tests exercise fresh startup, customer isolation, duplicates, rollback and deletion/session revocation. No security scan requested or run. Signup/profile HTTP wiring, verification delivery/completion and live Sendico adapters remain follow-up work. Frontend still uses existing dummy services. See backend/PROVENANCE.md, docs/architecture/bff.md and docs/implementation.md for source attribution, public API capabilities, scope and validation. Closes #34.
tech added 1 commit 2026-09-12 11:11:32 +00:00
tech self-assigned this 2026-09-12 11:11:55 +00:00
tech added this to the SXCHNGE project 2026-09-12 11:11:55 +00:00
tech added the backend label 2026-09-12 11:11:55 +00:00
tech added 1 commit 2026-09-12 11:12:00 +00:00
tech added 1 commit 2026-09-12 11:37:57 +00:00
tech changed title from Plan independent BFF and adapt selected Sendico foundations to Bootstrap copied BFF and local accounts with public Sendico contracts 2026-09-12 11:38:17 +00:00
tech closed this pull request 2026-09-12 11:41:08 +00:00
tech reopened this pull request 2026-09-12 11:43:44 +00:00
tech changed title from Bootstrap copied BFF and local accounts with public Sendico contracts to Bootstrap minimal SXCHNGE customer authentication and sessions 2026-09-12 12:00:39 +00:00
tech added 1 commit 2026-09-12 12:14:14 +00:00
tech changed title from Bootstrap minimal SXCHNGE customer authentication and sessions to Bootstrap SXCHNGE product BFF with independent Go modules 2026-09-12 12:14:34 +00:00
tech added 5 commits 2026-09-12 17:45:03 +00:00
tech closed this pull request 2026-09-13 08:35:29 +00:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tech/sxchnge#35