SmartGear Online

A full-stack e-commerce platform for customisable sports gear — product catalogue, session cart, order lifecycle, role-based admin, real-time chat & live on Azure.

ASP.NET Core 8 MVCC#EF Core 8 + SQL ServerASP.NET Core IdentitySignalRAzure App ServicexUnit + Moq

Deployed on Microsoft Azure App Service with Azure SQL Database.

SmartGear Online storefront showing the product catalogue

The problem

Small sports retailers need more than a static product list — they need cart, checkout, order tracking, product customisation and live customer support, all behind role-based access. I built SmartGear Online to cover the full e-commerce lifecycle end-to-end.

Who uses it

  • Customer browses & filters products, customises colour/text/logo, checks out & tracks orders.
  • Admin manages inventory, reviews sales metrics, handles low-stock alerts & processes orders.
E-Commerce System Topology
N-Tier MVC Architecture
Storefront & Realtime Razor Views & SignalR

Interactive product customizer, cart lifecycle, and live customer service chat hub.

Business Core ASP.NET Core & Identity

Repository/Service layers, hardened policy authorization, and server-side discount validation.

Persistence & Cloud Azure SQL & App Service

Azure App Service deployment with EF Core database migrations and automated health endpoints.

Key decisions

Repository & Service layers over MVC

Data access is abstracted behind `IProductRepository`, `IOrderRepository` & `ICartRepository`, while business logic lives in `IOrderService`, `ICartService`, `INotificationService` & `IReportService`. Controllers stay thin; services own the rules.

Outbound email queued off the request path

Order confirmations & status-update emails go into a bounded `EmailQueue` channel and are drained by a background `EmailWorker`, so sends never block or silently fail a user's request.

Server-side validation everywhere

Discount codes were originally validated client-side only. Validation moved server-side via `IOrderService.ApplyDiscountAsync`, so the server is the single source of truth.

Response cache versioning

The product catalogue is response-cached, but the cache is busted (versioned) whenever product or stock data changes, so shoppers never see stale availability.

Real-time chat with SignalR

`ChatHub` and `InventoryHub` power live chat and stock updates. A typing-indicator race condition was fixed by swapping a `Dictionary` for a `ConcurrentDictionary`.

How I built & shipped it

  • Testing: 31 xUnit + Moq tests (all passing) covering order placement, discount codes, order status transitions & totals, run against an in-memory SQLite database.
  • Architecture: MVC with Repository & Service patterns, custom request-logging & security-headers middleware, global exception & logging filters.
  • Auth: ASP.NET Core Identity with Admin & Customer roles, policy-based authorisation, account lockout & cookie hardening.
  • Deployment: Microsoft Azure App Service with Azure SQL Database.
  • Currency: Full ZAR (Rand) conversion across server, views & client-side JavaScript.
Checkout & Verification Flow
End-to-End Safety
Validation Gate Server-Side Guard

Stock availability & coupon verification enforced strictly on the server before transaction commit.

Testing Harness 31 xUnit & Moq Tests

Automated test suite verifying order calculations, discounts, and state transitions against SQLite.

Localization Full ZAR Currency

Localized currency formatting and VAT handling across views, APIs, and invoice generation.

What went wrong

Twenty-two bugs were found and fixed during development — from mixed namespaces and session-key mismatches to a missing `ValidationSummary` that swallowed Identity errors, client-side-only discount validation, and a `Register` modal with no working Send button. Each fix is logged in the project's changelog on GitHub.

The lesson: assume the client will bypass your JavaScript. If a rule matters, enforce it on the server.

What I'd do next

  • Real product photography. Seed images currently ship as placeholders; real product shots would strengthen the demo.
  • More tests. The backend is covered; add UI/integration tests for the checkout flow.
  • Kanban board & notifications. Documented as potential v2 additions in the project brief.

I'm open to Full-Stack/.NET Developer roles & freelance software projects. If this project is the kind of thing your team or business needs, let's talk.