- Invoice Generation System
- Description
- Contributors
- Company Logo
- Badges
- Demo
- Installation
- How to Use the Project
- How to Contribute to the Project
- Include Credits
- License
- Security
This project aims to provide a comprehensive solution for generating invoices using Electron.js, MySQL, and Node.js. It offers a user-friendly interface for managing invoices efficiently.
To install and run this project locally, follow these steps:
- Clone the repository:
git clone https://github.com/parthpetkar/Invoice-Generator-using-Electron.js
- Navigate to the project directory:
cd invoice_generator
- Install dependencies:
npm install
- Set up MySQL database:
- Create a MySQL database and import the schema from
database_schema.sql
.create schema invoice; use invoice; CREATE TABLE `customers` ( `company_name` varchar(255) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `phone` varchar(20) DEFAULT NULL, `gstin` varchar(20) DEFAULT NULL, `pan` varchar(20) DEFAULT NULL, `cin` varchar(20) NOT NULL, PRIMARY KEY (`cin`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; CREATE TABLE `projects` ( `cin` varchar(20) NOT NULL, `pono` varchar(20) NOT NULL, `total_prices` decimal(10,2) DEFAULT NULL, `taxes` enum('GST','IGST') DEFAULT NULL, `project_name` varchar(255) DEFAULT NULL, PRIMARY KEY (`cin`,`pono`), CONSTRAINT `projects_ibfk_1` FOREIGN KEY (`cin`) REFERENCES `customers` (`cin`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; CREATE TABLE `milestones` ( `cin` varchar(20) NOT NULL, `pono` varchar(20) NOT NULL, `milestone_name` varchar(255) NOT NULL, `claim_percent` decimal(5,2) DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, PRIMARY KEY (`cin`,`pono`,`milestone_name`), CONSTRAINT `milestones_ibfk_1` FOREIGN KEY (`cin`, `pono`) REFERENCES `projects` (`cin`, `pono`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
- Update the MySQL connection details in
.env
.DB_HOST DB_USER DB_PASSWORD DB_DATABASE
- Run the code
npm run watch
To use the project, follow these steps:
- Launch the application.
- Create a new invoice by filling in the required details.
- Save or print the generated invoice.
We welcome contributions from the community! To contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/contribution
). - Make your changes and commit them (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/contribution
). - Create a new Pull Request.
This project is licensed under the MIT License.
๐ If you discover any security-related issues, please email [email protected] instead of using the issue tracker.