A mobile-friendly billing application for small retail shops, grocery stores, and kirana shops in India. Helps shop owners transition from handwritten bills to a digital billing system.
src/
├── controllers/ # HTTP request handlers
├── models/ # Data models and schemas
├── views/ # UI templates
├── services/ # Business logic
├── routes/ # API endpoints
├── middleware/ # Request processing
├── constants/ # App constants
├── config/ # Configuration
├── utils/ # Helper functions
├── app.js # Express app setup
└── server.js # Entry point
Install dependencies:
npm installCreate a .env file for environment variables:
PORT=3000
Start the server:
npm startStart with auto-reload:
npm run devThis project follows MVC architecture with a service layer:
- Controllers handle HTTP requests and responses
- Services contain business logic
- Models define data structures and database interactions
- Routes map URLs to controllers
- Middleware processes requests before they reach controllers
- Node.js with ES modules
- Express.js
- MVC architecture pattern