A modern Khata (Ledger) Management System built with Next.js. Track customers, suppliers, daily cash records, and use an AI Voice Assistant powered by Google Gemini.
- Ledger Management - Track debit/credit for customers and suppliers
- Daily Cash Book - Monitor daily cash flow
- Smart Dashboard - Business analytics at a glance
- AI Voice Assistant - Ask questions in English or Hindi
- Redis Caching - Fast performance with rate limiting
- Cloudinary - Secure file uploads
corepack enable
pnpm installCreate .env.local in the root directory:
MONGODB_URI=mongodb://localhost:27017/ledger
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
JWT_SECRET=your-secret-key-here
GEMINI_API_KEY=your-gemini-api-key
CLOUDINARY_CLOUD_NAME=your-cloud-name
CLOUDINARY_API_KEY=your-api-key
CLOUDINARY_API_SECRET=your-api-secretMake sure MongoDB and Redis are running locally, or use cloud services (MongoDB Atlas, Redis Cloud).
pnpm dev- Node.js 20+
- MongoDB (local or Atlas)
- Redis (local or cloud)
- Google Gemini API Key (Get it here)
- Cloudinary Account (Sign up here)
pnpm dev- Start development serverpnpm build- Build for productionpnpm start- Start production serverpnpm lint- Run linter
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature - Commit your changes:
git commit -m "Add your feature" - Push to the branch:
git push origin feature/your-feature - Open a Pull Request
If you find any issues or vulnerabilities, please raise an issue ticket in the repository. Your feedback helps make this project better for everyone.
"Alone we can do so little; together we can do so much." - Helen Keller
We believe in growing as a community. Every contribution, no matter how small, helps us build something great together.