A professional, modern web application for generating beautiful receipts for shopping bag businesses. Built with React and featuring dark mode, multiple export options, and real-time calculations.
- 🎨 Professional Receipts - Clean, printable receipt design with company branding
- 🌙 Dark Mode - Toggle between light and dark themes
- 📱 Responsive Design - Works perfectly on desktop and mobile devices
- 🖼️ Multiple Export Options
- Save as PNG image
- Export as PDF document
- Direct printing support
- 📊 Real-time Calculations - Live total calculation as you type
- 🏢 Company Branding - Upload your company logo and details
- 📦 Shopping Bag Specific - Optimized for bag businesses (plastic, paper, canvas, jute)
- 📞 Contact Integration - WhatsApp contact information
- 🔄 Form Validation - Comprehensive input validation and error handling
Make sure you have Node.js installed on your system (version 14 or higher).
-
Clone the repository git clone https://github.com/noumanahmed01/e-receipt-generator.git cd e-receipt-generator
-
Install dependencies
npm install
-
Start the development server
npm run dev
-
Open your browser Navigate to
http://localhost:5173to see the application in action.
- Enter your company name and owner name
- Upload your company logo (optional)
- Set default contact information
- Input customer name
- Add business name (if applicable)
- Select shopper type (Plastic, Paper, Canvas, or Jute bags)
- Enter quantity in kilograms
- Set price per kilogram
- Watch the total calculate automatically
- Click "Generate Receipt" to create your receipt
- Choose your export method:
- Save as Image - Download as high-quality PNG
- Save as PDF - Export as printable PDF document
- Print - Direct printing with optimized layout
- React - Frontend framework
- React Hook Form - Form handling and validation
- Tailwind CSS - Styling and responsive design
- html2canvas - HTML to image conversion
- jsPDF - PDF generation
- React Barcode - Barcode generation
- UUID - Unique receipt number generation
- Lucide React - Beautiful icons
src/
├── components/
│ └── ReceiptGenerator.js # Main component
├── App.js # Root component
├── index.js # Application entry point
└── styles/ # Global styles
- Chrome (recommended)
- Firefox
- Safari
- Edge
We welcome contributions! Please feel free to submit pull requests, report bugs, or suggest new features.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you need help or have questions:
- Check the Issues page
- Create a new issue with detailed description
- Contact via email: your-email@example.com
- Icons by Lucide
- UI components inspired by modern design systems
- Built with create-react-app
Note: This project is specifically designed for shopping bag businesses but can be easily adapted for other types of businesses requiring receipt generation.
⭐ Star this repo if you found it helpful!