1. Domino Brix
  2. Getting started

Quick start

Domino Brix is a lightweight MVP framework for DominoKit apps. It combines routing, presenters, slots, events, startup tasks, and security into a cohesive runtime with generated presenters, views, and initializers.

Dependencies

Add the runtime and processor to your project (processor as provided for client builds):

			<!-- pom.xml -->
<dependency>
  <groupId>org.dominokit</groupId>
  <artifactId>domino-brix-client</artifactId>
  <version>${brix.version}</version>
</dependency>
<dependency>
  <groupId>org.dominokit</groupId>
  <artifactId>domino-brix-processor</artifactId>
  <version>${brix.version}</version>
  <scope>provided</scope>
</dependency>

		

Bootstrap Brix

Initialize configuration, then start the router and startup tasks. The generated presenters and views are discovered automatically.

			Map<String, String> config = Map.of("apiBase", "/api");
Brix.get().init(config);
Brix.get().start(Set.of(/* startup tasks */), () -> DomGlobal.console.info("Ready"));

// navigate
Brix.get().router().pushToken("dashboard");

		
  • BrixSlots registers body/popup/no-content slots for you.
  • RouterManager comes from generated routing providers; push tokens to navigate.
  • Startup tasks run in order before the ready callback fires.

Modules

  • domino-brix-client: runtime router, slots, events, security, startup tasks, presenter base classes.
  • domino-brix-processor: generates presenters, views, handlers, slots, routing providers, and component initializers.
  • domino-brix-shared: shared DTOs/events for your app or modules.

We are a group of passionate people who love what we do

Donate & Support Us