Live·Product·2026
GreenBasket
Grocery commerce where the order status moves in real time.
The demo opens at the sign in screen. An account can be created from there to reach the catalogue and order flow.

- Role
- Design and development
- Year
- 2026
- Type
- Product
- Stack
- Next.js, TypeScript, MongoDB
The problem
A grocery order changes after checkout: items go out of stock, a delivery rider moves, an admin needs to see what sold today. A static order page cannot carry any of that, so the product was built around state that updates while the customer is still looking at it.
What I built
A Next.js commerce app with Stripe checkout, account sign in through NextAuth and Redux Toolkit for cart state. Order status is pushed over Socket.IO, deliveries are drawn on a Leaflet map, and admins get Recharts analytics over live order data.
Inside the build
- Catalogue and cart built on Next.js and TypeScript
- Stripe checkout flow
- NextAuth accounts and protected routes
- Socket.IO order status updates
- Leaflet delivery mapping
- Admin analytics with Recharts
- Cloudinary product media
- MongoDB data layer
What was hard
Order state that survives a refresh
Socket.IO carries updates, but the page still has to reload into the correct state. Server records stay the source of truth, with events treated as a notification that something changed.
Delivery visibility
Leaflet gives the map, not the data. Delivery coordinates are normalised before they reach the client, so the map renders on first paint instead of waiting for a second fetch.
Admin numbers people trust
Recharts charts read from aggregated queries rather than dumping every order into the browser, which keeps the admin view responsive as the order table grows.
Screens


Stack
- Next.js
- TypeScript
- MongoDB
- Stripe
- NextAuth
- Redux Toolkit
- Socket.IO
- Leaflet
- Cloudinary
- Recharts
Where it landed
Live demo at green-basket-tawny.vercel.app and the source on GitHub. The demo opens at sign in, since cart and orders are account based.