mock smtp server
Email Simulator
Intercepts all outgoing emails (OTPs, notifications) and displays them in a real-time inbox dashboard. No SMTP credentials required.
POST /api/simulators/emailerGET /emailer-simulator05 · e-commerce platform
a monochrome storefront engineered end-to-end alone
commerce · solo build
statement
Built with Next.js 16 and Bun runtime, QWERTY features a premium monochrome design system, hybrid data persistence via GitHub API, SHA-256 password hashing, JWT-based authentication with role-based access control, and a fully integrated simulator ecosystem for developers.
the problem
Most e-commerce platforms depend on real third-party services (SMTP, payment gateways) during development, making it impossible to test critical flows like OTP verification, payment success/failure, and webhook events without live credentials or external infrastructure.
the answer
QWERTY ships with a built-in simulator layer: a Mock SMTP server with a real-time inbox dashboard, a payment webhook simulator, and a dummy payment UI — all CORS-enabled and accessible without any external setup. This enables full end-to-end testing in isolation.
exhibited artifact


requirements analysis
| code | requirement | description |
|---|---|---|
| FR-01 | User Registration | Create account with strong password validation (centralized rules) |
| FR-02 | JWT Authentication | Login with SHA-256 hashed passwords and JWT cookie issuance |
| FR-03 | Role-Based Access | Separate permissions for Admin and Customer roles |
| FR-04 | Password Recovery | OTP generation, delivery via email simulator, and secure reset flow |
| FR-05 | Hybrid Persistence | Local JSON for dev; GitHub API file sync for production (bypass Vercel read-only FS) |
| FR-06 | Email Simulator | Mock SMTP endpoint with real-time inbox dashboard at /emailer-simulator |
| FR-07 | Payment Simulator | Trigger success/failure webhook events at /webhook-simulator |
| FR-08 | Dummy Payment UI | Safe checkout simulation environment at /dummy-payment |
| FR-09 | Product Management | Admin CRUD for product catalog with image and inventory tracking |
| FR-10 | Order Lifecycle | Customer checkout, order history, and admin order status management |
materials list
notable installations
mock smtp server
Intercepts all outgoing emails (OTPs, notifications) and displays them in a real-time inbox dashboard. No SMTP credentials required.
POST /api/simulators/emailerGET /emailer-simulatorpayment gateway mock
Simulates payment gateway callbacks (Bank Transfer). Trigger success or failure events without a real payment provider.
POST /api/webhook/paymentGET /webhook-simulatorcheckout simulation
A safe, sandboxed UI for testing the full customer checkout experience from cart to payment confirmation without real transactions.
GET /dummy-paymentsecurity architecture
Register, login, forgot-password and reset-password flows — JWT issued as secure HTTP-only cookies, OTP delivered through terminal and the email simulator.
/api/auth/register/api/auth/login/api/auth/forgot-password/api/auth/reset-passwordautomated testing
All critical user flows — registration, login, password recovery, checkout, and order history — covered with consistent data-testid attributes for stable automated execution.
view automation repo ↗documentation
Comprehensive test case documentation covering positive/negative paths, edge cases, and expected outcomes for every major feature.
view test docs ↗