A complete inventory, sales, and invoice management system designed for small to medium businesses.
Features include barcode scanning, serial-based inventory tracking, dynamic invoice creation, PDF & POS bill generation, and advanced sales analytics.
The system is designed using a clean relational structure.
This system is built using the T3 stack principles, utilizing TypeScript for robust type safety and Next.js for full-stack functionality.
| Component | Technologies Used |
|---|---|
| Framework | Next.js (Full-stack) |
| Language | TypeScript |
| Database | MongoDB with Mongoose ODM |
| Authentication | JSON Web Tokens (JWT) |
- Secure JWT-based login
- Role management:
admin,user - Admin controls all modules
- Create, update, delete categories
- Organize products clearly
- Add/edit/delete products
- Assign categories
- Search & filter products
- Serial number–based tracking
- Auto update inventory status:
in_stocksoldin_warrantyreturned
- Purchase price, selling price, warranty
- Auto barcode generator for non-serial items
- Add items via barcode/serial scanning
- Auto fetch inventory data
- Full invoice calculation:
- Subtotal
- Discount
- Tax
- Total
- Paid / Due
- Payment history tracking
- Auto-generate:
- A4 PDF Invoice
- POS-size thermal bill
- Daily, monthly, yearly sales charts
- Bar & line charts
- Summary cards:
- Total Sales
- Total Paid
- Total Due
- Total Invoices
- Inventory Status
Upon initial clone and setup, a default admin user will be automatically created for immediate login:
| Field | Value |
|---|---|
admin@brhex.com |
|
| Password | Brhex@123 |
git clone [https://github.com/pantho0/brhex-inventory-management.git](https://github.com/pantho0/brhex-inventory-management.git)
cd your-repo-name
npm install
npm run start:dev
npm run start:prod