# puttirakesh/branchsuite_business architecture

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

- Interactive diagram: https://gitdiagram.com/puttirakesh/branchsuite_business
- Repository: https://github.com/puttirakesh/branchsuite_business

## Overview

BranchSuite is a development starter for a mobile business app backed by a NestJS REST API and a PostgreSQL/Prisma data layer. Its only demonstrated user-facing result is a home screen saying the starter is ready; the backend exposes a health check. Auth, branches, CRM, employees, payroll, and users have directory placeholders, but the README says the workflows remain to be built. The graph therefore shows the present structure, not an implemented business workflow; module wiring and database usage are not evidenced.

Main entry points: [`backend/src/app.module.ts`](https://github.com/puttirakesh/branchsuite_business/blob/main/backend/src/app.module.ts) (App module), [`backend/src/main.ts`](https://github.com/puttirakesh/branchsuite_business/blob/main/backend/src/main.ts) (API bootstrap), [`frontend/app/index.tsx`](https://github.com/puttirakesh/branchsuite_business/blob/main/frontend/app/index.tsx) (Starter home), [`backend/src/health.controller.ts`](https://github.com/puttirakesh/branchsuite_business/blob/main/backend/src/health.controller.ts) (Health endpoint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mobile["Mobile app"]
  node_layout["App navigation<br/>[_layout.tsx]"]
  node_home["Starter home<br/>[index.tsx]"]
  node_api_client["API client<br/>[api.ts]"]
end

subgraph group_api["Backend API"]
  node_bootstrap["API bootstrap<br/>[main.ts]"]
  node_app_module["App module<br/>[app.module.ts]"]
  node_health["Health endpoint"]
  node_auth["Auth placeholder"]
  node_branches["Branches placeholder"]
  node_crm["CRM placeholder"]
  node_employees["Employees placeholder"]
  node_payroll["Payroll placeholder"]
  node_users["Users placeholder"]
end

subgraph group_data["Data layer"]
  node_schema["Prisma schema<br/>[schema.prisma]"]
end

node_user(("App user"))

node_bootstrap -->|"creates app"| node_app_module
node_app_module -->|"registers"| node_health
node_user -.->|"views"| node_home

click node_layout "https://github.com/puttirakesh/branchsuite_business/blob/main/frontend/app/_layout.tsx"
click node_home "https://github.com/puttirakesh/branchsuite_business/blob/main/frontend/app/index.tsx"
click node_api_client "https://github.com/puttirakesh/branchsuite_business/blob/main/frontend/src/services/api.ts"
click node_bootstrap "https://github.com/puttirakesh/branchsuite_business/blob/main/backend/src/main.ts"
click node_app_module "https://github.com/puttirakesh/branchsuite_business/blob/main/backend/src/app.module.ts"
click node_health "https://github.com/puttirakesh/branchsuite_business/blob/main/backend/src/health.controller.ts"
click node_schema "https://github.com/puttirakesh/branchsuite_business/blob/main/backend/prisma/schema.prisma"
click node_auth "https://github.com/puttirakesh/branchsuite_business/tree/main/backend/src/modules/auth"
click node_branches "https://github.com/puttirakesh/branchsuite_business/tree/main/backend/src/modules/branches"
click node_crm "https://github.com/puttirakesh/branchsuite_business/tree/main/backend/src/modules/crm"
click node_employees "https://github.com/puttirakesh/branchsuite_business/tree/main/backend/src/modules/employees"
click node_payroll "https://github.com/puttirakesh/branchsuite_business/tree/main/backend/src/modules/payroll"
click node_users "https://github.com/puttirakesh/branchsuite_business/tree/main/backend/src/modules/users"

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_layout,node_home,node_api_client,node_user toneBlue
class node_bootstrap,node_app_module,node_health,node_auth,node_branches,node_crm,node_employees,node_payroll,node_users toneAmber
class node_schema toneMint
```

## Components

### Mobile app

- [App navigation](https://github.com/puttirakesh/branchsuite_business/blob/main/frontend/app/_layout.tsx): `frontend/app/_layout.tsx`
- [Starter home](https://github.com/puttirakesh/branchsuite_business/blob/main/frontend/app/index.tsx): `frontend/app/index.tsx`
- [API client](https://github.com/puttirakesh/branchsuite_business/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`

### Backend API

- [API bootstrap](https://github.com/puttirakesh/branchsuite_business/blob/main/backend/src/main.ts): `backend/src/main.ts`
- [App module](https://github.com/puttirakesh/branchsuite_business/blob/main/backend/src/app.module.ts): `backend/src/app.module.ts`
- [Health endpoint](https://github.com/puttirakesh/branchsuite_business/blob/main/backend/src/health.controller.ts): `backend/src/health.controller.ts`
- [Auth placeholder](https://github.com/puttirakesh/branchsuite_business/tree/main/backend/src/modules/auth): `backend/src/modules/auth`
- [Branches placeholder](https://github.com/puttirakesh/branchsuite_business/tree/main/backend/src/modules/branches): `backend/src/modules/branches`
- [CRM placeholder](https://github.com/puttirakesh/branchsuite_business/tree/main/backend/src/modules/crm): `backend/src/modules/crm`
- [Employees placeholder](https://github.com/puttirakesh/branchsuite_business/tree/main/backend/src/modules/employees): `backend/src/modules/employees`
- [Payroll placeholder](https://github.com/puttirakesh/branchsuite_business/tree/main/backend/src/modules/payroll): `backend/src/modules/payroll`
- [Users placeholder](https://github.com/puttirakesh/branchsuite_business/tree/main/backend/src/modules/users): `backend/src/modules/users`

### Data layer

- [Prisma schema](https://github.com/puttirakesh/branchsuite_business/blob/main/backend/prisma/schema.prisma): `backend/prisma/schema.prisma`

### Other components

- **App user**

## Connections

- API bootstrap → App module: creates app (evidence: `backend/src/main.ts`)
- App module → Health endpoint: registers (evidence: `backend/src/app.module.ts`)
- App user → Starter home: views (evidence: `README.md`)
