A comprehensive web-based Point of Sale (POS) system built with modern technologies and modular architecture.
The system follows a modular component architecture where each feature functions as an independent module while seamlessly integrating into the complete ecosystem.
Frontend:
- React with TypeScript
- Tailwind CSS for styling
- shadcn/ui for UI components
- Recharts for data visualization
- React Query for state management
- React Router for navigation
Backend:
- Node.js with Express.js
- PostgreSQL database
- JWT authentication
- RESTful API design
- Docker containerization ready
habicore-pos/
├── frontend/ # React frontend application
├── backend/ # Node.js backend API
├── database/ # Database scripts and migrations
├── docs/ # Documentation
└── docker/ # Docker configuration files
- Point of Sale (POS) - Transaction processing and payment handling
- Inventory Management - Stock control and product catalog
- User & Role Management - Authentication and authorization
- Revenue/Sale Records - Transaction history and analysis
- Profit/Loss Records - Financial reporting and insights
- Manufacturing - Production management
- CRM - Customer relationship management
- Sales/Leads Integration - Third-party system integration
- Node.js 18+
- PostgreSQL 14+
- npm or yarn
-
Clone the repository
-
Install dependencies:
# Frontend cd frontend npm install # Backend cd ../backend npm install
-
Set up the database:
cd database # Run migration scripts
-
Configure environment variables:
# Copy example env files and configure cp backend/.env.example backend/.env cp frontend/.env.example frontend/.env -
Start the development servers:
# Backend (port 3001) cd backend npm run dev # Frontend (port 3000) cd frontend npm start
Use the deployment scripts to prepare your application:
# Windows (PowerShell)
.\deploy.ps1
# Linux/Mac
./deploy.shThis application is optimized for deployment on Render.com with:
- PostgreSQL Database (Free tier available)
- Node.js Backend (Web Service)
- React Frontend (Static Site)
See RENDER_DEPLOYMENT_GUIDE.md for detailed deployment instructions.
Create environment files:
Backend (.env):
DATABASE_URL=postgresql://user:pass@host:port/db
JWT_SECRET=your-secure-secret
NODE_ENV=production
CORS_ORIGIN=https://your-frontend-url.comFrontend (.env.production):
VITE_API_URL=https://your-backend-url.com
NODE_ENV=productionUse the included render.yaml file for automated deployment:
- Fork this repository
- Connect to Render.com
- Deploy all services at once
- Single-Tenant Architecture: Simplified deployment and management
- Batch-Based Inventory: FIFO/LIFO/WAC costing methods
- Manufacturing Management: BOM-based production
- Real-time Notifications: Inventory alerts and system updates
- Comprehensive Reporting: Sales, inventory, and financial reports
- Modularity: Each module operates independently
- Scalability: Microservices-ready architecture
- Security: Robust authentication and authorization
- Performance: Optimized for high-transaction environments
- Integration: API-first design
Proprietary - Habicore POS System