● Project · 5 chapters

Build an Order Management System

One application, all four technologies, nothing skipped. We design the domain, build the PostgreSQL schema, map it with MyBatis, expose a secured Spring Boot API, and put an Angular front end on it — then hand it to the deployment course to ship.

Angular 18 Spring Boot 3.3 MyBatis 3.5 PostgreSQL 16
Entity relationship diagram of customer, order, order line, product, payment, shipment and outbox tables

What we are building

An internal order management tool — the kind of application that actually gets built in industry. Operators search orders, open one, change its state, and create new orders. It is small enough to finish and realistic enough to teach something.

🔍

Search & list

Server-side paging, six optional filters, sorting, and a CSV export.

📄

Order detail

Header, lines, payment, shipment and an audit timeline of every state change.

✍️

Create & edit

A multi-step reactive form with line items, live totals and server-side validation.

🔄

State transitions

Place, pay, fulfil, cancel and refund — each guarded and audited.

🔐

Roles

Viewer, operator and admin, enforced on the API and reflected in the UI.

📈

Operations

Health probes, metrics, structured logs and a transactional outbox.

Four stages: design and data, backend, frontend, ship it
Each chapter ends with something that runs.

The architecture

Angular in the browser, Spring Boot application server, MyBatis persistence and PostgreSQL
Three deployable units. Everything in this project fits on this diagram.

The domain rule that shapes everything

An order is a state machine. Almost every requirement — which buttons appear, which API calls are allowed, what gets audited — falls out of this one diagram.

Order state machine from DRAFT through PLACED, PAID, FULFILLED and DELIVERED, with cancellation and refund branches
Illegal transitions throw. Every legal one writes an audit row in the same transaction.

Chapters

Repository layout

one repository, three deployables
oms
├── docker-compose.yml
├── api/                              Spring Boot + MyBatis
│   ├── pom.xml
│   ├── Dockerfile
│   └── src/main
│       ├── java/com/bitsnippets/oms
│       │   ├── OmsApplication.java
│       │   ├── order/                the aggregate: domain, mapper, service, controller
│       │   ├── customer/
│       │   ├── product/
│       │   ├── security/
│       │   └── common/               errors, config, outbox
│       └── resources
│           ├── application.yml
│           ├── db/migration/         V1__init.sql, V2__outbox.sql …
│           └── com/bitsnippets/oms/order/OrderMapper.xml
└── web/                              Angular
    ├── package.json
    ├── Dockerfile
    ├── nginx.conf
    └── src/app
        ├── core/                     auth, http interceptors, models
        ├── features/orders/          list, detail, form, order.store.ts
        └── shared/
Why one repository

The API contract changes on both sides at once. A single repository means one pull request, one review and one CI run for a change that spans both — which is worth far more than the theoretical independence of separate repos until you have separate teams.

Before you start

RequirementVersionCovered in
JDK21Spring Boot ch. 2
Node20 LTSAngular ch. 2
DockerRecentDeployment course
PostgreSQL16, via DockerPostgreSQL ch. 1

You do not need to finish the four courses first. Each chapter links back to the relevant one when it introduces something new.