Online Store API - V2

A highly optimized, production-ready, type-safe RESTful backend API designed to power the Brick and Mortar Decor e-commerce platform. Rewritten from the ground up to replace the legacy Express/Javascript backend, this version leverages Fastify v5 and TypeScript to deliver high performance, type-safe request/response schema validation, and asynchronous background jobs. It supports multi-vendor operations, secure payments, and a comprehensive observability pipeline.

2026
Platform Infrastructure
2 months

Project Gallery

Project overview

Project overview

Technologies

Fastify v5Framework
TypeScript v6Language
MongoDB & Mongoose v9Database
Redis & BullMQCaching/Queues
Firebase Admin SDK v13Auth
Zod v4Validation
Paystack SDKPayments
SharpImage Processing
VitestTesting

Key Features

  • Ultra-fast routing with Fastify v5 and lightweight handler architecture
  • Request and response validation using Zod for 100% type safety
  • Asynchronous background jobs (emails, logs, cleanup) via BullMQ
  • Paystack billing flows with verification signature security
  • Double-payout prevention using Redis concurrency locks
  • Observability with structured Pino logs and health check endpoints

Results

  • Drastic reduction in API endpoint latencies and memory footprint
  • Achieved high reliability with full integration tests inside Vitest
  • Safe data schemas migration with validation rollback scripts

Challenges & Solutions

Redesigning legacy Express.js handlers to Fastify structures

Ensuring idempotency across async transaction webhooks

Designing complex collection-count data migration systems

Fastify v5TypeScript v6MongoDBRedisBullMQPaystackFirebase AdminZodVitestDocker