Skip to content

Frontend architecture

This page describes the frontend codebase structure and how applications and shared libraries are organized.

All Angular web applications are maintained in a single NX monorepo.

The monorepo approach allows us to:

  • Share code between applications
  • Enforce architectural boundaries
  • Simplify dependency management
  • Support incremental builds

An NX monorepo is organized into two main directories:

This directory contains the source code for all frontend applications.

It also includes the code for End-to-End (E2E) testing. Each application and its associated E2E tests reside in a separate subdirectory.

Currently, no E2E tests have been implemented from our end and no E2E tests are executed in any pipelines.

This directory contains all shared code that can be used by any application.

The shared code is organized into libraries, each residing in a separate subdirectory.

This structure allows for:

  • Code reuse across applications
  • Clear separation of concerns
  • Easier maintenance and testing
  • Explicit dependency boundaries

Our current frontend architecture looks like this (as of 2024-11-06):

A graph explaining the relations between applications and libraries within the frontend monorepo

The graph shows how applications depend on shared libraries and how responsibilities are distributed across the codebase.


More detailed information about the different parts of the frontend code can be found in the imported frontend documentation: