# daifmx/itesm_oracle_oci architecture

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

- Interactive diagram: https://gitdiagram.com/daifmx/itesm_oracle_oci
- Repository: https://github.com/daifmx/itesm_oracle_oci

## Overview

1. This repository is a full-stack project management system, but the code structure is closer to a single Spring Boot backend with an embedded React frontend than to multiple separately deployed application services. The backend is the system boundary that exposes APIs, persists data, and hosts integration logic.

2. The main runtime is Java 17 with Spring Boot. The backend entry point is `MyTodoListApplication`, and the server layer is organized by feature controllers: authentication, users, teams, projects, sprints, tasks, comments, employees, chat, and Telegram bot integration. This is the primary application API surface.

3. The frontend is a Vite/React SPA under `src/main/frontend`. It includes a routed UI for login, dashboards, kanban, projects, sprints, todos, and user management. The React app consumes backend REST APIs through shared client helpers in `src/lib`, and includes reusable UI components plus dashboard/kanban-specific component trees.

4. The core data flow is: browser UI → React API client → Spring REST controllers → service layer → repositories → database. The domain model is centered on `Task`, `Project`, `Sprint`, `Team`, `Employee`, `Comment`, and `RefreshToken`, which gives the system its project-management and KPI-tracking shape.

5. Security is a first-class boundary. Authentication is JWT-based, enforced by `JwtAuthFilter` and configured through Spring Security. The presence of refresh-token entities and auth DTOs indicates short-lived access tokens plus token renewal. CORS configuration is explicitly separated, which matters because the frontend is deployed as a distinct client even if packaged with the backend.

6. The database layer is repository-driven and backed by Oracle-oriented configuration. There are dedicated config classes for Oracle/database settings, and SQL migration files at the repository root indicate schema evolution and seed data management. This suggests a relational persistence model with controlled startup data.

7. The product includes a Telegram chatbot path distinct from the browser UI. `ChatController`, `TelegramBotController`, `BotAgentService`, and the `util/Bot*` classes form a bot subsystem that handles chat commands, automated notifications, and task/status queries. The README also references OpenRouter, and the `OpenRouterConfig` / `OpenRouterService` classes show an external AI-assisted chat/agent integration.

8. The frontend is not just a generic shell; it contains two major user experiences: management dashboards and operational task boards. The dashboard pages focus on KPIs such as sprint velocity and productivity, while the kanban and developer pages support task workflow, assignments, comments, and status changes. A chat widget in the UI likely mirrors the chatbot backend capability.

9. Infrastructure is cloud-native and OCI-specific. The `terraform` directory defines Oracle Cloud resources such as API Gateway, Kubernetes/OKE, container registry, object storage, and database components. This indicates the production architecture uses infrastructure-as-code, container orchestration, and managed cloud services rather than a standalone VM deployment.

10. Deployment is containerized and automated. The backend has a `Dockerfile`, build/deploy scripts, and GitHub Actions workflows for deployment and documentation. The repo also includes compose-based local development and utility scripts for setup/teardown, which means the same codebase supports local, container, and OCI deployment paths.

11. The system’s operational concerns include database initialization, environment bootstrap, and release management. The root `migrations` directory, `setup.sh`/`destroy.sh` scripts, and release/changelog files suggest the project is intended to be provisioned and upgraded as a managed platform rather than a one-off application.

12. For diagramming, the most important boundaries are: the React client, the Spring Boot API, the security/auth layer, the persistence layer, the Telegram/OpenRouter external integrations, and the OCI infrastructure layer. The strongest architectural message is that the product is a modular monolithic backend with a rich SPA frontend and multiple external integration channels, deployed as containers on OCI.

Main entry points: [`MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/controller`](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/controller) (API controllers), [`MtdrSpring/backend/src/main/frontend/src/router.jsx`](https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/frontend/src/router.jsx) (Router), [`MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/service`](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/service) (Services), [`MtdrSpring/utils`](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/utils) (Deploy tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend SPA"]
  node_frontend_app["React app<br/>SPA<br/>[App.jsx]"]
  node_routing["Router<br/>client routing<br/>[router.jsx]"]
  node_api_client["API client<br/>client data access<br/>[api.js]"]
  node_dashboard_ui["Dashboard UI<br/>analytics views"]
  node_kanban_ui["Kanban UI<br/>task board"]
  node_developer_ui["Developer UI<br/>work management"]
end

subgraph group_backend["Spring Backend"]
  node_app_entry(("App entry<br/>spring boot"))
  node_api_controllers["API controllers<br/>REST endpoints"]
end

subgraph group_security["Security"]
  node_auth{{"JWT auth<br/>security"}}
  node_cors["CORS config<br/>web config<br/>[CorsConfig.java]"]
end

subgraph group_domain["Domain & Data"]
  node_service_layer["Services<br/>business logic"]
  node_repositories["Repositories<br/>data access"]
  node_models[("Domain models<br/>entities")]
end

subgraph group_integrations["Integrations"]
  node_bot_integration{{"Bot services<br/>chatbot"}}
  node_openrouter["OpenRouter<br/>external AI"]
end

subgraph group_ops["Deployment"]
  node_cloud_iac["OCI IaC<br/>infrastructure as code"]
  node_deploy_scripts["Deploy tools<br/>automation"]
end

node_frontend_app -->|"uses"| node_routing
node_routing -->|"loads"| node_dashboard_ui
node_routing -->|"loads"| node_kanban_ui
node_routing -->|"loads"| node_developer_ui
node_frontend_app -->|"calls"| node_api_client
node_api_client -->|"REST calls"| node_api_controllers
node_app_entry -->|"starts"| node_api_controllers
node_api_controllers -->|"secured by"| node_auth
node_auth -.->|"permits"| node_cors
node_api_controllers -->|"delegates"| node_service_layer
node_service_layer -->|"persists via"| node_repositories
node_repositories -->|"maps"| node_models
node_service_layer -->|"uses"| node_models
node_service_layer -->|"invokes"| node_bot_integration
node_bot_integration -.->|"calls"| node_openrouter
node_api_controllers -->|"exposes"| node_bot_integration
node_cloud_iac -.->|"supports"| node_deploy_scripts
node_deploy_scripts -.->|"deploys"| node_app_entry
node_deploy_scripts -.->|"packages"| node_frontend_app
node_cloud_iac -.->|"hosts"| node_app_entry

click node_app_entry "https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/MyTodoListApplication.java"
click node_api_controllers "https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/controller"
click node_service_layer "https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/service"
click node_repositories "https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/repository"
click node_models "https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/model"
click node_auth "https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/security"
click node_cors "https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/config/CorsConfig.java"
click node_frontend_app "https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/frontend/src/App.jsx"
click node_routing "https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/frontend/src/router.jsx"
click node_api_client "https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/frontend/src/lib/api.js"
click node_dashboard_ui "https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/frontend/src/pages/Dashboard"
click node_kanban_ui "https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/frontend/src/pages/Kanban"
click node_developer_ui "https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/frontend/src/pages/DeveloperDashboard"
click node_bot_integration "https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/service/BotAgentService.java"
click node_openrouter "https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/service/OpenRouterService.java"
click node_cloud_iac "https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/terraform"
click node_deploy_scripts "https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/utils"

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_frontend_app,node_routing,node_api_client,node_dashboard_ui,node_kanban_ui,node_developer_ui toneBlue
class node_app_entry,node_api_controllers toneAmber
class node_auth,node_cors toneMint
class node_service_layer,node_repositories,node_models toneRose
class node_bot_integration,node_openrouter toneIndigo
class node_cloud_iac,node_deploy_scripts toneTeal
```

## Components

### Frontend SPA

Embedded React client and UI modules.

- [React app](https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/frontend/src/App.jsx): SPA · Vite/React frontend shell and route composition. · `MtdrSpring/backend/src/main/frontend/src/App.jsx`
- [Router](https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/frontend/src/router.jsx): client routing · Route definitions and page navigation. · `MtdrSpring/backend/src/main/frontend/src/router.jsx`
- [API client](https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/frontend/src/lib/api.js): client data access · Shared fetch and auth helpers used by the UI. · `MtdrSpring/backend/src/main/frontend/src/lib/api.js`
- [Dashboard UI](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/frontend/src/pages/Dashboard): analytics views · KPI and productivity dashboards for managers. · `MtdrSpring/backend/src/main/frontend/src/pages/Dashboard`
- [Kanban UI](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/frontend/src/pages/Kanban): task board · Operational task boards, cards, forms, and modal workflows. · `MtdrSpring/backend/src/main/frontend/src/pages/Kanban`
- [Developer UI](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/frontend/src/pages/DeveloperDashboard): work management · Developer-facing backlog and task execution views. · `MtdrSpring/backend/src/main/frontend/src/pages/DeveloperDashboard`

### Spring Backend

Java 17 Spring Boot application and feature controllers.

- [App entry](https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/MyTodoListApplication.java): spring boot · Application bootstrap and runtime entry point. · `MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/MyTodoListApplication.java`
- [API controllers](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/controller): REST endpoints · Feature controllers for auth, users, teams, projects, sprints, tasks, comments, employees, chat, and bot access. · `MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/controller`

### Security

JWT authentication and security configuration.

- [JWT auth](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/security): security · JWT filter, token utility, user details, and security configuration. · `MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/security`
- [CORS config](https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/config/CorsConfig.java): web config · Cross-origin configuration for the embedded SPA client. · `MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/config/CorsConfig.java`

### Domain & Data

Core entities, services, and repositories.

- [Services](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/service): business logic · Application services coordinating rules, orchestration, and persistence. · `MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/service`
- [Repositories](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/repository): data access · Spring Data repositories for relational persistence. · `MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/repository`
- [Domain models](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/model): entities · Project-management entities and token state. · `MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/model`

### Integrations

Bot, chat, and external AI integration paths.

- [Bot services](https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/service/BotAgentService.java): chatbot · Telegram bot control, command handling, and chat-agent orchestration. · `MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/service/BotAgentService.java`
- [OpenRouter](https://github.com/daifmx/itesm_oracle_oci/blob/main/MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/service/OpenRouterService.java): external AI · External AI-assisted chat integration. · `MtdrSpring/backend/src/main/java/com/springboot/MyTodoList/service/OpenRouterService.java`

### Deployment

Container, CI/CD, and OCI infrastructure.

- [OCI IaC](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/terraform): infrastructure as code · Terraform for API gateway, OKE, registry, storage, and database resources. · `MtdrSpring/terraform`
- [Deploy tools](https://github.com/daifmx/itesm_oracle_oci/tree/main/MtdrSpring/utils): automation · Build, deploy, setup, and teardown scripts plus CI workflows. · `MtdrSpring/utils`

## Connections

- React app → Router: uses · The SPA mounts routing and page composition.
- Router → Dashboard UI: loads · Routes to dashboard pages.
- Router → Kanban UI: loads · Routes to kanban views.
- Router → Developer UI: loads · Routes to developer workflow views.
- React app → API client: calls · UI components use shared API helpers.
- API client → API controllers: REST calls · Browser data flows into backend controllers.
- App entry → API controllers: starts · Spring Boot boots the HTTP API surface.
- API controllers → JWT auth: secured by · Controllers are protected by JWT security.
- JWT auth → CORS config: permits · Security boundary allows the SPA origin.
- API controllers → Services: delegates · Controllers hand off request handling to services.
- Services → Repositories: persists via · Business logic accesses repositories for data operations.
- Repositories → Domain models: maps · Repositories operate on the domain entities.
- Services → Domain models: uses · Services coordinate core domain objects and token state.
- Services → Bot services: invokes · Chat and automation flows are handled by bot services.
- Bot services → OpenRouter: calls · Bot agent can use the external AI service.
- API controllers → Bot services: exposes · Chat and Telegram endpoints surface the bot subsystem.
- OCI IaC → Deploy tools: supports · Infrastructure and automation define provisioning and release flows.
- Deploy tools → App entry: deploys · Scripts and CI build and ship the backend application.
- Deploy tools → React app: packages · Frontend assets are built as part of the backend bundle.
- OCI IaC → App entry: hosts · OCI resources host the containerized application.
