Documentation
Getting Started
Installation
Data Grid
Approvals
Administration
Account & Security
Integration & Staging
Architecture
Documentation/Architecture/System Architecture

System Architecture

System Architecture

Interactive diagram of the Primentra three-tier architecture. Hover any layer for details, simulate a request to trace the full data flow.

Frontend
React + Vite SPA
443 / 5173
React 18Vite 5History APIlocalStorage (demo)
HTTPS / TLS 1.2+
End-to-end encrypted
Reverse Proxy
IIS + ARR + URL Rewrite
TLS 1.2+
IIS 10ARR 3URL Rewrite 2.1HTTPS enforced
/api/* → localhost:3001
ARR reverse proxy
API Server
Express + Node.js 18
:3001
Express 4Node 18+mssql poolasyncHandler
mssql — TCP connection pool
Parameterized calls only
SQL Server
105 Stored Procedures · EAV Schema
:1433
SQL Server 2016+EAV modelFull-Text SearchFOR JSON PATH
Cross-cutting concerns
Audit Trail

Every create/update/delete/import writes an AuditLog row with user, action, entity, and timestamp. Append-only. Viewable in Admin panel.

Error Log

All server errors written simultaneously to errorlog.txt and the ErrorLog table. Queryable in Admin → Error Log.

RBAC Permissions

Users → Roles → per-entity permissions (None/Read/Write/Moderator). Checked by the API layer before every write operation.

Input Validation

All request bodies validated at the API layer before touching the database. Invalid input returns HTTP 400 immediately.

Architecture Documentation

Expand any section for full technical details.

Primentra is a Master Data Service built on a classic three-tier architecture: a React/Vite frontend running in the browser, an Express API server running in Node.js, and a SQL Server database storing all master data.

The architecture follows a strict separation of concerns. The frontend handles user interaction and state. The API handles routing, authentication, and input validation. The database handles all business logic, data integrity, and transactions. Nothing leaks into the wrong tier.

This design makes each tier independently testable, deployable, and replaceable. It also means that business rules are enforced at the database level — not in the browser or the API — making them impossible to bypass through direct API calls.

LayerTechnologyPortPrimary Responsibility
FrontendReact 18 + Vite 5443 (prod) / 5173 (dev)UI rendering, state management, API calls
Reverse ProxyIIS 10 + ARR + URL Rewrite443TLS termination, /api routing, SPA fallback
API ServerExpress 4 + Node.js 18+3001Input validation, stored procedure dispatch
DatabaseSQL Server 2016+1433Business logic, data integrity, auditing

Key architectural constraint: All business logic lives exclusively in SQL Server stored procedures. The Express API is a thin validation and routing layer — it contains zero raw SQL and no business rules. This makes the system easier to audit, test, and secure.

Ready to get started?

Start managing your master data with Primentra today.

View Pricing