Skip to content

Case study 03 · Retail · Multi-store point of sale

CartPOS

A multi-store point-of-sale and inventory platform where superadmins manage organizations, admins run a store, and cashiers sell from a POS screen.

  • React 19
  • Node.js
  • Express
  • MongoDB
  • Socket.IO

01 / Context

The problem

Retail teams needed one system for selling at the counter, tracking stock, handling refunds, and reviewing performance, with each person seeing only what their role allows and changes appearing without a page refresh.

02 / Contribution

What I owned

I built the full stack: the React 19 interface, the Express REST and Socket.IO API, the MongoDB data model, and the Docker-based setup with demo seed scripts. Permissions are enforced on the server, not only hidden in the UI.

Delivered workflows

  • Three roles (Superadmin, Admin, Cashier) with API-level permission checks, plus organization management where superadmins create stores and their admins.
  • A cashier POS screen with product search, categories, cart, payment, and printable bills, backed by bills, refunds, and searchable sales history.
  • Inventory with categories, add, edit, and restock flows, store and platform dashboards with charts, and self-service profile and password changes.

03 / Engineering

How the system fits together

  1. 01

    Superadmin creates store

  2. 02

    Admin stocks inventory

  3. 03

    Cashier rings up sale

  4. 04

    Bills, refunds, and charts

Authorization on the server

JWT authentication, bcrypt password hashing, and rate limiting protect the API, and every route checks the caller’s role so the UI is never the only gate.

Realtime updates

Socket.IO pushes changes to connected clients, while Redux Toolkit holds client state and Axios handles REST calls from the Vite-built React app.

Data and local setup

Mongoose models back stores, users, products, bills, and expenses, with MongoDB 8 in Docker, an init script that creates a superadmin, and seed scripts for demo data.

Tech stack

Frontend
  • React 19
  • Vite 8
  • React Router 7
  • Redux Toolkit
  • Tailwind CSS 4
  • React Hook Form
  • React Hot Toast
  • Axios
  • Socket.IO client
  • ApexCharts
  • react-to-print
  • ESLint (Airbnb)
Backend
  • Node.js
  • Express 5
  • MongoDB
  • Mongoose 9
  • Socket.IO
  • JWT
  • bcrypt
  • express-rate-limit
  • cookie-parser
  • CORS
  • Nodemailer
  • web-push
  • Orama search
  • Babel
  • Jest
  • Supertest
  • Nginx config
Infrastructure
  • MongoDB 8 in Docker
  • Superadmin init script
  • Demo seed scripts

04 / Screens

Product screens

Selected views from the product interface and its operational workflows.

CartPOS sign-in screen
Sign-in
Superadmin platform dashboard with store totals and a store list
Superadmin · Platform dashboard
Organizations table listing each store, its owner, and status
Superadmin · Organizations
Store admin dashboard with sales and purchase overview, a sales chart, and top items
Admin · Store dashboard
Inventory table with stock levels, prices, and restock and add item actions
Admin · Inventory
Cashier point-of-sale screen with a product grid and a bill containing four items
Cashier · POS sales screen
Sales history table filtered by day, week, month, and year
Admin · Sales history
Accounts page with money received and money spent charts and a transaction table
Admin · Accounts
Store users management table
Admin · Store users

05 / Evidence

What this case demonstrates

The project is a working full-stack application, shown here with screens captured for each role. It has about 204 frontend and 60 backend source files. User counts, deployment details, and performance results are not claimed.

Source code is not published on this site. A role-by-role walkthrough can be shared during an interview.

Next case studyWorkgrid