Logo

Cake Planner

Backend

Backend Class Design

The Backend is built using modern C++23 and the Crow framework. It follows a layered MVC-like architecture (Controller-Model-Service).


Table of Contents


Description

This document visualizes the class structure and relationships of the Cake Planner Backend.

Class Diagrams

The following diagram illustrates the core classes and their relationships. To ensure readability, the classes are arranged in logical tiers.

Class Diagram

Component Details

The application follows a defined Model-View-Controller (MVC) pattern (where "View" is JSON serialization).

Controllers

Controllers handle incoming HTTP requests, parse JSON bodies, and delegate logic to Models or Services. They are the entry point for the REST API.

Models

Models represent the data entities and encompass the business logic and database interactions.

Services

Services encapsulate business logic that spans multiple models or involves external communication.

Middleware

Utilities & Core

Helper classes for common tasks.