The frontend is a single-page application (SPA) built with React and TypeScript. Its architecture follows a modular, feature-based structure, designed to maximize maintainability, scalability, and developer efficiency.
src/api/
..css
and .test.tsx
files, promoting local cohesion and easier maintenance.The src/Components
directory is structured by purpose:
views/
: Top-level screens that define the core user flow (e.g., WorldMap)components/
: Shared UI elements like buttons and selectorslayers/
: Map rendering layers (countries, base maps)data/
: Static world country dataapi/
: Encapsulated logic for communicating with backend servicesThis structure ensures high clarity for new developers onboarding into the codebase, while supporting rapid iteration and scalability.