# narnagas/enterprise-fullstack-reference architecture

> Architecture diagram of the GitHub repository narnagas/enterprise-fullstack-reference, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/narnagas/enterprise-fullstack-reference
- Repository: https://github.com/narnagas/enterprise-fullstack-reference

## Overview

This is an Angular and ASP.NET Core project-operations reference app. Users navigate to Projects or Customers, search and page through results, select a row to load its detail, edit and save it, then refresh the search. The API separates routing, search/edit services, and EF Core persistence; SQL Server is configured as the store. Customer and project API paths are shown as separate domain stages. Several client and project-editor details are documented but their source was not sampled, so those links are based on the README; unsampled implementation specifics are not inferred.

Main entry points: [`server/EnterpriseFullStackReference.Api/Controllers/CustomersController.cs`](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Controllers/CustomersController.cs) (Customers controller), [`server/EnterpriseFullStackReference.Api/Data/ApplicationDbContext.cs`](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Data/ApplicationDbContext.cs) (EF Core context), [`server/EnterpriseFullStackReference.Api/Controllers/ProjectsController.cs`](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Controllers/ProjectsController.cs) (Projects controller), [`client/src/app/app.routes.ts`](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/app.routes.ts) (Workspace routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Angular client"]
  node_shell["App shell<br/>[app.component.ts]"]
  node_routes["Workspace routes<br/>[app.routes.ts]"]
  node_project_ui["Project search and editor"]
  node_project_http["Project HTTP service<br/>[project.service.ts]"]
  node_customer_ui["Customer search and editor"]
  node_customer_http["Customer HTTP service"]
  node_auth_client["Auth interceptor"]
end

subgraph group_api["REST API"]
  node_projects_api["Projects controller"]
  node_customers_api["Customers controller"]
  node_errors["Exception handling"]
end

subgraph group_domain["Search and editing"]
  node_project_search["Project search"]
  node_project_editor["Project editing"]
  node_customer_search["Customer search"]
  node_customer_editor["Customer editing"]
end

subgraph group_persistence["Persistence and security"]
  node_dbcontext["EF Core context"]
  node_sql[("SQL Server")]
  node_security["API security"]
end

node_user(("Workspace user"))

node_user -->|"uses"| node_shell
node_shell -->|"navigates"| node_routes
node_routes -->|"routes to"| node_project_ui
node_routes -->|"routes to"| node_customer_ui
node_project_ui -.->|"requests"| node_project_http
node_customer_ui -.->|"requests"| node_customer_http
node_project_http -.->|"HTTPS JSON"| node_projects_api
node_customer_http -.->|"HTTPS JSON"| node_customers_api
node_auth_client -.->|"intercepts"| node_project_http
node_auth_client -.->|"intercepts"| node_customer_http
node_projects_api -->|"dispatches search"| node_project_search
node_projects_api -->|"dispatches edits"| node_project_editor
node_customers_api -->|"dispatches search"| node_customer_search
node_customers_api -->|"dispatches edits"| node_customer_editor
node_project_search -->|"queries"| node_dbcontext
node_customer_search -->|"queries"| node_dbcontext
node_customer_editor -->|"reads and saves"| node_dbcontext
node_project_editor -.->|"reads and saves"| node_dbcontext
node_dbcontext -->|"persists via EF"| node_sql
node_projects_api -->|"authorizes"| node_security
node_customers_api -->|"authorizes"| node_security
node_errors -.->|"handles failures"| node_customers_api

click node_shell "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/app.component.ts"
click node_routes "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/app.routes.ts"
click node_project_ui "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/features/projects/project-search.component.ts"
click node_project_http "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/features/projects/project.service.ts"
click node_customer_ui "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/features/customers/customer-search.component.ts"
click node_customer_http "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/features/customers/customer.service.ts"
click node_auth_client "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/core/auth/reference-auth.interceptor.ts"
click node_projects_api "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Controllers/ProjectsController.cs"
click node_customers_api "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Controllers/CustomersController.cs"
click node_project_search "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Services/ProjectSearchService.cs"
click node_project_editor "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Services/ProjectEditorService.cs"
click node_customer_search "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Services/CustomerSearchService.cs"
click node_customer_editor "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Services/CustomerEditorService.cs"
click node_dbcontext "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Data/ApplicationDbContext.cs"
click node_security "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Security/ReferenceHeaderAuthenticationHandler.cs"
click node_errors "https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Infrastructure/GlobalExceptionHandler.cs"

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_shell,node_routes,node_project_ui,node_project_http,node_customer_ui,node_customer_http,node_auth_client,node_user toneBlue
class node_projects_api,node_customers_api,node_errors toneAmber
class node_project_search,node_project_editor,node_customer_search,node_customer_editor toneMint
class node_dbcontext,node_sql,node_security toneRose
```

## Components

### Angular client

- [App shell](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/app.component.ts): `client/src/app/app.component.ts`
- [Workspace routes](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/app.routes.ts): `client/src/app/app.routes.ts`
- [Project search and editor](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/features/projects/project-search.component.ts): `client/src/app/features/projects/project-search.component.ts`
- [Project HTTP service](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/features/projects/project.service.ts): `client/src/app/features/projects/project.service.ts`
- [Customer search and editor](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/features/customers/customer-search.component.ts): `client/src/app/features/customers/customer-search.component.ts`
- [Customer HTTP service](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/features/customers/customer.service.ts): `client/src/app/features/customers/customer.service.ts`
- [Auth interceptor](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/client/src/app/core/auth/reference-auth.interceptor.ts): `client/src/app/core/auth/reference-auth.interceptor.ts`

### REST API

- [Projects controller](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Controllers/ProjectsController.cs): `server/EnterpriseFullStackReference.Api/Controllers/ProjectsController.cs`
- [Customers controller](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Controllers/CustomersController.cs): `server/EnterpriseFullStackReference.Api/Controllers/CustomersController.cs`
- [Exception handling](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Infrastructure/GlobalExceptionHandler.cs): `server/EnterpriseFullStackReference.Api/Infrastructure/GlobalExceptionHandler.cs`

### Search and editing

- [Project search](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Services/ProjectSearchService.cs): `server/EnterpriseFullStackReference.Api/Services/ProjectSearchService.cs`
- [Project editing](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Services/ProjectEditorService.cs): `server/EnterpriseFullStackReference.Api/Services/ProjectEditorService.cs`
- [Customer search](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Services/CustomerSearchService.cs): `server/EnterpriseFullStackReference.Api/Services/CustomerSearchService.cs`
- [Customer editing](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Services/CustomerEditorService.cs): `server/EnterpriseFullStackReference.Api/Services/CustomerEditorService.cs`

### Persistence and security

- [EF Core context](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Data/ApplicationDbContext.cs): `server/EnterpriseFullStackReference.Api/Data/ApplicationDbContext.cs`
- **SQL Server**
- [API security](https://github.com/narnagas/enterprise-fullstack-reference/blob/main/server/EnterpriseFullStackReference.Api/Security/ReferenceHeaderAuthenticationHandler.cs): `server/EnterpriseFullStackReference.Api/Security/ReferenceHeaderAuthenticationHandler.cs`

### Other components

- **Workspace user**

## Connections

- Workspace user → App shell: uses (evidence: `README.md`)
- App shell → Workspace routes: navigates (evidence: `client/src/app/app.component.ts`)
- Workspace routes → Project search and editor: routes to (evidence: `client/src/app/app.routes.ts`)
- Workspace routes → Customer search and editor: routes to (evidence: `client/src/app/app.routes.ts`)
- Project search and editor → Project HTTP service: requests (evidence: `README.md`)
- Customer search and editor → Customer HTTP service: requests (evidence: `README.md`)
- Project HTTP service → Projects controller: HTTPS JSON (evidence: `README.md`)
- Customer HTTP service → Customers controller: HTTPS JSON (evidence: `README.md`)
- Auth interceptor → Project HTTP service: intercepts
- Auth interceptor → Customer HTTP service: intercepts
- Projects controller → Project search: dispatches search
- Projects controller → Project editing: dispatches edits
- Customers controller → Customer search: dispatches search (evidence: `server/EnterpriseFullStackReference.Api/Controllers/CustomersController.cs`)
- Customers controller → Customer editing: dispatches edits (evidence: `server/EnterpriseFullStackReference.Api/Controllers/CustomersController.cs`)
- Project search → EF Core context: queries (evidence: `server/EnterpriseFullStackReference.Api/Services/ProjectSearchService.cs`)
- Customer search → EF Core context: queries (evidence: `server/EnterpriseFullStackReference.Api/Services/CustomerSearchService.cs`)
- Customer editing → EF Core context: reads and saves (evidence: `server/EnterpriseFullStackReference.Api/Services/CustomerEditorService.cs`)
- Project editing → EF Core context: reads and saves (evidence: `server/EnterpriseFullStackReference.Api/Services/ProjectEditorService.cs`)
- EF Core context → SQL Server: persists via EF
- Projects controller → API security: authorizes (evidence: `server/EnterpriseFullStackReference.Api/Controllers/ProjectsController.cs`)
- Customers controller → API security: authorizes (evidence: `server/EnterpriseFullStackReference.Api/Controllers/CustomersController.cs`)
- Exception handling → Customers controller: handles failures
