Skip to main content
Rath StackAPI + UI templates

Ship APIs and UIs without schema guesswork.

Rath Backend delivers a Spring Boot API template with JWT auth, Rath Frontend gives a Next.js + MUI shell, and RathORM, Rath Common, and Rath Components keep schema, utilities, and data grids aligned.

Spring Boot 4JWT cookiesJava 21PostgreSQLActiveJDBCNext.js 16React 19MUI 7Data Grid Premium

Migration flow

  • Scan entities

    Discover annotated models across configured packages.

  • Sync schema

    Create tables, add columns, and apply constraints in-order.

  • Optionally drop extras

    Remove unused columns or drop tables when you opt in.

DbProperties props = DbProperties.load();
new DatabaseBootstrapper().ensureDatabaseExists(props);

List<Class<?>> entities = EntityScanner.findConfiguredEntities();
new SchemaMigrator().syncTables(entities, false);

Rath stack

Five building blocks, one toolkit

Rath Backend and Rath Frontend get you moving fast, while RathORM, Rath Common, and Rath Components keep data, utilities, and UI pieces consistent.

Spring Boot API

Rath Backend

Spring Boot starter with JWT cookie auth, rathorm-powered data helpers, and a cached select service.

  • JWT-secured REST API with refreshable cookies
  • ActiveJDBC models and datagrid helpers via rathorm
  • Select cache service plus deploy script
Rath Backend docs
Next.js UI

Rath Frontend

Next.js + MUI template with app router defaults, data grid premium, and shared component support.

  • Next.js 16 app router with React 19
  • MUI 7 + Emotion + Data Grid Premium
  • Transpiles @tranz-rath/components with @/* alias
Rath Frontend docs
Database alignment

RathORM

Schema migrator that keeps annotated entities and PostgreSQL aligned without brittle SQL files.

  • Annotation-first migrations with ordered constraints
  • Drop controls to protect production data
  • DbRead/DbTransaction helpers for ActiveJDBC
RathORM docs
Service utilities

Rath Common

Utility toolkit for Rath services: HTTP client, response wrappers, IST time helpers, and validators.

  • HttpUtil with JSON parsing and multipart support
  • MapResponse/ListResponse for clean controller responses
  • IST-aware TimeUtil plus string/number helpers
Rath Common docs
React data grids

Rath Components

React data grid wrappers for MUI with fetch wiring, pagination, sorting, filtering, and toolbar defaults.

  • Client and server data grids on top of MUI DataGrid Premium
  • Smart defaults for queries, pagination, sorting, and filtering
  • URL sync, toolbar quick filters, and custom transforms ready to use
Rath Components docs

Why RathORM

Designed for clean database rollouts

Lean migration helpers, pragmatic defaults, and zero fluff for teams that want PostgreSQL to stay in sync with their models.

Entities → Tables

Annotation-first metadata

RathORM reads your annotated entities to build the database truth—no extra DSL or YAML.

Ordered migrations

Safe schema alignment

Creates tables, adds new columns, then applies constraints in the right order for PostgreSQL.

Ship faster

Clean connection helpers

Tiny DbRead/DbTransaction wrappers and batch utilities keep JDBC/ActiveJDBC code compact.

Quick start

Ship with Rath Backend, Rath Frontend, and the core toolkits

  1. Start with Rath Backend for the API and Rath Frontend for the UI shell.
  2. Add the RathORM and Rath Common dependencies.
  3. Install Rath Components with MUI for data grids.
  4. Point `rathorm.properties` at your PostgreSQL instance and run `RathORM.create()`.
  5. Wire endpoints, utilities, and UI tables using the templates.
Add RathORM
<dependency>
<groupId>com.tranztechnologies</groupId>
<artifactId>rathorm</artifactId>
<version>1.0.8</version>
</dependency>
Add Rath Common
<dependency>
<groupId>com.tranztechnologies</groupId>
<artifactId>rath-common</artifactId>
<version>1.0.2</version>
</dependency>
Install Rath Components
npm install @tranz-rath/components @mui/material @mui/x-data-grid-premium @emotion/react @emotion/styled
Run RathORM
RathORM.create(
/* dropOnly */ false,
/* dropFirst */ false,
/* dropExtraColumns */ false
);

Ready to build?

Build with Rath Backend, Rath Frontend, and the Rath toolkits.

Explore the docs, drop in the templates, and keep your PostgreSQL schema, service utilities, and React data grids aligned.