# maurodevelop/learning-path-2026 architecture

> Architecture diagram of the GitHub repository maurodevelop/learning-path-2026, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/maurodevelop/learning-path-2026
- Repository: https://github.com/maurodevelop/learning-path-2026

## Overview

This repository is a backend-learning portfolio; its principal product workflow is the Month 02 delivery API, which serves authenticated delivery-platform requests through routes, controllers, business services, and Prisma-backed repositories. Month 03 retains a substantially parallel advanced-features implementation. The README also documents validation, role-based access, deployment, and cloud/media capabilities. The graph focuses on the two runtime API versions and their major domains; where implementation excerpts were unavailable, links are included only when the source index or README supports them.

Main entry points: [`months/month-02-delivery-api/src/infrastructure/repositories`](https://github.com/maurodevelop/learning-path-2026/tree/main/months/month-02-delivery-api/src/infrastructure/repositories) (Prisma repositories), [`months/month-02-delivery-api/src/infrastructure/web/routes/order.routes.ts`](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/web/routes/order.routes.ts) (Order routes), [`months/month-02-delivery-api/src/infrastructure/web/routes/auth.routes.ts`](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/web/routes/auth.routes.ts) (Auth routes), [`months/month-02-delivery-api/src/infrastructure/controllers/ProductController.ts`](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/controllers/ProductController.ts) (Product controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_http["HTTP and Security"]
  node_auth_routes["Auth routes<br/>[auth.routes.ts]"]
  node_auth_controller["Auth controller<br/>[AuthController.ts]"]
  node_auth_service["Auth service<br/>[AuthService.ts]"]
  node_auth_middleware["JWT and roles<br/>[auth.middleware.ts]"]
  node_order_routes["Order routes<br/>[order.routes.ts]"]
end

subgraph group_domain["Delivery Domains"]
  node_order_controller["Order controller<br/>[OrderController.ts]"]
  node_order_service["Order rules<br/>[OrderService.ts]"]
  node_product_controller["Product controller"]
  node_product_service["Product service<br/>[ProductService.ts]"]
  node_catalog_domains["Category and modifiers"]
  node_media["Image uploads"]
end

subgraph group_storage["Persistence"]
  node_prisma[("Prisma client<br/>[prisma.ts]")]
  node_repositories[("Prisma repositories")]
end

subgraph group_advanced["Advanced Version"]
  node_advanced_auth["Advanced auth<br/>[AuthService.ts]"]
  node_advanced_order["Advanced order rules<br/>[OrderService.ts]"]
  node_advanced_order_controller["Advanced order controller<br/>[OrderController.ts]"]
  node_advanced_product_controller["Advanced product controller"]
  node_advanced_repositories[("Advanced repositories")]
end

node_users(("Platform users"))

node_users -->|"requests"| node_auth_routes
node_auth_routes -->|"routes to"| node_auth_controller
node_auth_routes -->|"protects routes"| node_auth_middleware
node_auth_controller -->|"delegates to"| node_auth_service
node_auth_service -->|"uses user repository"| node_repositories
node_users -.->|"places orders"| node_order_routes
node_order_routes -->|"protects routes"| node_auth_middleware
node_order_routes -->|"routes to"| node_order_controller
node_order_controller -->|"delegates to"| node_order_service
node_order_routes -->|"wires repositories"| node_repositories
node_order_service -->|"reads and writes"| node_repositories
node_product_controller -->|"delegates to"| node_product_service
node_product_controller -->|"uploads images"| node_media
node_catalog_domains -.->|"persists catalog"| node_repositories
node_repositories -->|"uses client"| node_prisma
node_advanced_order_controller -->|"delegates to"| node_advanced_order
node_advanced_order -->|"uses repositories"| node_advanced_repositories
node_advanced_product_controller -->|"uploads images"| node_media
node_advanced_auth -->|"uses user repository"| node_advanced_repositories

click node_auth_routes "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/web/routes/auth.routes.ts"
click node_auth_controller "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/controllers/AuthController.ts"
click node_auth_service "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/services/AuthService.ts"
click node_auth_middleware "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/middlewares/auth.middleware.ts"
click node_order_routes "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/web/routes/order.routes.ts"
click node_order_controller "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/controllers/OrderController.ts"
click node_order_service "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/services/OrderService.ts"
click node_product_controller "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/controllers/ProductController.ts"
click node_product_service "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/services/ProductService.ts"
click node_catalog_domains "https://github.com/maurodevelop/learning-path-2026/tree/main/months/month-02-delivery-api/src/services"
click node_media "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/services/CloudinaryService.ts"
click node_prisma "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/database/prisma.ts"
click node_repositories "https://github.com/maurodevelop/learning-path-2026/tree/main/months/month-02-delivery-api/src/infrastructure/repositories"
click node_advanced_auth "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-03-advanced-features/src/services/AuthService.ts"
click node_advanced_order "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-03-advanced-features/src/services/OrderService.ts"
click node_advanced_order_controller "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-03-advanced-features/src/infrastructure/controllers/OrderController.ts"
click node_advanced_product_controller "https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-03-advanced-features/src/infrastructure/controllers/ProductController.ts"
click node_advanced_repositories "https://github.com/maurodevelop/learning-path-2026/tree/main/months/month-03-advanced-features/src/infrastructure/repositories"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_auth_routes,node_auth_controller,node_auth_service,node_auth_middleware,node_order_routes,node_users toneBlue
class node_order_controller,node_order_service,node_product_controller,node_product_service,node_catalog_domains,node_media toneAmber
class node_prisma,node_repositories toneMint
class node_advanced_auth,node_advanced_order,node_advanced_order_controller,node_advanced_product_controller,node_advanced_repositories toneRose
```

## Components

### HTTP and Security

- [Auth routes](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/web/routes/auth.routes.ts): `months/month-02-delivery-api/src/infrastructure/web/routes/auth.routes.ts`
- [Auth controller](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/controllers/AuthController.ts): `months/month-02-delivery-api/src/infrastructure/controllers/AuthController.ts`
- [Auth service](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/services/AuthService.ts): `months/month-02-delivery-api/src/services/AuthService.ts`
- [JWT and roles](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/middlewares/auth.middleware.ts): `months/month-02-delivery-api/src/middlewares/auth.middleware.ts`
- [Order routes](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/web/routes/order.routes.ts): `months/month-02-delivery-api/src/infrastructure/web/routes/order.routes.ts`

### Delivery Domains

- [Order controller](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/controllers/OrderController.ts): `months/month-02-delivery-api/src/infrastructure/controllers/OrderController.ts`
- [Order rules](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/services/OrderService.ts): `months/month-02-delivery-api/src/services/OrderService.ts`
- [Product controller](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/controllers/ProductController.ts): `months/month-02-delivery-api/src/infrastructure/controllers/ProductController.ts`
- [Product service](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/services/ProductService.ts): `months/month-02-delivery-api/src/services/ProductService.ts`
- [Category and modifiers](https://github.com/maurodevelop/learning-path-2026/tree/main/months/month-02-delivery-api/src/services): `months/month-02-delivery-api/src/services`
- [Image uploads](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/services/CloudinaryService.ts): `months/month-02-delivery-api/src/services/CloudinaryService.ts`

### Persistence

- [Prisma client](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-02-delivery-api/src/infrastructure/database/prisma.ts): `months/month-02-delivery-api/src/infrastructure/database/prisma.ts`
- [Prisma repositories](https://github.com/maurodevelop/learning-path-2026/tree/main/months/month-02-delivery-api/src/infrastructure/repositories): `months/month-02-delivery-api/src/infrastructure/repositories`

### Advanced Version

- [Advanced auth](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-03-advanced-features/src/services/AuthService.ts): `months/month-03-advanced-features/src/services/AuthService.ts`
- [Advanced order rules](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-03-advanced-features/src/services/OrderService.ts): `months/month-03-advanced-features/src/services/OrderService.ts`
- [Advanced order controller](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-03-advanced-features/src/infrastructure/controllers/OrderController.ts): `months/month-03-advanced-features/src/infrastructure/controllers/OrderController.ts`
- [Advanced product controller](https://github.com/maurodevelop/learning-path-2026/blob/main/months/month-03-advanced-features/src/infrastructure/controllers/ProductController.ts): `months/month-03-advanced-features/src/infrastructure/controllers/ProductController.ts`
- [Advanced repositories](https://github.com/maurodevelop/learning-path-2026/tree/main/months/month-03-advanced-features/src/infrastructure/repositories): `months/month-03-advanced-features/src/infrastructure/repositories`

### Other components

- **Platform users**

## Connections

- Platform users → Auth routes: requests (evidence: `months/month-02-delivery-api/src/infrastructure/web/routes/auth.routes.ts`)
- Auth routes → Auth controller: routes to (evidence: `months/month-02-delivery-api/src/infrastructure/web/routes/auth.routes.ts`)
- Auth routes → JWT and roles: protects routes (evidence: `months/month-02-delivery-api/src/infrastructure/web/routes/auth.routes.ts`)
- Auth controller → Auth service: delegates to (evidence: `months/month-02-delivery-api/src/infrastructure/web/routes/auth.routes.ts`)
- Auth service → Prisma repositories: uses user repository (evidence: `months/month-02-delivery-api/src/services/AuthService.ts`)
- Platform users → Order routes: places orders (evidence: `README.md`)
- Order routes → JWT and roles: protects routes (evidence: `months/month-02-delivery-api/src/infrastructure/web/routes/order.routes.ts`)
- Order routes → Order controller: routes to (evidence: `months/month-02-delivery-api/src/infrastructure/web/routes/order.routes.ts`)
- Order controller → Order rules: delegates to (evidence: `months/month-02-delivery-api/src/infrastructure/controllers/OrderController.ts`)
- Order routes → Prisma repositories: wires repositories (evidence: `months/month-02-delivery-api/src/infrastructure/web/routes/order.routes.ts`)
- Order rules → Prisma repositories: reads and writes (evidence: `months/month-02-delivery-api/src/services/OrderService.ts`)
- Product controller → Product service: delegates to (evidence: `months/month-02-delivery-api/src/infrastructure/controllers/ProductController.ts`)
- Product controller → Image uploads: uploads images (evidence: `months/month-02-delivery-api/src/infrastructure/controllers/ProductController.ts`)
- Category and modifiers → Prisma repositories: persists catalog
- Prisma repositories → Prisma client: uses client (evidence: `months/month-02-delivery-api/src/infrastructure/repositories/PrismaOrderRepository.ts`)
- Advanced order controller → Advanced order rules: delegates to (evidence: `months/month-03-advanced-features/src/infrastructure/controllers/OrderController.ts`)
- Advanced order rules → Advanced repositories: uses repositories (evidence: `months/month-03-advanced-features/src/services/OrderService.ts`)
- Advanced product controller → Image uploads: uploads images (evidence: `months/month-03-advanced-features/src/infrastructure/controllers/ProductController.ts`)
- Advanced auth → Advanced repositories: uses user repository (evidence: `months/month-03-advanced-features/src/services/AuthService.ts`)
