← All projects

Full-Stack Projects / .NET · React · PostgreSQL

DemoErp

A full-stack engineering portfolio demo bringing products, orders and inventory into one workflow.

  • .NET 10
  • React 19
  • TypeScript
  • EF Core 10
  • PostgreSQL 17

Interactive browser-based showcase. The actual application's .NET API and PostgreSQL implementation are available on GitHub.

Explore DemoERP

Interactive Showcase

Explore sample ERP workflows and genuine application screens directly in your browser.

Explore Interactive Demo (opens in a new tab)

Interactive browser-based showcase. The actual application's .NET API and PostgreSQL implementation are available on GitHub. Sample operations in the showcase are simulated in your browser; they do not create real API or database transactions.

Project Overview

An engineering portfolio application connecting catalog, customers, orders, warehouses, purchasing and manufacturing, with Turkish/English interfaces, server-enforced business rules and persistent PostgreSQL data.

  • Products and Customers
  • Sales Orders
  • Warehouses and Transfers
  • Procurement and Receipts
  • BOMs and Production Orders
  • Reports and Dashboards
  • Roles and Audit Logging
Actual DemoErp dashboard capture: metrics and charts with synthetic demo data
Actual application capture from the source repository, with synthetic data. The captured interface is in English.

Connected Business Workflows

  1. Purchasing
  2. Goods Receipt
  3. Warehouse Inventory
  4. Production
  5. Finished Goods
  6. Sales

Technical Architecture

Layered monolith: one ASP.NET Core API and one React application. Modules are not independent microservices.

  1. React + TypeScript

    TanStack Query for server state; React Hook Form and Zod for form feedback.

  2. ASP.NET Core REST API

    Controllers handle HTTP contracts, FluentValidation checks input, and JWT/policies control access.

  3. Business Services + EF Core

    Business rules, state transitions and transaction boundaries; DTO projections and migrations.

  4. PostgreSQL 17

    Relational constraints, deterministic row locking and immutable stock movement history.

Services own transaction boundaries: stock, documents and audit entries remain consistent in the same PostgreSQL transaction.

Source Code and Documentation

Engineering Decisions

Inventory Consistency under Concurrency

Problem: Several orders may compete for the same stock.

Warehouse, product and balance locks follow a consistent order. Stock and ledger entries share a transaction; database constraints provide another boundary against negative balances.

Decision and Test Details

Why this approach?

Close the race between validation and writes at the database boundary.

Verification Evidence

InventoryTests exercise concurrent confirmation/cancellation and insufficient stock against real PostgreSQL.

One Stock Effect for Repeated Requests

Problem: Network retries could post the same goods receipt twice.

Receipts bind an Idempotency-Key to the original payload fingerprint and reject conflicting replay. Repeated order statuses do not deduct stock again.

Decision and Test Details

Why this approach?

Make retrying an apparently failed client request safe.

Verification Evidence

ProcurementTests cover replay, payload mismatch and concurrent receipts.

Atomic Material Consumption and Production

Problem: Partial material consumption could leave production status inconsistent with stock.

Production orders retain a BOM snapshot. Starting consumes all materials in one transaction or rolls back; completion records finished output once.

Decision and Test Details

Why this approach?

Preserve document history while preventing partial stock writes.

Verification Evidence

ManufacturingTests cover lifecycle, shortages, rollback and repeated production operations.

Authorization beyond the Interface

Problem: Hidden buttons do not secure APIs, and old tokens may outlive role changes.

JWT validation and server policies separate Admin/Manager/Viewer permissions. Protected requests check the current user, role and SecurityVersion.

Decision and Test Details

Why this approach?

Base access decisions on current server state rather than client visibility.

Verification Evidence

SecurityTests cover revoked access, stale roles and protection of the last active administrator.

Measured Query Scoping

Problem: Production preview materialized warehouse balances unrelated to the recipe.

Filter by the recipe's material IDs and use the existing warehouse/product index. No new index or migration is added.

Decision and Test Details

Why this approach?

Use a verified access path without transferring unrelated rows.

Verification Evidence

The isolated synthetic PostgreSQL record dated 11 October 2026 shows 5,000 → 5 rows and seven warm-sample medians of 0.421 → 0.031 ms. This measures SQL execution, not HTTP latency or a production SLA. Raw plans and methodology are linked.

Quality and Verification

Repository-Published Verification Snapshot /

  • 417 backend tests
  • 16 frontend component tests
  • 68 browser checks

These results are from the source report dated 11 October 2026. They are not live counts; ERP tests were not rerun for this website.

xUnit with real PostgreSQL Testcontainers; Vitest and Testing Library; Playwright and selected axe checks. Isolated verification with Docker Compose. CI contains backend, frontend and browser smoke/accessibility jobs. This is not WCAG or security certification.

Source Code and Documentation

Inspected Source Revision: fbada64 ·

Source is published for technical evaluation; no open-source license is claimed. NOTICE

Scope and Project Status

A working engineering portfolio application using synthetic demo data. Source is available for inspection and local installation with Docker. A separate static showcase is public; its browser simulation does not connect to a real .NET API or PostgreSQL server. There is no verified public production deployment of the real ERP backend. Production needs HTTPS, independent secrets, backup/restore and operational monitoring.

Accounting, multi-tenancy, recursive BOM explosion and capacity scheduling are outside scope. The optional AI assistant is read-only and disabled by default.

Complete DemoErp dashboard; synthetic demo data
Actual application capture from the source repository, with synthetic data. The captured interface is in English.
DemoErp production order detail, material consumption and output; synthetic demo data
Actual application capture from the source repository, with synthetic data. The captured interface is in English.