# ediopaul/todo-app architecture

> Architecture diagram of the GitHub repository ediopaul/todo-app, 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/ediopaul/todo-app
- Repository: https://github.com/ediopaul/todo-app

## Overview

Todo-App is a React/Redux task manager backed by a Node/Express API and MongoDB. A user opens the todo view, searches or edits tasks, and task actions issue HTTP requests to the API; the API exposes CRUD routes backed by the todo model and MongoDB. The frontend also includes an About page. The graph follows documented and excerpted wiring; unsampled implementation details are represented only where the tree and source index support them.

Main entry points: [`backend/src/loader.js`](https://github.com/ediopaul/todo-app/blob/master/backend/src/loader.js) (Backend loader), [`frontend/src/index.jsx`](https://github.com/ediopaul/todo-app/blob/master/frontend/src/index.jsx) (React entry and store), [`frontend/src/main/app.jsx`](https://github.com/ediopaul/todo-app/blob/master/frontend/src/main/app.jsx) (Application shell), [`frontend/src/main/routes.jsx`](https://github.com/ediopaul/todo-app/blob/master/frontend/src/main/routes.jsx) (Page routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["React frontend"]
  node_entry["React entry and store<br/>[index.jsx]"]
  node_app["Application shell<br/>[app.jsx]"]
  node_navigation["Menu navigation<br/>[menu.jsx]"]
  node_routing["Page routing<br/>[routes.jsx]"]
  node_about["About page<br/>[about.jsx]"]
end

subgraph group_state["Todo interface and state"]
  node_todo_view["Todo view<br/>[todo.jsx]"]
  node_todo_form["Task form<br/>[todoForm.jsx]"]
  node_todo_list["Task list<br/>[todoList.jsx]"]
  node_todo_actions["Task actions<br/>[todoActions.js]"]
  node_todo_reducer["Todo state reducer<br/>[todoReducer.js]"]
  node_root_reducers["Root reducers<br/>[reducers.js]"]
end

subgraph group_backend["Express API"]
  node_api_routes["API route setup<br/>[routes.js]"]
  node_server["HTTP server<br/>[server.js]"]
  node_cors["CORS middleware<br/>[cors.js]"]
  node_loader["Backend loader<br/>[loader.js]"]
end

subgraph group_persistence["Todo persistence"]
  node_todo_service["Todo CRUD service<br/>[todoService.js]"]
  node_todo_model["Todo model<br/>[todo.js]"]
  node_database_config["Database connection<br/>[database.js]"]
end

node_user(("User"))
node_mongo[("MongoDB")]

node_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_entry -->|"configures store"| node_root_reducers
node_root_reducers -->|"combines"| node_todo_reducer
node_app -->|"renders"| node_navigation
node_app -->|"renders"| node_routing
node_routing -->|"routes to"| node_todo_view
node_routing -->|"routes to"| node_about
node_about -->|"presents page"| node_user
node_todo_view -->|"renders"| node_todo_form
node_todo_view -->|"renders"| node_todo_list
node_todo_form -->|"dispatches"| node_todo_actions
node_todo_list -->|"dispatches"| node_todo_actions
node_todo_actions -->|"HTTP requests"| node_api_routes
node_loader -->|"loads"| node_server
node_loader -->|"connects"| node_database_config
node_loader -->|"loads"| node_api_routes
node_server -->|"uses middleware"| node_cors
node_api_routes -->|"registers routes"| node_todo_service
node_todo_service -->|"configures CRUD"| node_todo_model
node_database_config -->|"connects"| node_mongo

click node_entry "https://github.com/ediopaul/todo-app/blob/master/frontend/src/index.jsx"
click node_app "https://github.com/ediopaul/todo-app/blob/master/frontend/src/main/app.jsx"
click node_navigation "https://github.com/ediopaul/todo-app/blob/master/frontend/src/template/menu.jsx"
click node_routing "https://github.com/ediopaul/todo-app/blob/master/frontend/src/main/routes.jsx"
click node_about "https://github.com/ediopaul/todo-app/blob/master/frontend/src/about/about.jsx"
click node_todo_view "https://github.com/ediopaul/todo-app/blob/master/frontend/src/todo/todo.jsx"
click node_todo_form "https://github.com/ediopaul/todo-app/blob/master/frontend/src/todo/todoForm.jsx"
click node_todo_list "https://github.com/ediopaul/todo-app/blob/master/frontend/src/todo/todoList.jsx"
click node_todo_actions "https://github.com/ediopaul/todo-app/blob/master/frontend/src/todo/todoActions.js"
click node_todo_reducer "https://github.com/ediopaul/todo-app/blob/master/frontend/src/todo/todoReducer.js"
click node_root_reducers "https://github.com/ediopaul/todo-app/blob/master/frontend/src/main/reducers.js"
click node_api_routes "https://github.com/ediopaul/todo-app/blob/master/backend/src/config/routes.js"
click node_server "https://github.com/ediopaul/todo-app/blob/master/backend/src/config/server.js"
click node_cors "https://github.com/ediopaul/todo-app/blob/master/backend/src/config/cors.js"
click node_loader "https://github.com/ediopaul/todo-app/blob/master/backend/src/loader.js"
click node_todo_service "https://github.com/ediopaul/todo-app/blob/master/backend/src/api/todo/todoService.js"
click node_todo_model "https://github.com/ediopaul/todo-app/blob/master/backend/src/api/todo/todo.js"
click node_database_config "https://github.com/ediopaul/todo-app/blob/master/backend/src/config/database.js"

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_entry,node_app,node_navigation,node_routing,node_about,node_user toneBlue
class node_todo_view,node_todo_form,node_todo_list,node_todo_actions,node_todo_reducer,node_root_reducers,node_mongo toneAmber
class node_api_routes,node_server,node_cors,node_loader toneMint
class node_todo_service,node_todo_model,node_database_config toneRose
```

## Components

### React frontend

- [React entry and store](https://github.com/ediopaul/todo-app/blob/master/frontend/src/index.jsx): `frontend/src/index.jsx`
- [Application shell](https://github.com/ediopaul/todo-app/blob/master/frontend/src/main/app.jsx): `frontend/src/main/app.jsx`
- [Menu navigation](https://github.com/ediopaul/todo-app/blob/master/frontend/src/template/menu.jsx): `frontend/src/template/menu.jsx`
- [Page routing](https://github.com/ediopaul/todo-app/blob/master/frontend/src/main/routes.jsx): `frontend/src/main/routes.jsx`
- [About page](https://github.com/ediopaul/todo-app/blob/master/frontend/src/about/about.jsx): `frontend/src/about/about.jsx`

### Todo interface and state

- [Todo view](https://github.com/ediopaul/todo-app/blob/master/frontend/src/todo/todo.jsx): `frontend/src/todo/todo.jsx`
- [Task form](https://github.com/ediopaul/todo-app/blob/master/frontend/src/todo/todoForm.jsx): `frontend/src/todo/todoForm.jsx`
- [Task list](https://github.com/ediopaul/todo-app/blob/master/frontend/src/todo/todoList.jsx): `frontend/src/todo/todoList.jsx`
- [Task actions](https://github.com/ediopaul/todo-app/blob/master/frontend/src/todo/todoActions.js): `frontend/src/todo/todoActions.js`
- [Todo state reducer](https://github.com/ediopaul/todo-app/blob/master/frontend/src/todo/todoReducer.js): `frontend/src/todo/todoReducer.js`
- [Root reducers](https://github.com/ediopaul/todo-app/blob/master/frontend/src/main/reducers.js): `frontend/src/main/reducers.js`

### Express API

- [API route setup](https://github.com/ediopaul/todo-app/blob/master/backend/src/config/routes.js): `backend/src/config/routes.js`
- [HTTP server](https://github.com/ediopaul/todo-app/blob/master/backend/src/config/server.js): `backend/src/config/server.js`
- [CORS middleware](https://github.com/ediopaul/todo-app/blob/master/backend/src/config/cors.js): `backend/src/config/cors.js`
- [Backend loader](https://github.com/ediopaul/todo-app/blob/master/backend/src/loader.js): `backend/src/loader.js`

### Todo persistence

- [Todo CRUD service](https://github.com/ediopaul/todo-app/blob/master/backend/src/api/todo/todoService.js): `backend/src/api/todo/todoService.js`
- [Todo model](https://github.com/ediopaul/todo-app/blob/master/backend/src/api/todo/todo.js): `backend/src/api/todo/todo.js`
- [Database connection](https://github.com/ediopaul/todo-app/blob/master/backend/src/config/database.js): `backend/src/config/database.js`

### Other components

- **User**
- **MongoDB**

## Connections

- User → React entry and store: opens app (evidence: `README.md`)
- React entry and store → Application shell: renders (evidence: `frontend/src/index.jsx`)
- React entry and store → Root reducers: configures store (evidence: `frontend/src/index.jsx`)
- Root reducers → Todo state reducer: combines (evidence: `frontend/src/main/reducers.js`)
- Application shell → Menu navigation: renders (evidence: `frontend/src/main/app.jsx`)
- Application shell → Page routing: renders (evidence: `frontend/src/main/app.jsx`)
- Page routing → Todo view: routes to (evidence: `frontend/src/main/routes.jsx`)
- Page routing → About page: routes to (evidence: `frontend/src/main/routes.jsx`)
- About page → User: presents page (evidence: `frontend/src/about/about.jsx`)
- Todo view → Task form: renders (evidence: `frontend/src/todo/todo.jsx`)
- Todo view → Task list: renders (evidence: `frontend/src/todo/todo.jsx`)
- Task form → Task actions: dispatches (evidence: `frontend/src/todo/todoForm.jsx`)
- Task list → Task actions: dispatches (evidence: `frontend/src/todo/todoList.jsx`)
- Task actions → API route setup: HTTP requests (evidence: `frontend/src/todo/todoActions.js`)
- Backend loader → HTTP server: loads (evidence: `backend/src/loader.js`)
- Backend loader → Database connection: connects (evidence: `backend/src/loader.js`)
- Backend loader → API route setup: loads (evidence: `backend/src/loader.js`)
- HTTP server → CORS middleware: uses middleware (evidence: `backend/src/config/server.js`)
- API route setup → Todo CRUD service: registers routes (evidence: `backend/src/config/routes.js`)
- Todo CRUD service → Todo model: configures CRUD (evidence: `backend/src/api/todo/todoService.js`)
- Database connection → MongoDB: connects (evidence: `backend/src/config/database.js`)
