Modern point-of-sale system for retail management with inventory, sales, purchasing, and reporting.
- POS checkout workflow with cart, payment, and receipt support
- Product, category, brand, unit, supplier, and customer management
- Inventory tracking with variants and store-level quantities
- Sales, purchases, invoices, and return workflows
- Reporting with PDF/Excel exports
- Role-based access for admin and biller users
- Frontend: React, Vite, Tailwind CSS, Headless UI, Heroicons
- Backend: Node.js, Express, MongoDB (Mongoose)
- Utilities: jsPDF, SheetJS
- Install dependencies:
npm install-
Configure environment variables (see below).
-
Run the app:
npm run devThis runs both the backend and frontend workspaces.
npm run seed --workspace backendCreate .env files as needed:
MONGODB_URI=mongodb://localhost:27017/posb
JWT_SECRET=your-secret
CORS_ORIGIN=http://localhost:5173
PORT=3000
HOST=0.0.0.0VITE_API_URL=http://localhost:3000backend/ # API, models, routes, database config
frontend/ # React app, components, pages, assets
seed.js # root seed helper
npm run dev- start backend + frontendnpm run build- build frontendnpm run dist- build frontend + package electron appnpm run start:electron- run electron dev shell
MIT