How digital-land/submit works
Main System Components
a) Frontend Layer
• Web Application (Node.js)
• GOV.UK Design System Components
• Client-side JavaScript Components
• SCSS/Styling Components
b) Backend Layer
• Node.js Server
• Controllers Layer
• Services Layer
• Middleware Layer
• View Engine (Nunjucks)
c) External Services & Dependencies
• Redis (Session Store)
• Local Authorities API
• AWS Infrastructure
• Analytics Services (Smartlook, Google Analytics)
• Error Monitoring (Sentry)
Component Relationships
a) User Flow
• User → Frontend → Controllers → Services → External APIs
• Session management flow through Redis
b) Data Flow
• File Upload Path
• URL Submission Path
• Validation Pipeline
• Results Display Path
Specific Architectural Elements
a) Application Structure
Frontend Layer
• Assets (JS/SCSS)
• Views (Nunjucks Templates)
• Public Resources
Backend Layer
• Controllers
• Services
• Middleware
• Routes
b) Key Services
• Async Request Processing
• Validation Services
• Boundary Services
• Mail Client Services
Integration Points
Clear integration with:
• AWS Infrastructure
• External APIs
• Monitoring Services
• Analytics Platforms
Use the following visual elements:
• Rectangles: Core Components
• Clouds: External Services
• Hexagons: AWS Services
• Blue: Frontend Components
• Green: Backend Services
• Yellow: External Dependencies
• Red: Critical Infrastructure
• Solid: Synchronous Communications
Environment Configurations
Different configurations for:
• Development
• Staging
• Production
• Testing
Key Relationships to Emphasize: