Directory Structure

In this section you will get a brief idea of our code flow.

Note: The above image is just a screen snap of my project folder, below I have explained the project skeleton in brief.

Invoice Generator/
β”‚
β”œβ”€β”€ assets/                              # General assets used across the website
β”‚   β”œβ”€β”€ css/                             # Website CSS (Bootstrap, Help, Settings, Home, etc.)
β”‚   β”œβ”€β”€ image/                           # Website images, organized in category-wise folders
β”‚   β”œβ”€β”€ js/                              # Website JavaScript (Bootstrap, libraries, page-specific scripts)
β”‚   └── purchase_order_generator/        # Styles and scripts specific to the purchase order generator
β”‚
β”œβ”€β”€ purchase-order-templates/           # Purchase Order Templates
β”‚   β”œβ”€β”€ assets/                          # Common assets (CSS/JS) used by templates
β”‚   β”œβ”€β”€ template-1/                      # Template 1
β”‚   β”‚   β”œβ”€β”€ assets/                      # CSS and JS for Template 1
β”‚   β”‚   β”œβ”€β”€ template_1.png               # Template preview image
β”‚   β”‚   └── template-1.html              # HTML code for Template 1
β”‚   └── template-2/ to template-20/      # Same structure for templates 2 to 20
β”‚
β”œβ”€β”€ quote-generator/                    # Quote Generator Section
β”‚   β”œβ”€β”€ assets/                          # Styles and scripts for quote generator
β”‚   └── templates/                       # Quote generator templates
β”‚       β”œβ”€β”€ assets/                      # Common template assets
β”‚       β”œβ”€β”€ template-1/                  # Template 1
β”‚       β”‚   β”œβ”€β”€ assets/                  # CSS and JS for Template 1
β”‚       β”‚   β”œβ”€β”€ template_1.png           # Template preview image
β”‚       β”‚   └── template-1.html          # HTML code for Template 1
β”‚       └── template-2/ to template-20/  # Same structure for templates 2 to 20
β”‚
β”œβ”€β”€ templates/                          # Invoice Generator Templates
β”‚   β”œβ”€β”€ assets/                          # Common assets for all templates
β”‚   β”œβ”€β”€ template-1/                      # Template 1
β”‚   β”‚   β”œβ”€β”€ assets/                      # CSS and JS for Template 1
β”‚   β”‚   β”œβ”€β”€ template_1.png               # Template preview image
β”‚   β”‚   └── template-1.html              # HTML code for Template 1
β”‚   └── template-2/ to template-20/      # Same structure for templates 2 to 20
β”‚
β”œβ”€β”€ client-details.html                 # Client details section (part of Settings)
β”œβ”€β”€ footer.html                         # Website footer
β”œβ”€β”€ from-details.html                   # Sender's company details (part of Settings)
β”œβ”€β”€ gst-calculator.html                 # Business tool: GST calculator
β”œβ”€β”€ header.html                         # Website header
β”œβ”€β”€ help.html                           # Step-by-step guide for using the invoice generator
β”œβ”€β”€ history.html                        # Invoice history records
β”œβ”€β”€ index.html                          # Website homepage
β”œβ”€β”€ invoice.html                        # Invoice generator main interface
β”œβ”€β”€ modals.html                         # All modals used across the website
β”œβ”€β”€ paypal.html                         # Business tool: PayPal fee calculator
β”œβ”€β”€ purchase-order-generator.html       # Purchase order generator interface
β”œβ”€β”€ purchase-order-history.html         # Purchase order history records
β”œβ”€β”€ quote-generator-history.html        # Quote generator history records
β”œβ”€β”€ quote-generator.html                # Quote generator main interface
β”œβ”€β”€ setting-default-currency.html       # Set default currency (Settings)
β”œβ”€β”€ setting-default-template.html       # Set default invoice template (Settings)
β”œβ”€β”€ setting-import-products.html        # Import products for purchase orders (Settings)
β”œβ”€β”€ stripe.html                         # Business tool: Stripe fee calculator
└── upwork.html                         # Business tool: Upwork fee calculator

Purpose

This project is a comprehensive invoice/quote/purchase-order generator with support for multiple templates, business tools, and customization options.


πŸ”Ή How to Use

βœ… Run the Project

  • Open index.html in your browser to access the homepage.

  • Navigate to:

    • invoice.html to generate invoices.

    • quote-generator.html for quotes.

    • purchase-order-generator.html for purchase orders.

🧩 Choose Templates

  • All templates are located under:

    • /templates/ (Invoice)

    • /quote-generator/templates/

    • /purchase-order-templates/

  • Preview available via template_1.png

  • Template HTML available via template-1.html

βš™οΈ Settings Pages

Modify or set defaults:

  • Currency: setting-default-currency.html

  • Template: setting-default-template.html

  • Product Import: setting-import-products.html

  • Client/From Details: client-details.html, from-details.html

πŸ“¦ Tools Available

  • GST Calculator: gst-calculator.html

  • PayPal Fee: paypal.html

  • Stripe Fee: stripe.html

  • Upwork Fee: upwork.html

πŸ“œ History Tracking

  • Invoice: history.html

  • Purchase Order: purchase-order-history.html

  • Quote: quote-generator-history.html


πŸ“ File Organization Tips

  • Keep new templates within the appropriate template-x/ structure.

  • Reuse common CSS/JS from the main assets/ folder when possible.

  • Use consistent naming conventions for easy identification.

  • Update the relevant HTML files if you add new templates or tools.


Last updated