Skip to content
All projectsProduct backend · 2024

Plateforme e-commerce

NestJS e-commerce API: Stripe payments, stock locking and an admin back office.

ContextProduct backend
Year2024
NestJSTypeORMMySQLJWTStripeAdminJS
0
Oversell under concurrency
JWT
Stateless auth
Stripe
Payments + webhooks
01

Problem

  • Build a robust e-commerce API where stock can never be oversold, even under concurrent orders.
  • Secure authentication and expose a usable admin surface without building a full custom interface.
02

Solution

  • NestJS REST API organised by module, persistence with TypeORM on MySQL.
  • Pessimistic locking on stock rows at checkout time to prevent any oversell under concurrency.
  • JWT authentication, Stripe payments (intents + webhooks) and an AdminJS back office for catalogue and order management.
03

Result

  • Stock integrity guaranteed under concurrent load.
  • Complete order cycle, from cart to payment confirmed by webhook.

Stack

  • NestJS / TypeScript
  • TypeORM
  • MySQL
  • JWT
  • Stripe
  • AdminJS

/ Contact

Software to design, deploy, operate?

Write to me. I reply within 48 h.