# lovisastalnacke/my-first-project architecture

> Architecture diagram of the GitHub repository lovisastalnacke/my-first-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lovisastalnacke/my-first-project
- Repository: https://github.com/lovisastalnacke/my-first-project

## Overview

This is a small console library application. A user selects menu actions in Main, which initializes the in-memory book list and dispatches viewing, borrowing, returning, and searching operations to Book. Book holds book details and loan status, performs catalog searches, and reads or prints operation-specific prompts and results through the console. The catalog is process-local rather than a persistent store. The map reflects the two supplied source files; no additional subsystems are indicated by the README or tree.

Main entry points: [`Main.java`](https://github.com/lovisastalnacke/my-first-project/blob/main/Main.java) (Menu and dispatch), [`Book.java`](https://github.com/lovisastalnacke/my-first-project/blob/main/Book.java) (Book catalog and loans)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_library["Library application"]
  node_main["Menu and dispatch<br/>[Main.java]"]
  node_book["Book catalog and loans<br/>[Book.java]"]
end

node_user(("User"))

node_user -->|"chooses actions"| node_main
node_main -->|"initializes and dispatches"| node_book
node_book -->|"prompts and reports"| node_user

click node_main "https://github.com/lovisastalnacke/my-first-project/blob/main/Main.java"
click node_book "https://github.com/lovisastalnacke/my-first-project/blob/main/Book.java"

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_main,node_book,node_user toneBlue
```

## Components

### Library application

- [Menu and dispatch](https://github.com/lovisastalnacke/my-first-project/blob/main/Main.java): `Main.java`
- [Book catalog and loans](https://github.com/lovisastalnacke/my-first-project/blob/main/Book.java): `Book.java`

### Other components

- **User**

## Connections

- User → Menu and dispatch: chooses actions (evidence: `Main.java`)
- Menu and dispatch → Book catalog and loans: initializes and dispatches (evidence: `Main.java`)
- Book catalog and loans → User: prompts and reports (evidence: `Book.java`)
