StoreFlow POS - NestJS Retail Management

Description
StoreFlow POS
StoreFlow is a self-hosted retail management system for point of sale, inventory, purchasing, customers and accounting. The package includes a NestJS API with PostgreSQL and a Next.js/React administration and checkout interface. Both projects include readable TypeScript source.
Retail workflow
Process sales with product or barcode search, parked carts, split payments, receipts, returns and exchanges. Track stock by warehouse and batch, receive purchase orders, record supplier and customer balances, and review sales, inventory and financial reports.
Administration
Manage products, pricing, taxes, coupons, staff permissions, duty schedules and audit logs. PostgreSQL migrations and sample data support setup; Swagger API documentation and an installation guide are included.
What is included
- NestJS backend and Next.js frontend source code
- Database migrations and setup examples
- Installation and deployment documentation
Production deployment requires your own server, PostgreSQL database and environment credentials. Optional scanners and printers are supplied separately.
Features
Point of Sale Terminal
- Fast new sale screen - search by name, SKU or barcode
- USB barcode scanner support (plug and play, no driver)
- Hold / park carts and resume them later
- Split and multiple payment methods (cash, card, mobile banking, custom)
- Returns, refunds and exchanges against the original invoice
- Collect customer dues at the counter
- Automatic offers and discount coupons
- Thermal receipt printing (58 mm / 80 mm) and PDF receipts
- Sales history with reprint and void (fully audited)
Products & Catalogue
- Products with images, pricing and tax
- Categories and sub-categories, brands, measurement units
- Barcode generation and printable barcode label sheets (PDF)
- Bulk Excel import with templates, and Excel export
- Non-refundable product flag
Inventory
- True FIFO batch costing - real cost of goods and real margin
- Multiple warehouses with location blocks
- Stock reservations for confirmed orders
- Stock adjustments with reason and user recorded
- Damaged products and supplier damage claims
- Low-stock alerts and stock forecasting
- Full stock movement trail
Purchasing & Suppliers
- Purchase orders (create, send, void)
- Goods receiving against orders, partial receipts and drafts
- Supplier profiles and supplier ledger
- Payables with payment vouchers
Customers & Accounting
- Customer records and customer types (retail, wholesale, VIP)
- Credit sales and due tracking
- Receivables and payables with aging analysis
- Expenses by category with printable vouchers
- Ledger entries, exportable to Excel
20+ Reports (all export to Excel)
- Sales: summary, daily sales, total sell, user collection, below-cost sales
- Inventory: inventory report, current stock value, stock position (summary and detailed), low stock
- Customers: customer report, ledger, receivables, due list and due detail
- Purchasing: monthly purchases, purchase summary, by supplier, outstanding purchases, supplier ledger
- Financial: financial summary, expenses by category, payment method breakdown, receivables and payables aging
Staff & Security
- Unlimited custom roles built from a granular permission matrix
- Permissions enforced by both the UI and the API
- Duty schedules with clock in / clock out
- Complete audit log (who, what, when)
- JWT access and refresh tokens, bcrypt password hashing
- Helmet security headers, request validation, gzip compression
Technology & Customisation
- Backend: NestJS 11, PostgreSQL, TypeORM migrations, Swagger API docs
- Frontend: Next.js 16 (App Router), React 19, TypeScript, Tailwind CSS 4
- Dashboard with sales and stock overview (optional Redis cache)
- Rebrand via environment variables: product name, logos, tagline
- Colour theme controlled by CSS variables in one file
- Shop details, receipt logo and receipt footer editable from Settings
- 100% readable source code - no license checks, no encryption, no obfuscation
Requirements
- Node.js 20 LTS or newer
- npm 10 or newer
- PostgreSQL 14 or newer (MySQL and SQLite are not supported)
- A VPS or cloud server for production (Ubuntu recommended, 2 GB RAM is enough for one shop)
- PM2 and Nginx recommended for production (guide included)
- Any modern browser; Chrome or Edge recommended for the POS terminal
- Optional hardware: USB barcode scanner, 58/80 mm thermal receipt printer, label printer
Note: this is a Node.js application, not a PHP script. It will not run on cPanel shared hosting.
Instructions
Full step-by-step instructions are in documentation/index.html inside the download. Quick start:
1. Database
- Create an empty PostgreSQL database and a user that owns it.
2. Backend (NestJS API)
cd backendnpm installcp env.example .envthen setDB_HOST,DB_USERNAME,DB_PASSWORD,DB_DATABASEandJWT_SECRETnpm run migration:run- builds the full database schema (no SQL file to import)npm run seed:install- creates the admin account and reference datanpm run start:dev- API runs onhttp://localhost:5065, Swagger docs at/api/docs
3. Frontend (Next.js Admin Panel & POS)
cd frontendnpm installcp .env.example .envthen setNEXT_PUBLIC_API_URL=http://localhost:5065npm run dev- panel runs onhttp://localhost:4000
4. Log in
- Username:
admin - Password: the
ADMIN_DEFAULT_PASSWORDvalue frombackend/.env- change it after first login.
5. Production
- Build both apps with
npm run build. - Run them with PM2, put Nginx in front, and enable free SSL - the full Ubuntu walkthrough is in the documentation.
NEXT_PUBLIC_*variables are read at build time, so rebuild the frontend after changing the API URL.
| Author | mosarofhossain |
|---|---|
| Category | Scripts & Code / NodeJS |
| Price | $20 |
| Extended License | $60 |
| First Release | Sep 24, 2026 |
| Last Update | Sep 24, 2026 |
| Database | PostgreSQL 14, PostgreSQL 15, PostgreSQL 16, PostgreSQL 17 |
| Files included | .css, .html, .ts, .tsx, .json, .svg, .md, package.json, JavaScript .js |
| Software version | Node.js 22, Node.js 24 |
| Html/css framework | Tailwind CSS |
| Software framework | React, Express.js, Next.js, NestJS |
| Javascript framework | React, Next.js, Express.js, NestJS, Node.js |
| Programming language | JavaScript, TypeScript |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 3,096 views · 28 clicksSaaS · Week 45 · 3,096 views · 28 clicks
🥈
Conversational Backlinks for Busy Founders
Place Backlink Relevant Conversation for your domain across Forums and Conversations
Website · 40,486 views · 216 clicksWebsite · Week 45 · 40,486 views · 216 clicks
🥉
upvote.club
Free Social Media Engagement that Helps Boost Your Content. Upvote Club supports 19 social networks with 100+ engagement actions in one dashboard. Add links to your posts and get free engagement from real users.
SaaS · 38,578 views · 110 clicksSaaS · Week 45 · 38,578 views · 110 clicks
#4
Substack Posting API
Onboard your Agent to Substack. Write Publish on Substack via API
SaaS · 57,616 views · 197 clicksSaaS · Week 45 · 57,616 views · 197 clicks
#5
Seenshot App
Free, Fast, MacOS Screenshot app. Make Screenshot cmd+shift+2 and send it via link
Desktop App · 27,048 views · 119 clicksDesktop App · Week 45 · 27,048 views · 119 clicks
#6
Hand-Placed Backlinks $9.99 per link. Flat rate.
Buy hand-placed forum, Q-A and directory backlinks. Flat $9.99 per link, no subscriptions — you only pay for approved listings.
Website · 2,988 views · 18 clicksWebsite · Week 45 · 2,988 views · 18 clicks
#7
Free Invoice Generator - PDF Invoices in Your Browser, No Sign-Up
A free invoice maker for freelancers and small businesses: fill in the invoice, check the live preview, and download a PDF that looks exactly like it. Any currency, tax per item, three templates, no sign-up, and nothing leaves your device.
1,682 views · 16 clicksWeek 45 · 1,682 views · 16 clicks
#8
Merge PDF Files Free - Combine PDFs in Your Browser, No Upload
A free PDF merger for office workers, students, and freelancers: combine PDFs and images into one file in the browser, reorder files and pages, pick page ranges, keep bookmarks, and open password-protected PDFs. Nothing is uploaded, no sign-up, no watermark.
1,574 views · 13 clicksWeek 45 · 1,574 views · 13 clicks