# zukovlabs/enterprise-java-saas-starter-kit architecture

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

- Interactive diagram: https://gitdiagram.com/zukovlabs/enterprise-java-saas-starter-kit
- Repository: https://github.com/zukovlabs/enterprise-java-saas-starter-kit

## Overview

Enterprise SaaS Starter is a full-stack community boilerplate: an Angular interface drives JWT registration, login and refresh; authenticated users manage customer records, view aggregate dashboard statistics, and update their profiles. Spring controllers delegate these domain operations to services and JPA repositories. The README also describes the PostgreSQL-backed stack and JWT access/refresh tokens. Arrows rely on shown calls or the README; several frontend API connections and security wiring are evident from documented behavior but their implementation excerpts are unavailable, so those links are dashed.

Main entry points: [`frontend/src/app/app.routes.ts`](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/app.routes.ts) (Route map), [`src/main/java/com/saaskit/starter/service/AuthService.java`](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/service/AuthService.java) (Auth service), [`frontend/src/app/app.ts`](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/app.ts) (Application shell), [`frontend/src/app/pages/login/login.ts`](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/pages/login/login.ts) (Login and registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Angular interface"]
  node_frontend["Application shell<br/>[app.ts]"]
  node_routes["Route map<br/>[app.routes.ts]"]
  node_login["Login and registration<br/>[login.ts]"]
  node_authclient["Auth client<br/>[auth.service.ts]"]
  node_customersui["Customer management<br/>[customers.ts]"]
  node_customerclient["Customer API client"]
  node_dashboardui["Dashboard view<br/>[dashboard.ts]"]
  node_dashboardclient["Dashboard API client"]
  node_settings["Profile settings<br/>[settings.ts]"]
  node_userclient["User API client<br/>[user.service.ts]"]
end

subgraph group_api["Spring API"]
  node_authcontroller["Authentication endpoints"]
  node_customercontroller["Customer endpoints"]
  node_dashboardcontroller["Dashboard endpoint"]
  node_usercontroller["Profile endpoints"]
end

subgraph group_identity["Identity and security"]
  node_authservice["Auth service<br/>[AuthService.java]"]
  node_jwt["JWT utilities<br/>[JwtUtils.java]"]
  node_jwtfilter["JWT request filter"]
  node_securityconfig["Security configuration"]
end

subgraph group_domain["SaaS operations"]
  node_customerservice["Customer service"]
  node_dashboardservice["Statistics service"]
  node_userservice["User service<br/>[UserService.java]"]
  node_customerrepo[("Customer records")]
  node_userrepo[("User records")]
end

node_user(("User"))
node_browser(("Browser"))

node_user -->|"uses"| node_browser
node_browser -.->|"loads"| node_frontend
node_frontend -.->|"renders routes"| node_routes
node_routes -->|"routes to"| node_login
node_routes -->|"routes to"| node_customersui
node_routes -->|"routes to"| node_dashboardui
node_routes -->|"routes to"| node_settings
node_login -.->|"uses"| node_authclient
node_authclient -->|"HTTP auth"| node_authcontroller
node_customersui -->|"uses"| node_customerclient
node_customerclient -.->|"HTTP CRUD"| node_customercontroller
node_dashboardui -->|"uses"| node_dashboardclient
node_dashboardclient -.->|"HTTP stats"| node_dashboardcontroller
node_settings -->|"uses"| node_userclient
node_userclient -.->|"HTTP profile"| node_usercontroller
node_authcontroller -->|"delegates"| node_authservice
node_authservice -->|"reads and writes"| node_userrepo
node_authservice -->|"issues tokens"| node_jwt
node_securityconfig -.->|"configures"| node_jwtfilter
node_jwtfilter -->|"validates tokens"| node_jwt
node_customercontroller -->|"delegates"| node_customerservice
node_customerservice -->|"queries and updates"| node_customerrepo
node_dashboardcontroller -->|"delegates"| node_dashboardservice
node_dashboardservice -->|"counts records"| node_customerrepo
node_usercontroller -->|"delegates"| node_userservice
node_userservice -->|"reads and updates"| node_userrepo

click node_frontend "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/app.ts"
click node_routes "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/app.routes.ts"
click node_login "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/pages/login/login.ts"
click node_authclient "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/services/auth.service.ts"
click node_customersui "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/pages/customers/customers.ts"
click node_customerclient "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/services/customer.service.ts"
click node_dashboardui "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/pages/dashboard/dashboard.ts"
click node_dashboardclient "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/services/dashboard.service.ts"
click node_settings "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/pages/settings/settings.ts"
click node_userclient "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/services/user.service.ts"
click node_authcontroller "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/controller/AuthController.java"
click node_customercontroller "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/controller/CustomerController.java"
click node_dashboardcontroller "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/controller/DashboardController.java"
click node_usercontroller "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/controller/UserController.java"
click node_authservice "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/service/AuthService.java"
click node_jwt "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/security/JwtUtils.java"
click node_jwtfilter "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/security/JwtAuthenticationFilter.java"
click node_securityconfig "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/config/SecurityConfig.java"
click node_customerservice "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/service/CustomerService.java"
click node_dashboardservice "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/service/DashboardService.java"
click node_userservice "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/service/UserService.java"
click node_customerrepo "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/repository/CustomerRepository.java"
click node_userrepo "https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/repository/UserRepository.java"

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,node_routes,node_login,node_authclient,node_customersui,node_customerclient,node_dashboardui,node_dashboardclient,node_settings,node_userclient,node_user,node_browser toneBlue
class node_authcontroller,node_customercontroller,node_dashboardcontroller,node_usercontroller toneAmber
class node_authservice,node_jwt,node_jwtfilter,node_securityconfig toneMint
class node_customerservice,node_dashboardservice,node_userservice,node_customerrepo,node_userrepo toneRose
```

## Components

### Angular interface

- [Application shell](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/app.ts): `frontend/src/app/app.ts`
- [Route map](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/app.routes.ts): `frontend/src/app/app.routes.ts`
- [Login and registration](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/pages/login/login.ts): `frontend/src/app/pages/login/login.ts`
- [Auth client](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/services/auth.service.ts): `frontend/src/app/services/auth.service.ts`
- [Customer management](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/pages/customers/customers.ts): `frontend/src/app/pages/customers/customers.ts`
- [Customer API client](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/services/customer.service.ts): `frontend/src/app/services/customer.service.ts`
- [Dashboard view](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/pages/dashboard/dashboard.ts): `frontend/src/app/pages/dashboard/dashboard.ts`
- [Dashboard API client](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/services/dashboard.service.ts): `frontend/src/app/services/dashboard.service.ts`
- [Profile settings](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/pages/settings/settings.ts): `frontend/src/app/pages/settings/settings.ts`
- [User API client](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/frontend/src/app/services/user.service.ts): `frontend/src/app/services/user.service.ts`

### Spring API

- [Authentication endpoints](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/controller/AuthController.java): `src/main/java/com/saaskit/starter/controller/AuthController.java`
- [Customer endpoints](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/controller/CustomerController.java): `src/main/java/com/saaskit/starter/controller/CustomerController.java`
- [Dashboard endpoint](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/controller/DashboardController.java): `src/main/java/com/saaskit/starter/controller/DashboardController.java`
- [Profile endpoints](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/controller/UserController.java): `src/main/java/com/saaskit/starter/controller/UserController.java`

### Identity and security

- [Auth service](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/service/AuthService.java): `src/main/java/com/saaskit/starter/service/AuthService.java`
- [JWT utilities](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/security/JwtUtils.java): `src/main/java/com/saaskit/starter/security/JwtUtils.java`
- [JWT request filter](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/security/JwtAuthenticationFilter.java): `src/main/java/com/saaskit/starter/security/JwtAuthenticationFilter.java`
- [Security configuration](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/config/SecurityConfig.java): `src/main/java/com/saaskit/starter/config/SecurityConfig.java`

### SaaS operations

- [Customer service](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/service/CustomerService.java): `src/main/java/com/saaskit/starter/service/CustomerService.java`
- [Statistics service](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/service/DashboardService.java): `src/main/java/com/saaskit/starter/service/DashboardService.java`
- [User service](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/service/UserService.java): `src/main/java/com/saaskit/starter/service/UserService.java`
- [Customer records](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/repository/CustomerRepository.java): `src/main/java/com/saaskit/starter/repository/CustomerRepository.java`
- [User records](https://github.com/zukovlabs/enterprise-java-saas-starter-kit/blob/master/src/main/java/com/saaskit/starter/repository/UserRepository.java): `src/main/java/com/saaskit/starter/repository/UserRepository.java`

### Other components

- **User**
- **Browser**

## Connections

- User → Browser: uses
- Browser → Application shell: loads
- Application shell → Route map: renders routes
- Route map → Login and registration: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route map → Customer management: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route map → Dashboard view: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Route map → Profile settings: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Login and registration → Auth client: uses
- Auth client → Authentication endpoints: HTTP auth (evidence: `frontend/src/app/services/auth.service.ts`)
- Customer management → Customer API client: uses (evidence: `frontend/src/app/pages/customers/customers.ts`)
- Customer API client → Customer endpoints: HTTP CRUD
- Dashboard view → Dashboard API client: uses (evidence: `frontend/src/app/pages/dashboard/dashboard.ts`)
- Dashboard API client → Dashboard endpoint: HTTP stats
- Profile settings → User API client: uses (evidence: `frontend/src/app/pages/settings/settings.ts`)
- User API client → Profile endpoints: HTTP profile
- Authentication endpoints → Auth service: delegates (evidence: `src/main/java/com/saaskit/starter/controller/AuthController.java`)
- Auth service → User records: reads and writes (evidence: `src/main/java/com/saaskit/starter/service/AuthService.java`)
- Auth service → JWT utilities: issues tokens (evidence: `src/main/java/com/saaskit/starter/service/AuthService.java`)
- Security configuration → JWT request filter: configures
- JWT request filter → JWT utilities: validates tokens (evidence: `src/main/java/com/saaskit/starter/security/JwtAuthenticationFilter.java`)
- Customer endpoints → Customer service: delegates (evidence: `src/main/java/com/saaskit/starter/controller/CustomerController.java`)
- Customer service → Customer records: queries and updates (evidence: `src/main/java/com/saaskit/starter/service/CustomerService.java`)
- Dashboard endpoint → Statistics service: delegates (evidence: `src/main/java/com/saaskit/starter/controller/DashboardController.java`)
- Statistics service → Customer records: counts records (evidence: `src/main/java/com/saaskit/starter/service/DashboardService.java`)
- Profile endpoints → User service: delegates (evidence: `src/main/java/com/saaskit/starter/controller/UserController.java`)
- User service → User records: reads and updates (evidence: `src/main/java/com/saaskit/starter/service/UserService.java`)
