Bin Masoud Store
A complete e-commerce platform with its own API and back office
An Arabic-first online store for Bin Masoud General Trading, with a NestJS API, a PostgreSQL database, and an admin back office for orders, stock, coupons, delivery zones, staff roles and reports.
Visit the live sitebenmasood.com

- API endpoints
- ~195
- Data models
- 46
- Admin pages
- 23
- Lines of code
- ~48k
Screens
Store homepage with the featured product banner
Product page with gallery, price and add-to-cart
Mobile storefront with the offer banner and bottom navigation
Problem / Solution
The problem
Selling through social media works until orders, stock and delivery have to be managed by people with their own spreadsheets. The company needed a store it owns, and the back office to run it.
- Orders arrived through several channels with no single list.
- Stock levels and product variants were tracked by hand.
- Delivery prices differ by governorate and zone.
- Staff needed different access to orders, products and reports.
The solution
A storefront and an admin dashboard on top of a dedicated API.
- Product catalogue with variants, inventory, reviews, FAQs and content pages.
- Cart, checkout, coupons and delivery zones by governorate.
- Customer accounts with Google sign-in and web push notifications.
- An admin dashboard for orders, products, inventory, staff, roles, reports and audit logs.
- Arabic by default, English on request.
Architecture
Architecture
A NestJS REST API with Prisma over PostgreSQL, used by a Next.js storefront and admin.
Storefront and admin
- Next.js 15
- TanStack Query
- next-intl with RTL
API
- 27 controllers
- JWT with refresh tokens
- Swagger / OpenAPI
Data
- PostgreSQL
- Prisma, 46 models
- Redis
Delivery
- Vercel
- Render
- Docker and nginx
- GitHub Actions
Engineering
Engineering decisions
A store’s back office is used all day by staff with different jobs, so most of the engineering is about who can do what, and knowing who did it.
- Roles and an audit trail
- Role-based permissions guard every admin action, and an interceptor records who changed what.
- Secure sessions
- Short-lived access tokens with long-lived refresh tokens, Argon2 password hashing, Helmet headers and rate limiting.
- A schema that matches the business
- 46 Prisma models for variants, inventory, carts, orders, coupons, delivery zones and content.
- Visible in production
- Health checks, structured logging and Swagger documentation for every endpoint.
- Tested before deploy
- GitHub Actions runs lint, type checks, unit tests with coverage, migrations and end-to-end tests.
- An installable store
- A service worker makes the store a PWA, with web push for order updates.
Tech stack
Frontend
- Next.js 15
- React 19
- TypeScript
- Tailwind CSS
- Radix UI
- TanStack Query
- Zustand
Backend
- NestJS 10
- Prisma 6
- Passport JWT
- Swagger
Data
- PostgreSQL
- Redis
Services
- Cloudinary
- Resend
- Web Push
Delivery
- Vercel
- Render
- Docker
- GitHub Actions
Outcome
Where it stands
The store is live at benmasood.com.
- Orders, stock and delivery are managed in one back office.
- Every admin action is permission-checked and logged.
- The API is documented and covered by unit and end-to-end tests.
Need something like this?
Tell me about the operation you want to organise and I will map it into a clear system before writing a line of code.
Let's talk