How hmrc/eori-common-component-registration-frontend works
Project Type and Purpose
• This is a web‑based frontend application (Scala + Play Framework) for the EORI Common Component Registration journey.
• It provides the UI, controllers, forms and views, and orchestrates calls to various downstream microservices (identity, subscription, data store, email verification, etc.).
Key Directories (Architectural Layers)
• app/assets: static assets (CSS, JS, templates).
• app/uk/gov/hmrc/eoricommoncomponent/frontend:
• controllers – Play MVC Controllers (HTTP entry points).
• services – Business logic layer (service façade, flow management, caching).
• connector – HTTP clients to external downstream services.
• views – Twirl templates assembling the HTML.
• config/filters – routing, auth, and global filters.
• modules – Guice modules for wiring dependencies (DI).
• conf: Play configuration (application.conf, routes, logging).
• bin: operational scripts (run, test, coverage).
• public/api: API definitions (OpenAPI JSON and docs).
• test: unit & integration tests, organized by layer (controllers, services, connectors, domain, views, end‑to‑end).