# navya-1803/fundo-notes-backend architecture

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

- Interactive diagram: https://gitdiagram.com/navya-1803/fundo-notes-backend
- Repository: https://github.com/navya-1803/fundo-notes-backend

## Overview

Fundoo Notes is a token-based REST backend for account access and personal note management. The main workflow runs from a client through controllers, validated DTOs, services and repositories to MySQL; login supplies a JWT used for protected note and reminder operations. Separate documented branches cover Redis values and OTPs, RabbitMQ reminders, JMS registration events, dashboard caching, trash cleanup and Excel import. The README documents these capabilities and broad relationships, but no source excerpts were supplied, so finer-grained calls and dispatch details are not asserted.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["REST API"]
  node_controllers["REST Controllers"]
  node_dto["Validated DTOs"]
  node_exceptions["Exception Handling"]
end

subgraph group_core["Accounts and Notes"]
  node_users["User Services"]
  node_notes["Note Services"]
  node_repositories["Repositories"]
  node_entities["User and Note Entities"]
end

subgraph group_async["Events and Jobs"]
  node_jms["Registration Events"]
  node_reminders["Reminder Services"]
  node_batch["Trash Cleanup Job"]
  node_excel["Excel Import Job"]
end

subgraph group_platform["Supporting Services"]
  node_redisapi["Redis and OTP API"]
  node_cache["Dashboard Cache"]
  node_aspects["Logging and Timing"]
end

node_client(("Client"))
node_mysql[("MySQL")]
node_activemq["ActiveMQ"]
node_rabbitmq["RabbitMQ"]
node_redis[("Redis")]

node_client -->|"sends requests"| node_controllers
node_controllers -->|"validates input"| node_dto
node_controllers -->|"handles account requests"| node_users
node_controllers -->|"handles note requests"| node_notes
node_controllers -->|"schedules reminders"| node_reminders
node_controllers -->|"handles Redis requests"| node_redisapi
node_controllers -->|"runs cleanup"| node_batch
node_controllers -->|"starts import"| node_excel
node_users -->|"uses"| node_repositories
node_notes -->|"uses"| node_repositories
node_repositories -->|"persists"| node_entities
node_repositories -->|"reads and writes"| node_mysql
node_users -->|"publishes registration"| node_jms
node_jms -->|"sends events"| node_activemq
node_reminders -->|"publishes reminders"| node_rabbitmq
node_redisapi -->|"reads and writes"| node_redis
node_notes -->|"caches dashboard"| node_cache
node_cache -->|"uses cache store"| node_redis
node_batch -->|"deletes old trash"| node_repositories
node_excel -->|"imports notes"| node_repositories
node_controllers -->|"formats errors"| node_exceptions

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_controllers,node_dto,node_exceptions,node_client toneBlue
class node_users,node_notes,node_repositories,node_entities,node_mysql,node_redis toneAmber
class node_jms,node_reminders,node_batch,node_excel toneMint
class node_redisapi,node_cache,node_aspects toneRose
class node_activemq,node_rabbitmq toneIndigo
```

## Components

### REST API

- **REST Controllers**
- **Validated DTOs**
- **Exception Handling**

### Accounts and Notes

- **User Services**
- **Note Services**
- **Repositories**
- **User and Note Entities**

### Events and Jobs

- **Registration Events**
- **Reminder Services**
- **Trash Cleanup Job**
- **Excel Import Job**

### Supporting Services

- **Redis and OTP API**
- **Dashboard Cache**
- **Logging and Timing**

### Other components

- **Client**
- **MySQL**
- **ActiveMQ**
- **RabbitMQ**
- **Redis**

## Connections

- Client → REST Controllers: sends requests (evidence: `README.md`)
- REST Controllers → Validated DTOs: validates input (evidence: `README.md`)
- REST Controllers → User Services: handles account requests (evidence: `README.md`)
- REST Controllers → Note Services: handles note requests (evidence: `README.md`)
- REST Controllers → Reminder Services: schedules reminders (evidence: `README.md`)
- REST Controllers → Redis and OTP API: handles Redis requests (evidence: `README.md`)
- REST Controllers → Trash Cleanup Job: runs cleanup (evidence: `README.md`)
- REST Controllers → Excel Import Job: starts import (evidence: `README.md`)
- User Services → Repositories: uses (evidence: `README.md`)
- Note Services → Repositories: uses (evidence: `README.md`)
- Repositories → User and Note Entities: persists (evidence: `README.md`)
- Repositories → MySQL: reads and writes (evidence: `README.md`)
- User Services → Registration Events: publishes registration (evidence: `README.md`)
- Registration Events → ActiveMQ: sends events (evidence: `README.md`)
- Reminder Services → RabbitMQ: publishes reminders (evidence: `README.md`)
- Redis and OTP API → Redis: reads and writes (evidence: `README.md`)
- Note Services → Dashboard Cache: caches dashboard (evidence: `README.md`)
- Dashboard Cache → Redis: uses cache store (evidence: `README.md`)
- Trash Cleanup Job → Repositories: deletes old trash (evidence: `README.md`)
- Excel Import Job → Repositories: imports notes (evidence: `README.md`)
- REST Controllers → Exception Handling: formats errors (evidence: `README.md`)
