Project / MERN stack / E-commerce
Commerce Platform
A full-featured storefront with cart, checkout and an admin panel.
- Year
- 2025
- Role
- Full-stack developer
- Type
- E-commerce
- Stack
- MERN
Tech stack
- React
- Node.js
- Express
- MongoDB
- Stripe
01 / Overview
Overview
An end-to-end e-commerce platform with product management, secure payments, order tracking and role-based admin tooling. Built for fast page loads and a frictionless checkout.
02 / The problem
The problem
The shop was selling through chat messages and a spreadsheet. Orders got lost, stock counts were wrong, and customers had no way to see where their parcel was.
03 / My approach
My approach
I started with the checkout, since that is where sales are lost, and kept the first version small: products, a cart, card payment and an order list for the owner. Stock and order status came next, once real orders were coming in. The API is a plain Express app on MongoDB, and the cart lives on the server so it survives a refresh.
04 / Key features
Key features
- Product catalogue with search and categories
- Cart that survives a page refresh
- Card payment with order confirmation
- Order tracking page for customers
- Admin panel for products, stock and orders
- Staff accounts with different permissions
05 / Challenges & learnings
Challenges & learnings
- 01
Orders created twice
The payment provider can send the same webhook more than once. I stored each event id and made order creation safe to repeat, so a retry never makes a second order.
- 02
Selling the last item twice
Two people could buy the last unit at the same moment. Stock is now reduced in one atomic update that fails when there is not enough left.
- 03
Slow product pages
Listing pages loaded every image at full size. Resized images and pagination cut the first load a lot.
06 / Gallery
Gallery
Click an image to enlarge it.