Back to Projects

Mamabear E-Commerce Backend

NestJSPostgreSQLPrisma ORMpgvectorJWT AuthCloudinaryDocker

Production-grade e-commerce backend for Mamabear, a specialized platform for dietary products and supplements targeting breastfeeding mothers. Built with enterprise-level architecture, comprehensive security, and scalable infrastructure.

Mamabear Backend

Enterprise E-Commerce Infrastructure

Gallery
Gallery
Gallery
Gallery

Project Overview

Mamabear is a specialized e-commerce platform serving the unique needs of breastfeeding mothers. The backend service handles high-traffic inventory management, structured catalog systems, localized logistics coordination, and comprehensive administrative reporting mechanisms. This production-grade infrastructure replaces legacy systems with a robust, secure, and scalable architecture built on NestJS and PostgreSQL.

The system supports dynamic multi-variant inventory controls, transaction records with payment gateway integration, sophisticated shipping estimations based on location data, and real-time analytics dashboards. It features an enterprise-grade relational database schema with over 30 sequential migrations, vectorized semantic similarity for product recommendations, automated load testing validations, and comprehensive API endpoint configurations.

Key Achievements

  • 30+ Database Migrations

    Engineered an enterprise-grade relational database schema with over 30 sequential code-driven migration modules maximizing structural data integrity and supporting complex product relationships.

  • Vectorized Embeddings for Recommendations

    Integrated geometric embedding service executing similarity computations on text inputs to serve context-aware related-product recommendations using pgvector technology.

  • Load Testing & Performance Validation

    Configured explicit load-testing automation using k6 with targeted concurrent virtual users validating sub-500ms API response latency thresholds under production load.

  • Automated CSV Export Utilities

    Formulated automated data processing utilities utilizing stream-based formatting to safely export system dashboard metrics into portable comma-separated spreadsheets.

Technical Highlights

Multi-Tenant Architecture

Structured modular NestJS architecture with feature modules for Auth, Products, Cart, Orders, Inventory, Payments, and Analytics. JWT-based authentication with role-based access control (RBAC) guards protecting sensitive endpoints.

Third-Party Integrations

Bound transactional merchant integrations with Midtrans payment gateway, location-based shipping cost calculations, and Cloudinary cloud-based media file uploading. Nodemailer for transactional email workflows.

Advanced Database Design

Prisma ORM for declarative data modeling, pgvector for semantic similarity computations, and database seeding for consistent testing environments. Complex relational schemas handling products, variants, inventory, orders, and shipments.

CI/CD & DevOps

Docker containerization, GitHub Actions automated pipelines, Railway deployment infrastructure, and comprehensive test coverage with Jest and Supertest for smoke testing.

Project Information

  • Role

    Backend Engineer

  • Category

    E-Commerce Backend

  • Scale

    High-Traffic Production

  • Environment

    Docker + Railway

Tech Stack

NestJSTypeScriptPostgreSQLPrismapgvectorJWTCloudinaryMidtransDockerRailwayJestk6