Frontends and BFFs

storefront-bff

Storefront: Storefront BFF bounded context (e-commerce domain of the retail-network organisation).

language Go · default branch develop · not a registered context · GitHub ↗ · engineering study ↗

Architecture fitness

100%8 / 8 checks

storefront-bff: fitness functions that apply to this project
FunctionAxesTargetMeasuredResult
Ports-and-adapters layoutatomic · static · triggered · automated>= 95% of source files inside cmd/ or internal/ (Go) or src/ (TypeScript)100% of 91pass
Domain layer purityatomic · static · triggered · automated0 files under internal/domain importing an adapter or a framework marker0 of 7 filespass
Adapter symmetryatomic · static · triggered · automatedboth inbound/ and outbound/ adapters exist under internal/adapters/NaNpass
Contract-first APIsatomic · static · triggered · automated>= 1 OpenAPI and/or AsyncAPI spec under apis/ (or repo root)1 spec (OpenAPI)pass
In-repo architecture testsholistic · static · triggered · automated>= 1 *_fitness_test.go under internal/architecture/7 files, 26 test functionspass
Decision recordsatomic · static · triggered · automated>= 1 architecture decision record7 recordspass
Test investmentatomic · static · triggered · automated>= 0.8 test lines per code line at HEAD1.46 test lines per code linepass
CI greenholistic · dynamic · triggered · automated>= 90% of decided Actions runs green over the last four ISO weeks99% greenpass

Not applicable here: Events, MCP.

Risks

  • Every applicable fitness function meets its target in this run.

Evidence

Adapters and binaries

in: http, requestlog · out: rest, telemetry · cmd: api

API contracts

openapi.yaml

In-repo fitness tests

26 test functions in 7 files: bff_no_body_logging_fitness_test.go · bff_no_card_data_fitness_test.go · bff_no_inorg_route_fitness_test.go · catalogue_fitness_test.go · events_fitness_test.go · no_go_files_at_root_fitness_test.go · runtime_no_memory_fitness_test.go

Test investment

9,462 test lines against 6,476 code lines at HEAD.