# s-zaytsev/jasmine.fastenerdepartment architecture

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

- Interactive diagram: https://gitdiagram.com/s-zaytsev/jasmine.fastenerdepartment
- Repository: https://github.com/s-zaytsev/jasmine.fastenerdepartment

## Overview

Jasmine Fastener Department is a multi-client product: a .NET backend, React web frontend, and Android application. The clearest evidenced workflow is a web request routed to product API operations and then to the product service; the repository also models orders, synchronization, templates, suppliers, and related business areas. The README does not describe the product workflow, and most implementation files were not sampled, so uncertain connections are omitted rather than inferred.

Main entry points: [`JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/network/JasmineApiService.kt`](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/network/JasmineApiService.kt) (Android API client), [`jasmine-fastener-department-react/src/app/Routes.tsx`](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/jasmine-fastener-department-react/src/app/Routes.tsx) (React application), [`Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.EF/ApplicationDbContext.cs`](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.EF/ApplicationDbContext.cs) (Application database), [`JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/MainActivity.kt`](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/MainActivity.kt) (Android app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["Client applications"]
  node_web_app["React application<br/>[Routes.tsx]"]
  node_web_features["Web feature pages<br/>[UserRoutes.tsx]"]
  node_android_app["Android app<br/>[MainActivity.kt]"]
  node_android_api["Android API client"]
  node_mobile_store[("Android local database<br/>[JasmineDatabase.kt]")]
end

subgraph group_api["Backend API"]
  node_api_host["Web API host<br/>[Program.cs]"]
  node_product_api["Product endpoints"]
  node_order_api["Order endpoints"]
end

subgraph group_domain["Business domain"]
  node_product_service["Product service<br/>[ProductsService.cs]"]
  node_order_service["Order service<br/>[OrdersService.cs]"]
  node_product_model["Product model<br/>[Product.cs]"]
  node_order_model["Order model<br/>[Order.cs]"]
end

subgraph group_persistence["Persistence and documents"]
  node_database[("Application database")]
  node_template_render["Template rendering"]
  node_document_providers["Document providers"]
end

subgraph group_operations["Import and synchronization"]
  node_console_import["JSON product import"]
  node_sync_service["Product synchronization"]
end

node_web_user(("Web user"))

node_web_app -->|"routes to"| node_web_features
node_web_user -.->|"uses"| node_web_app
node_product_api -->|"calls"| node_product_service
node_api_host -->|"configures"| node_database
node_console_import -->|"uses"| node_database
node_android_api -.->|"sync relationship"| node_mobile_store
node_android_app -.->|"uses"| node_android_api
node_android_api -.->|"synchronizes with"| node_sync_service

click node_web_app "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/jasmine-fastener-department-react/src/app/Routes.tsx"
click node_web_features "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/jasmine-fastener-department-react/src/user/UserRoutes.tsx"
click node_android_app "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/MainActivity.kt"
click node_android_api "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/network/JasmineApiService.kt"
click node_api_host "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.WebApi/Program.cs"
click node_product_api "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.WebApi/Controllers/ProductsController.cs"
click node_order_api "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.WebApi/Controllers/OrdersController.cs"
click node_product_service "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Application/Services/Products/ProductsService.cs"
click node_order_service "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Application/Services/Orders/OrdersService.cs"
click node_product_model "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Domain/Products/Models/Product.cs"
click node_order_model "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Domain/Orders/Models/Order.cs"
click node_database "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.EF/ApplicationDbContext.cs"
click node_template_render "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Application/Services/Templates/TemplateRenderService.cs"
click node_document_providers "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Documents/Providers/ExcelTemplateProvider.cs"
click node_console_import "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.ConsoleApplication/Services/JsonProductService.cs"
click node_sync_service "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Application/Services/Synchronization/SynchronizationService.cs"
click node_mobile_store "https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/data/database/JasmineDatabase.kt"

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_web_app,node_web_features,node_android_app,node_android_api,node_mobile_store,node_web_user toneBlue
class node_api_host,node_product_api,node_order_api toneAmber
class node_product_service,node_order_service,node_product_model,node_order_model toneMint
class node_database,node_template_render,node_document_providers toneRose
class node_console_import,node_sync_service toneIndigo
```

## Components

### Client applications

- [React application](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/jasmine-fastener-department-react/src/app/Routes.tsx): `jasmine-fastener-department-react/src/app/Routes.tsx`
- [Web feature pages](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/jasmine-fastener-department-react/src/user/UserRoutes.tsx): `jasmine-fastener-department-react/src/user/UserRoutes.tsx`
- [Android app](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/MainActivity.kt): `JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/MainActivity.kt`
- [Android API client](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/network/JasmineApiService.kt): `JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/network/JasmineApiService.kt`
- [Android local database](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/data/database/JasmineDatabase.kt): `JasmineFastenerDepartment.Kotlin/app/src/main/java/com/szaytsev/jasminefastenerdepartment/data/database/JasmineDatabase.kt`

### Backend API

- [Web API host](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.WebApi/Program.cs): `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.WebApi/Program.cs`
- [Product endpoints](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.WebApi/Controllers/ProductsController.cs): `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.WebApi/Controllers/ProductsController.cs`
- [Order endpoints](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.WebApi/Controllers/OrdersController.cs): `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.WebApi/Controllers/OrdersController.cs`

### Business domain

- [Product service](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Application/Services/Products/ProductsService.cs): `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Application/Services/Products/ProductsService.cs`
- [Order service](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Application/Services/Orders/OrdersService.cs): `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Application/Services/Orders/OrdersService.cs`
- [Product model](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Domain/Products/Models/Product.cs): `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Domain/Products/Models/Product.cs`
- [Order model](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Domain/Orders/Models/Order.cs): `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Domain/Orders/Models/Order.cs`

### Persistence and documents

- [Application database](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.EF/ApplicationDbContext.cs): `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.EF/ApplicationDbContext.cs`
- [Template rendering](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Application/Services/Templates/TemplateRenderService.cs): `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Application/Services/Templates/TemplateRenderService.cs`
- [Document providers](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Documents/Providers/ExcelTemplateProvider.cs): `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Documents/Providers/ExcelTemplateProvider.cs`

### Import and synchronization

- [JSON product import](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.ConsoleApplication/Services/JsonProductService.cs): `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.ConsoleApplication/Services/JsonProductService.cs`
- [Product synchronization](https://github.com/s-zaytsev/jasmine.fastenerdepartment/blob/master/Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Application/Services/Synchronization/SynchronizationService.cs): `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.Application/Services/Synchronization/SynchronizationService.cs`

### Other components

- **Web user**

## Connections

- React application → Web feature pages: routes to (evidence: `jasmine-fastener-department-react/src/app/Routes.tsx`)
- Web user → React application: uses
- Product endpoints → Product service: calls (evidence: `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.WebApi/Controllers/ProductsController.cs`)
- Web API host → Application database: configures (evidence: `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.WebApi/Program.cs`)
- JSON product import → Application database: uses (evidence: `Jasmine.FastenerDepartment.NET/Jasmine.FastenerDepartment.ConsoleApplication/Program.cs`)
- Android API client → Android local database: sync relationship
- Android app → Android API client: uses
- Android API client → Product synchronization: synchronizes with
