Skip to content

2025

School canteen management with allergy tracking

Modular .NET 8 API with a Next.js front end for managing students, menus and allergies, where a data error has real consequences.

  • C#
  • .NET 8
  • EF Core
  • PostgreSQL
  • Next.js
  • TypeScript

Problem

A school canteen handles data that cannot be wrong: which child has which allergy, and what to do if something happens. When that lives in spreadsheets and printed lists, information duplicates, goes stale, and nobody knows which copy is current.

Solution

An API organised by domain, each module self-contained: model, persistence configuration, repository and controller. Students, allergies and their relationship are first-class entities, so an allergy is defined once and associated, rather than retyped on every record.

Every entity inherits auditing and soft delete, because in this domain you want to know who changed what and be able to recover a record retired by mistake.

Architecture

Next.js (React 19) REST / API .NET 8 | / Users | Students | Allergies | / EF Core PostgreSQL

Technical decisions

  • Domain modules instead of folders by technical type: allergy code lives together, not spread across four directories.
  • EF Core configurations split per entity, outside the context.
  • A base entity carrying auditing and soft delete, inherited across the model.
  • Server Components on the front end, with session state resolved server-side.

Result

Modular backend covering users, students and allergies, with a Next.js front end consuming the API. Still evolving: students and allergies are modelled and pending completion of their exposure layer.

Contact

Let's work together on your next project

If you have a SAP Business One project, a pending integration or simply a question, send me a message. I reply to everything.

Location
Palma, Mallorca