A full-stack Point of Sale (POS) and inventory management system designed for high-volume retail environments. Features real-time sales analytics, secure OAuth authentication, dynamic accessibility tools, and multi-language support.
🔗 URL: Click here to launch the App
⚠️ Note: This application is hosted on the Render Free Tier. The server may go to sleep after inactivity. Please allow 30-60 seconds for the initial load.
- Sales Trends: Visualizes revenue data and best-selling items using interactive charts (
TrendsScreen). - X/Z Reports: Generates detailed sales reports for end-of-day reconciliation.
- Dynamic Tools: Features built-in magnification controls (
MagnifyControls) and high-contrast modes for visually impaired users. - Multi-Language Support: Integrated Google Translate API (
GoogleTranslateLoader) to support diverse customer bases in real-time.
- Authentication: Secure login system using Passport.js (OAuth) strategies.
- Role-Based Access: Distinct interfaces for Cashiers (Transaction processing) and Managers (Inventory/Staff management).
- Context API: Utilizes
UserContextandAccessibilityContextfor global state management across the application, reducing prop drilling.
| Category | Technology |
|---|---|
| Frontend | React (Vite), Context API, CSS3 |
| Backend | Node.js, Express.js, Passport.js |
| Database | PostgreSQL (Hosted on Render/Supabase) |
| APIs | Google Translate API, Custom REST API |
| Deployment | Render, Git/GitHub |
The project is organized as a monorepo with separate frontend and backend directories.
/
├── backend/ # Node.js & Express Server
│ ├── auth/ # Passport OAuth Configuration
│ ├── controllers/ # Business Logic for Orders/Items
│ ├── db/ # Database Connection & SQL Queries
│ ├── routes/ # REST API Endpoints (Auth, Menu, Reports)
│ └── index.js # Server Entry Point
│
└── frontend/ # React Client (Vite)
├── src/
│ ├── api/ # Axios API Service Layers
│ ├── components/ # UI Components (Login, Cashier, Manager)
│ ├── context/ # Global State (User, Accessibility)
│ ├── hooks/ # Custom Hooks (useTranslate, useLanguage)
│ └── utils/ # Helper Functions
└── vite.config.js # Vite ConfigurationThis project includes a setup.sh script that installs all backend and frontend dependencies automatically, including required auth packages such as:
- express-session
- passport
- passport-google-oauth20
chmod +x setup.sh
./setup.shnpm run devnpm startnpm run dev