One repository for all interfaces
A single workspace
The user interfaces of the core modules are not developed inside each module. All interface code
lives in one directory, frontend, managed as a single workspace with Nx. One
package.json declares the libraries used by every application.
Centralizing dependencies and code gives:
- consistent library versions across modules;
- simpler maintenance;
- easier upgrades of the libraries shared by several modules.
Module federation
To avoid a full page reload when moving from one module's interface to another, the core interfaces use module federation: one page is composed of several independent, interconnected modules. Navigation is smoother, since only the components that are needed are loaded and updated.
From source to module
- An interface is developed under
/frontend. - It is built into a bundle.
- The bundle is copied into the Java module that serves it, under
src/main/resources/META-INF/resources.
See Front end for the technologies and Building for the commands.