Case study · E-commerce marketplace
Ecom: sell online and deliver fast, from one platform.
A seller marketplace with a separate interface for customers, sellers, delivery riders and the admin, covering products, checkout, automatic rider assignment and live order tracking.
Open the live app01
The problem
- Small local sellers have no cheap way to sell online and deliver fast, and typing a whole catalogue in by hand is slow.
- Someone has to assign each order to a delivery person, and that is usually done by hand.
- Nothing proves a parcel was picked up and dropped off, which leads to disputes and refunds.
- Customers get no live tracking, no clear charges (delivery, surge, handling) and no loyalty reason to come back, and the owner has no single place to control pricing rules, users and orders.
02
Who it's for
- Customers (user): shoppers who browse, search, checkout, track orders and earn rewards
- Sellers: shop owners who list and manage their own products and see delivery status
- Delivery partners: riders who go online, get nearby orders, deliver, upload proof photos and see earnings
- Admin: the platform owner, who signs in at /admin/login. It is not a public role and is hidden from the signup dropdown
03
What it does
Shop and checkout
Categories, search, cart, wishlist and saved addresses. Pay by UPI, card or cash.
Live order tracking
Follow an order on a live map with WebSocket updates.
Add products by voice or in bulk
Add a product by form, by voice, or in bulk with JSON or images.
Automatic rider assignment
A new order goes to the nearest free rider, who is paid per delivery.
Photo proof of delivery
Pickup and delivery photos are matched. Weak matches go to an admin.
Admin pricing control
Set delivery, surge and handling charges. Every change is logged.
04
Architecture
Browser
React 18 + Vite app with Leaflet map, pages grouped by role
Cloudflare Worker
One Worker serves the app and the Hono API under /api/v1
Security check
JWT access and refresh tokens with a role check on every route
D1 database
SQLite · 20 tables · orders, products, riders, charges and audit
Durable Object
Realtime holds the WebSocket connections for live updates
Cloudinary
Product photos and delivery proof photos
Future note
Planned: a bot check on sign-in, two-step (TOTP) login, automatic nightly backups, and a way to download all data.
05
Architecture your way
- Choose your own tech stack: your database, hosting platform, front end and back end, plus any API or AI integrations your website needs.
Need software like this for your clinic or business?
Tell me how you work today and I’ll build it around your workflow, with your data staying yours.
Tell me your problem