A Next.js frontend application for a simple Point of Sale (POS) system with modern UI components and real-time functionality.
- Node.js 18 or higher
- npm or yarn package manager
npm install
# or
yarn installCreate a .env file in the root directory and configure the backend API URL:
NEXT_PUBLIC_API_URL=http://localhost:8081For development:
npm run dev
# or
yarn devFor production:
npm run build
npm start
# or
yarn build
yarn startThe application will start on http://localhost:3000 by default.
- Product Management: Browse and manage products by categories (Fruits, Vegetables, Bakery)
- Transaction Processing: Handle sales transactions with multiple payment methods
- Settings Panel: Configure products, deposits, discounts, passwords, and themes
- Modern UI: Built with Tailwind CSS and Radix UI components
- Dark/Light Theme: Toggle between themes
- Responsive Design: Works on desktop and mobile devices
app/- Next.js 13+ app router pagessettings/- Settings pages (products, deposits, discounts, etc.)fruits/,vegetables/,bakery/- Product category pages (Fruits, Vegetables, Bakery)
components/- Reusable React componentsui/- Base UI components (buttons, cards, inputs, etc.)
context/- React context providersservices/- API service functionstypes/- TypeScript type definitionslib/- Utility functions
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLint
The frontend connects to the SimplePOS24 Backend API. Make sure the backend is running on the configured URL before starting the frontend application.
Default backend URL: http://localhost:8081