# kumarjaikishan/accusoft architecture

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

- Interactive diagram: https://gitdiagram.com/kumarjaikishan/accusoft
- Repository: https://github.com/kumarjaikishan/accusoft

## Overview

Accusoft is a financial-management web application combining expense and voucher workflows, financial ledgers and reporting, account access, an admin credential vault, and document handling. Users enter through the React application, which presents routed features; the backend exposes API routes and feature controllers backed by MongoDB models. The excerpts show routing, selected controller-to-model calls, and the vault’s client-side encryption dependency. Many page-to-API interactions and optional external integrations were not sampled, so those relationships are omitted rather than inferred.

Main entry points: [`client/src/App.jsx`](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/App.jsx) (Application routes), [`server/router/route.js`](https://github.com/kumarjaikishan/accusoft/blob/main/server/router/route.js) (API routes), [`server/controller/account_ledger_controller.js`](https://github.com/kumarjaikishan/accusoft/blob/main/server/controller/account_ledger_controller.js) (Account ledger services), [`server/controller/file_controller.js`](https://github.com/kumarjaikishan/accusoft/blob/main/server/controller/file_controller.js) (File services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web application"]
  node_app["Application routes<br/>[App.jsx]"]
  node_api_hook["API request hook<br/>[useApi.js]"]
  node_api_client["HTTP client<br/>[apiClient.js]"]
end

subgraph group_finance["Financial workflows"]
  node_expense_ui["Expense management<br/>[Expense.jsx]"]
  node_voucher_ui["Voucher workflow<br/>[voucher.jsx]"]
  node_analytics_ui["Financial analytics<br/>[dataanalysis.jsx]"]
  node_report_ui["Expense reports<br/>[Report.jsx]"]
  node_ledger_ui["Account ledgers<br/>[AccountLedgers.jsx]"]
  node_ledger_detail_ui["Ledger statements"]
  node_home_ui["Financial dashboard<br/>[home.jsx]"]
end

subgraph group_identity["Identity and admin"]
  node_login_ui["Sign-in<br/>[login.jsx]"]
  node_vault_ui["Credential vault<br/>[Vault.jsx]"]
  node_vault_crypto["Client encryption<br/>[cryptoVault.js]"]
  node_auth_controller["Authentication services"]
  node_vault_controller["Vault services"]
end

subgraph group_server["API and persistence"]
  node_api_server["Express API<br/>[index.js]"]
  node_router["API routes<br/>[route.js]"]
  node_expense_controller["Expense services<br/>[exp_controller.js]"]
  node_ledger_controller["Account ledger services"]
  node_expense_model[("Expense records<br/>[exp_schema.js]")]
  node_ledger_model[("Account ledger records")]
  node_entry_model[("Ledger entries")]
  node_user_model[("User accounts<br/>[login_schema.js]")]
  node_vault_model[("Vault records<br/>[vault_schema.js]")]
  node_file_model[("File metadata<br/>[file_schema.js]")]
end

subgraph group_files["Document services"]
  node_file_ui["Document handling<br/>[filehandle.jsx]"]
  node_file_controller["File services<br/>[file_controller.js]"]
  node_object_storage[("Object storage")]
  node_cloud_media["Cloudinary"]
end

node_user(("User"))

node_user -.->|"uses"| node_app
node_app -->|"routes to"| node_expense_ui
node_app -->|"routes to"| node_voucher_ui
node_app -->|"routes to"| node_analytics_ui
node_app -.->|"routes to"| node_report_ui
node_app -->|"routes to"| node_ledger_ui
node_app -->|"routes to"| node_ledger_detail_ui
node_app -->|"routes to"| node_home_ui
node_app -->|"routes to"| node_login_ui
node_app -.->|"routes to"| node_vault_ui
node_app -.->|"routes to"| node_file_ui
node_vault_ui -->|"encrypts with"| node_vault_crypto
node_api_hook -->|"calls"| node_api_client
node_api_server -->|"mounts"| node_router
node_router -->|"dispatches"| node_expense_controller
node_router -->|"dispatches"| node_ledger_controller
node_router -->|"dispatches"| node_auth_controller
node_router -->|"dispatches"| node_vault_controller
node_router -->|"dispatches"| node_file_controller
node_expense_controller -->|"reads and writes"| node_expense_model
node_ledger_controller -->|"reads and writes"| node_ledger_model
node_ledger_controller -->|"reads and writes"| node_entry_model
node_auth_controller -.->|"uses"| node_user_model
node_vault_controller -->|"uses"| node_vault_model
node_file_controller -->|"uses"| node_file_model
node_file_controller -.->|"stores files"| node_object_storage
node_file_ui -.->|"uploads media"| node_cloud_media

click node_app "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/App.jsx"
click node_expense_ui "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/Expense/Expense.jsx"
click node_voucher_ui "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/voucher.jsx"
click node_analytics_ui "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/dataAnalysis/dataanalysis.jsx"
click node_report_ui "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/Report/Report.jsx"
click node_ledger_ui "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/util/ledger/AccountLedgers.jsx"
click node_ledger_detail_ui "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/util/ledger/LedgerStatementDetail.jsx"
click node_home_ui "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/homePage/home.jsx"
click node_login_ui "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/login/login.jsx"
click node_vault_ui "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/admin/vault/Vault.jsx"
click node_vault_crypto "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/utils/cryptoVault.js"
click node_file_ui "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/filehandle/filehandle.jsx"
click node_api_hook "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/utils/useApi.js"
click node_api_client "https://github.com/kumarjaikishan/accusoft/blob/main/client/src/utils/apiClient.js"
click node_api_server "https://github.com/kumarjaikishan/accusoft/blob/main/server/index.js"
click node_router "https://github.com/kumarjaikishan/accusoft/blob/main/server/router/route.js"
click node_expense_controller "https://github.com/kumarjaikishan/accusoft/blob/main/server/controller/exp_controller.js"
click node_ledger_controller "https://github.com/kumarjaikishan/accusoft/blob/main/server/controller/account_ledger_controller.js"
click node_auth_controller "https://github.com/kumarjaikishan/accusoft/blob/main/server/controller/login_contoroller.js"
click node_vault_controller "https://github.com/kumarjaikishan/accusoft/blob/main/server/controller/vault_controller.js"
click node_file_controller "https://github.com/kumarjaikishan/accusoft/blob/main/server/controller/file_controller.js"
click node_expense_model "https://github.com/kumarjaikishan/accusoft/blob/main/server/modals/exp_schema.js"
click node_ledger_model "https://github.com/kumarjaikishan/accusoft/blob/main/server/modals/account_ledger_schema.js"
click node_entry_model "https://github.com/kumarjaikishan/accusoft/blob/main/server/modals/ledger_entry_schema.js"
click node_user_model "https://github.com/kumarjaikishan/accusoft/blob/main/server/modals/login_schema.js"
click node_vault_model "https://github.com/kumarjaikishan/accusoft/blob/main/server/modals/vault_schema.js"
click node_file_model "https://github.com/kumarjaikishan/accusoft/blob/main/server/modals/file_schema.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_app,node_api_hook,node_api_client,node_user toneBlue
class node_expense_ui,node_voucher_ui,node_analytics_ui,node_report_ui,node_ledger_ui,node_ledger_detail_ui,node_home_ui toneAmber
class node_login_ui,node_vault_ui,node_vault_crypto,node_auth_controller,node_vault_controller toneMint
class node_api_server,node_router,node_expense_controller,node_ledger_controller,node_expense_model,node_ledger_model,node_entry_model,node_user_model,node_vault_model,node_file_model toneRose
class node_file_ui,node_file_controller,node_object_storage,node_cloud_media toneIndigo
```

## Components

### Web application

- [Application routes](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [API request hook](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/utils/useApi.js): `client/src/utils/useApi.js`
- [HTTP client](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/utils/apiClient.js): `client/src/utils/apiClient.js`

### Financial workflows

- [Expense management](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/Expense/Expense.jsx): `client/src/pages/Expense/Expense.jsx`
- [Voucher workflow](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/voucher.jsx): `client/src/pages/voucher.jsx`
- [Financial analytics](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/dataAnalysis/dataanalysis.jsx): `client/src/pages/dataAnalysis/dataanalysis.jsx`
- [Expense reports](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/Report/Report.jsx): `client/src/pages/Report/Report.jsx`
- [Account ledgers](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/util/ledger/AccountLedgers.jsx): `client/src/pages/util/ledger/AccountLedgers.jsx`
- [Ledger statements](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/util/ledger/LedgerStatementDetail.jsx): `client/src/pages/util/ledger/LedgerStatementDetail.jsx`
- [Financial dashboard](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/homePage/home.jsx): `client/src/pages/homePage/home.jsx`

### Identity and admin

- [Sign-in](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/login/login.jsx): `client/src/pages/login/login.jsx`
- [Credential vault](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/admin/vault/Vault.jsx): `client/src/pages/admin/vault/Vault.jsx`
- [Client encryption](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/utils/cryptoVault.js): `client/src/utils/cryptoVault.js`
- [Authentication services](https://github.com/kumarjaikishan/accusoft/blob/main/server/controller/login_contoroller.js): `server/controller/login_contoroller.js`
- [Vault services](https://github.com/kumarjaikishan/accusoft/blob/main/server/controller/vault_controller.js): `server/controller/vault_controller.js`

### API and persistence

- [Express API](https://github.com/kumarjaikishan/accusoft/blob/main/server/index.js): `server/index.js`
- [API routes](https://github.com/kumarjaikishan/accusoft/blob/main/server/router/route.js): `server/router/route.js`
- [Expense services](https://github.com/kumarjaikishan/accusoft/blob/main/server/controller/exp_controller.js): `server/controller/exp_controller.js`
- [Account ledger services](https://github.com/kumarjaikishan/accusoft/blob/main/server/controller/account_ledger_controller.js): `server/controller/account_ledger_controller.js`
- [Expense records](https://github.com/kumarjaikishan/accusoft/blob/main/server/modals/exp_schema.js): `server/modals/exp_schema.js`
- [Account ledger records](https://github.com/kumarjaikishan/accusoft/blob/main/server/modals/account_ledger_schema.js): `server/modals/account_ledger_schema.js`
- [Ledger entries](https://github.com/kumarjaikishan/accusoft/blob/main/server/modals/ledger_entry_schema.js): `server/modals/ledger_entry_schema.js`
- [User accounts](https://github.com/kumarjaikishan/accusoft/blob/main/server/modals/login_schema.js): `server/modals/login_schema.js`
- [Vault records](https://github.com/kumarjaikishan/accusoft/blob/main/server/modals/vault_schema.js): `server/modals/vault_schema.js`
- [File metadata](https://github.com/kumarjaikishan/accusoft/blob/main/server/modals/file_schema.js): `server/modals/file_schema.js`

### Document services

- [Document handling](https://github.com/kumarjaikishan/accusoft/blob/main/client/src/pages/filehandle/filehandle.jsx): `client/src/pages/filehandle/filehandle.jsx`
- [File services](https://github.com/kumarjaikishan/accusoft/blob/main/server/controller/file_controller.js): `server/controller/file_controller.js`
- **Object storage**
- **Cloudinary**

### Other components

- **User**

## Connections

- User → Application routes: uses
- Application routes → Expense management: routes to (evidence: `client/src/App.jsx`)
- Application routes → Voucher workflow: routes to (evidence: `client/src/App.jsx`)
- Application routes → Financial analytics: routes to (evidence: `client/src/App.jsx`)
- Application routes → Expense reports: routes to (evidence: `client/src/App.jsx`)
- Application routes → Account ledgers: routes to (evidence: `client/src/App.jsx`)
- Application routes → Ledger statements: routes to (evidence: `client/src/App.jsx`)
- Application routes → Financial dashboard: routes to (evidence: `client/src/App.jsx`)
- Application routes → Sign-in: routes to (evidence: `client/src/App.jsx`)
- Application routes → Credential vault: routes to (evidence: `client/src/App.jsx`)
- Application routes → Document handling: routes to (evidence: `client/src/App.jsx`)
- Credential vault → Client encryption: encrypts with (evidence: `client/src/pages/admin/vault/Vault.jsx`)
- API request hook → HTTP client: calls (evidence: `client/src/utils/useApi.js`)
- Express API → API routes: mounts (evidence: `server/index.js`)
- API routes → Expense services: dispatches (evidence: `server/router/route.js`)
- API routes → Account ledger services: dispatches (evidence: `server/router/route.js`)
- API routes → Authentication services: dispatches (evidence: `server/router/route.js`)
- API routes → Vault services: dispatches (evidence: `server/router/route.js`)
- API routes → File services: dispatches (evidence: `server/router/route.js`)
- Expense services → Expense records: reads and writes (evidence: `server/controller/exp_controller.js`)
- Account ledger services → Account ledger records: reads and writes (evidence: `server/controller/account_ledger_controller.js`)
- Account ledger services → Ledger entries: reads and writes (evidence: `server/controller/account_ledger_controller.js`)
- Authentication services → User accounts: uses
- Vault services → Vault records: uses (evidence: `server/controller/vault_controller.js`)
- File services → File metadata: uses (evidence: `server/controller/file_controller.js`)
- File services → Object storage: stores files (evidence: `server/controller/file_controller.js`)
- Document handling → Cloudinary: uploads media
