Skip to project content
IKHWANUDDIN

TorquePro Live Workshop Platform

Live at torquepro.software Production HTTPS Melaka, MYT

Full-stack workshop operations and customer self-booking platform rebuilt from C++ into a live containerized system with dual portals, MySQL 8 locks, and automated invoicing.

ASP.NET Core 9 · React 19 · EF Core 9 · MySQL 8 · Docker · CI

Live production platform: Deployed at torquepro.software with HTTPS reverse proxy, dual portals, and MySQL 8 persistence. Click screenshot to inspect

Rebuilding a C++ console app into a live web platform

The first version of TorquePro proved the workshop data model in a single-machine C++ console app, but real automotive workshops need customers booking from their own phones while service advisors, mechanics, and admins coordinate bays, spare parts, and invoicing concurrently.

TorquePro V2 is a ground-up rebuild deployed live at torquepro.software. Customers reserve 30-minute MYT slots and track 4-stage repair progress at /, while staff operate scheduling, SKU inventory, payment settlements, and audit logs behind hardened session auth at /staff.

2Isolated portals (/ & /staff)
5Clean Architecture layers
30mLocked MYT live slot intervals
4Docker services + CI quality gates

Core engineering pillars

Concurrency-safe scheduling

Shared MySQL GET_LOCK advisory locks serialize slot bookings, mechanic assignments, and stock mutations so concurrent requests cannot double-book bays.

Defense-in-depth & Anti-IDOR

Server-revokable HttpOnly SameSite=Strict session cookies, CSRF validation, 5-attempt FOR UPDATE lockout, and server-side ownership checks.

Atomic parts & auto-invoicing

Completing a job commits SKU inventory deductions, generates itemized INV-YYYY-00001 invoices, records DuitNow/Card/Cash payments, and logs JSON diffs.

One live booking, from portal to invoice

Scroll through all four operational stages to trace how a service booking travels across both portals on torquepro.software — or toggle either interactive simulator inside the console monitor.

01Isolated customer portal gateway

Public · /

Drivers enter through a dedicated customer portal separated cleanly from internal workshop routes, with self-registration and zero localStorage token exposure.

  • Routes public self-service cleanly at torquepro.software/
  • Server-side ownership validation blocks cross-customer IDOR probes
  • Constant-time dummy password verification prevents account enumeration

02Live 30-min MYT booking & tracking

Customer · /portal

Customers pick available 30-minute MYT service slots, follow live 4-stage repair progress, see their assigned mechanic, inspect itemized parts, and print PDF receipts.

  • Real-time bay availability queried from GET /api/portal/availability
  • 4-stage progress bar: Needs Review → Confirmed → In Progress → Completed
  • Transparent labour + spare parts breakdown with printable PDF receipts

03Hardened internal staff gateway

Internal · /staff

Staff and administrators sign in on a separate hardened route protected by revokable WorkshopSessions cookies, CSRF protection, and database-locked brute-force limits.

  • HttpOnly + SameSite=Strict cookies with server-side revocation
  • SELECT ... FOR UPDATE 5-attempt lockout + 60 req/min rate limiting
  • 3-role RBAC cleanly separates Customer, Mechanic/Staff, and Admin capabilities

04Operations command center & audit

Ops · /staff/dashboard

Workshop managers monitor monthly collected revenue, outstanding invoices, low-stock parts SKUs, 7-day booking load, Needs Attention queues, and append-only JSON-diff audit logs.

  • Tracks RM 520.00 collected, RM 185.00 unpaid, and 2 low-stock SKUs
  • Completing jobs auto-issues INV-YYYY-00001 and commits SKU deductions
  • Captures DuitNow QR, Cash, Card, or Bank Transfer settlements with full audit trail
Customer Portal 01 / 04
Customer Portal Sign In (/)

Dedicated public gateway at torquepro.software/ separated from internal operations, with self-registration and anti-IDOR ownership checks.

Five decoupled layers, one domain core

Every request from torquepro.software crosses strict Clean Architecture boundaries before reaching MySQL 8 locks. Select any node below to trace live dependencies and inspect its runtime guarantees.

domain-core (Application & Domain Core)

Framework-independent business rules enforcing 30-minute MYT slot eligibility, 4-stage job transitions, spare parts price snapshotting, and automated invoice totals.

  • BookingService · AvailabilitySlotRules
  • JobLifecycle (Review -> Confirmed -> InProgress -> Completed)
  • PartsInventory · Atomic SKU Deductions
  • InvoiceGenerator (INV-YYYY-00001)
  • PaymentCapture (DuitNow QR | Card | Cash | Transfer)
  • AuditDiffBuilder (Append-Only JSON Diff)

Live workshop telemetry at a glance

The staff dashboard at torquepro.software/staff aggregates real-time Malaysian Time (MYT) bay load, monthly collected revenue, unpaid invoice balances, and low-stock SKU alerts. Inspect the interactive 7-day chart below — or flip to the live production dashboard capture.

WORKSHOP OPERATIONS TELEMETRY · 7-DAY MYT
RM 520 Collected this month
RM 185 Outstanding balance
7 Total tracked appointments
2 Low-stock SKU alerts
2
Today
2
Thu
1
Fri
0
Sat
0
Sun
0
Mon
0
Tue
Needs Attention queue: 1 review request · 1 awaiting mechanic · 1 unpaid invoice · 2 low-stock SKUs Active roster: 3 mechanics · 5 active SKUs tracked · Malaysia Time (MYT)

Inside the full-stack engine

Inspect how security hardening, MySQL concurrency control, atomic inventory invoicing, and automated CI quality gates hold together in production.

Defense-in-depth sessions & ownership checks

Instead of exposing JWTs in localStorage, TorquePro issues server-revokable WorkshopSessions cookies (HttpOnly, SameSite=Strict), performs constant-time dummy password hashing, locks brute-force attempts via SELECT ... FOR UPDATE, and verifies customer record ownership on every endpoint.

Isolated internal route (/staff)Separated from public customer sign-in with logged auth attempts and CSRF validation.
SECURITY PIPELINE · ASP.NET CORE 9
1. Reverse Proxy (Nginx same-origin HTTPS)
   └─ Zero cross-origin credential leaks

2. Rate Limiter (60 req/min per client)
   └─ Protects /api/auth/* & booking endpoints

3. Auth Handler + SELECT ... FOR UPDATE
   ├─ Constant-time dummy hash on unknown user
   ├─ 5 failed attempts -> temporary account lock
   └─ Issues HttpOnly, SameSite=Strict cookie

4. Anti-IDOR Ownership Guard
   └─ Every /api/portal/* query scopes WHERE CustomerId = Session.UserId

From C++ console to live platform

Comparing the original Workshop I C++ console build against the live containerized platform now running at torquepro.software.

Dimension TorquePro v1 (Workshop I) TorquePro V2 (Live at torquepro.software)
Stack & Architecture Single C++ console app connected directly to local MySQL (XAMPP) Clean Architecture across ASP.NET Core 9, React 19, EF Core 9, and MySQL 8
Access & Security Shared console menu with direct credential queries Dual portals (/ & /staff), 3-role RBAC, HttpOnly cookies, CSRF, lockout, Anti-IDOR, Audit Log
Scheduling & Billing Manual date/time entry and 6% tax console receipt Advisory-locked 30-min MYT live slots, SKU inventory tracking, auto-invoicing & PDF receipts
Testing & Deployment Manual local testing on XAMPP / phpMyAdmin Live HTTPS production deployment at torquepro.software, Docker Compose, xUnit + real MySQL tests & GitHub Actions CI