A restaurant information system for a pizza restaurant — REST API, demo web app, and the architecture behind them.
C# · ASP.NET Core · PostgreSQL · Keycloak (OIDC/JWT) · React · Vite · TypeScript · Docker Compose
🚧 Work in progress: sprint 1 of 3 complete (ISEP LEI, 2026/27). Features and docs will grow over the next two sprints.
LaPrizza is the semester-5 Integrative Project of the BSc in Informatics Engineering (LEI) at ISEP (2026/27), built by a team of 5 over 14 weeks and three sprints as one integrated system — not a set of separate assignments. Several course units contribute to the same product:
- LAPR5 — the back-end REST API and the web application
- ARQSI — the software architecture, design and domain model
- SGRAI — a 3D visualization module (sprint 2)
- IART — an AI planning & scheduling module (sprint 2)
- ASIST — infrastructure, deployment and identity (sprint 2)
The fictional client is a pizza restaurant that wants to run on a single information system. The finished product will let staff manage the menu (products, pizza sizes, allergens, component types, predefined pizzas and the derived product catalogue), manage customers and stock, let customers browse and order, show a 3D view of the kitchen/restaurant, and use an AI planner to schedule the preparation activities an order generates against limited kitchen resources (ovens in particular).
What works at the end of sprint 1: a complete back-end REST API covering eleven business stories (BCK01–BCK11), backed by PostgreSQL, secured with Keycloak (OpenID Connect / JWT), with migrations, demo seed data, and an automated test suite (773 unit, integration and API tests, all green) plus a Postman collection per story. A plain demonstration web page signs in and exercises every implemented story, so the integrated system can be shown end to end. The remaining modules are scaffolding and documentation for now (see the roadmap).
- Concurrency-safe stock. Stock changes use optimistic concurrency on PostgreSQL's
xminrow version: the writer that loses a race reloads and re-checks (up to three attempts), and a client can make the change conditional on the quantity it last saw. Tests race two real requests against PostgreSQL to show stock never goes negative and no increase is lost. (use case · tests) - The database as the last line of defence. Unique, check and foreign-key violations become domain errors with a stable code, so business rules hold even when two requests pass the application checks at the same moment. (UnitOfWork)
- 773 tests at four levels. Domain and application unit tests, integration tests against a real PostgreSQL in Testcontainers, in-process API tests, and Postman/Newman end-to-end collections per story, with every business rule traced to the tests that cover it. (testing)
- Layered domain design. Onion architecture with DDD aggregates that enforce their own invariants, and a separate read side for paged, filtered searches across aggregates. (ADR 0003 · ADR 0016)
- A strict API contract. Code-first OpenAPI, RFC 9457 Problem Details with stable business error codes, and convention tests that check every route against the REST rules. (ADR 0011 · ADR 0015)
- Security and privacy. OIDC/JWT through Keycloak with role checks per route, and GDPR erasure by anonymisation in place, so order history survives a customer's right to be forgotten. (ADR 0017)
Everything runs in containers, so the only hard requirement is Docker (plus a browser). The language runtimes below are optional — needed only if you want to run the API or the page directly on your machine.
| Windows | macOS | Linux | |
|---|---|---|---|
| Required | Docker Desktop (with WSL 2) | Docker Desktop | Docker Engine + Compose plugin |
| Browser | any modern | any modern | any modern |
| Optional (host dev) | .NET SDK 10, Node.js 22 | .NET SDK 10, Node.js 22 | .NET SDK 10, Node.js 22 |
docker compose up --buildThat starts PostgreSQL, Keycloak, the API and the demonstration page, and loads the schema and demo data automatically on first start. First run pulls images and builds, so give it a few minutes.
Then open the page and sign in:
| Web page | http://localhost:5173 |
| API | http://localhost:5282 (health at /api/v1/health; Swagger UI at /swagger) |
| Keycloak | http://localhost:8080 |
Demo logins (all with password demo1234):
| User | Role | Sees |
|---|---|---|
manager@laprizza.test |
Manager | everything, including Customers and Users |
employee@laprizza.test |
Employee | the operational tabs |
customer@laprizza.test |
Customer | the public catalogue |
A .env is optional — compose.yaml ships with working defaults. Copy .env.example to .env
only to change passwords or point at a remote database/Keycloak. To stop and wipe the local data:
docker compose down -v.
Exact commands are identical on Windows, macOS and Linux. On Windows use PowerShell or a WSL 2 shell.
The back-end is the core of sprint 1. Its whole contract is browsable in Swagger UI at http://localhost:5282/swagger: every endpoint, grouped by resource, with its use case, parameters and responses. Use Authorize to paste a Keycloak access token for the protected endpoints.
Any endpoint can be called from the page. Here the public catalogue returns the seeded Margherita, with its category, its allergens derived from its components, and its availability.
Every screen below is a tab of the demonstration page, signed in as the manager, over live API data.
| Course | Focus | What was built in sprint 1 |
|---|---|---|
| LAPR5 | Back-end & web | REST API for BCK01–BCK11 (users & auth, customers, categories, allergens, products, pizza sizes, component types, size configurations, stock, predefined pizzas, catalogue) with PostgreSQL persistence, Keycloak auth, migrations and seed data; a demonstration web page with one tab per story |
| ARQSI | Architecture & design | Software Architecture Document (context, catalogue, views), 21 Architecture Decision Records, the domain model and glossary, and the use-case + REST design and business test plan per story |
| SGRAI | 3D visualization | — (starts sprint 2) |
| IART | AI planning | — (starts sprint 2) |
| ASIST | Infrastructure | — (starts sprint 2; the Keycloak realm/import used by the stack lives in infra/) |
From the project's own module and design docs. Scope for later sprints may still change.
- Sprint 2 — the full web application for customers and staff (LAPR5); the 3D visualization module in Three.js/WebGL (SGRAI); the AI planning & scheduling module in Prolog (IART); the infrastructure/deployment work and shared identity (ASIST); and order management on top of the catalogue.
- Sprint 3 — the third and final integrated increment, consolidating the modules into one system.
laprizza/
├── backend/ REST API — C# / ASP.NET Core, onion architecture, EF Core + PostgreSQL (LAPR5)
│ ├── src/ Domain · Application · Infrastructure · Api
│ ├── tests/ unit, integration (Testcontainers), in-process API, and Postman collections
│ └── Dockerfile builds the API image used by compose.yaml
├── webapp/ Demonstration web page — React · Vite · TypeScript (LAPR5)
├── visualization/ 3D visualization module — Three.js / WebGL (scaffold) (SGRAI)
├── planning/ AI planning & scheduling module — SWI-Prolog (scaffold) (IART)
├── infra/ Infrastructure & identity; today the Keycloak realm and init (ASIST)
├── docs/ Architecture (SAD), ADRs, domain model, per-story design, testing, etc.
│ └── screenshots/ the images used in this README
├── compose.yaml PostgreSQL + Keycloak + API + web page, one command, demo data on first start
├── .env.example optional local settings (compose.yaml has working defaults)
├── run-skeleton.* run the system + page on the host (.sh, .ps1, .bat)
├── run-tests.* run the back-end test suite with coverage (.sh, .bat)
└── run-e2e.sh run the Postman collections with Newman, on their own stack
The team's GitHub Actions CI workflow (
.github/workflows/ci.yml, referenced in ADR 0019) was omitted from this public version.
All documentation lives under docs/ and is version-controlled. Index: docs/README.md.
| Folder | Contents |
|---|---|
| docs/SAD/ | Software Architecture Document: problem statement, context, catalogue, principles, scenarios, NFRs, and the architecture views (with diagrams) |
| docs/architecture_decision_records/ | The Architecture Decision Records (NNNN-*.md): context, alternatives and consequences per decision |
| docs/domain/ | Domain model, glossary and business rules |
| docs/design/ | Use-case design, REST contract and business test plan for each back-end story |
| docs/sector-analysis/ | Study of a real restaurant-sector company and its implications for the problem |
| docs/testing.md | How the back-end is tested: levels, naming, coverage and traceability |
| docs/client-qa.md | The client's answers to the team's questions, and the questions still open |
The whole REST contract is also generated from the code in backend/openapi.json.
Team of five — ISEP, LEI 5th-semester Integrative Project 2026/27:
- Carlos Fernandes
- Cláudio Pinto
- Dinis Silva
- Fábio Costa
- Jaime Simões
The course allows AI tools as assistants: what a tool proposes is read, run and checked by a member before it is committed. The team used Claude (Anthropic), mainly through Claude Code, to help read the specification and user stories, draft architecture documents, ADRs, use-case designs and PlantUML diagrams, write and review back-end code and tests and the Postman collections, and check consistency between design, code, tests and documents. The decisions — architecture style, technology choices, domain rules — are the team's.
This repository is shared as a portfolio piece. All rights reserved by the authors. The code isn't licensed for reuse, but you're welcome to read, clone and run it.






