Skip to content

anisharma07/Govt-Invoice-Form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

64 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›οΈ Government Medical Billing Form

A comprehensive Progressive Web Application (PWA) built with Ionic 8 and React for government invoice billing with advanced offline capabilities, modern UI/UX, and cross-platform compatibility.

Project Overview

The Government Billing Solution MVP is a modern, feature-rich billing application designed specifically for government agencies and public sector organizations. Built as a Progressive Web App, it provides a native app-like experience while maintaining web accessibility and cross-platform compatibility.

Device Support (Web, Android, Ios, PWA)

flowchart TD
    A([πŸ’» Device Support]) --> B[Desktop Web]
    A --> C[Android]
    A --> D[iOS]
    A --> E[PWA]
Loading

πŸ—‚οΈ Project Structure

src/
β”œβ”€β”€ components/           # Reusable UI components
β”‚   β”œβ”€β”€ Files/           # File management components
β”‚   β”œβ”€β”€ FileMenu/        # File operations menu
β”‚   β”œβ”€β”€ Menu/            # Application menu
β”‚   β”œβ”€β”€ socialcalc/      # Spreadsheet engine
β”‚   └── Storage/         # Local storage management
β”œβ”€β”€ contexts/            # React contexts for state management
β”œβ”€β”€ hooks/               # Custom React hooks
β”œβ”€β”€ pages/              # Main application pages
β”œβ”€β”€ services/           # Application services
β”œβ”€β”€ theme/              # CSS themes and variables
└── utils/              # Utility functions

C4GT DMP'25 Contributions:

✨ Features Overview

🏠 Core Application Features

# Feature Description Documentation
1 Autosave Functionality Automatic saving with configurable intervals and manual save options πŸ“„ View Details
2 Dark Mode Theme Complete dark/light theme switching with system preference detection πŸ“„ View Details
3 Logo Integration Company logo upload, management, and invoice integration πŸ“„ View Details
4 Advanced Cell Styling Rich text formatting, colors, borders, and alignment options πŸ“„ View Details
5 Export Functionality PDF, CSV, and multi-sheet export with mobile sharing support πŸ“„ View Details
6 Camera Integration Photo capture for receipts and documentation using device camera πŸ“„ View Details
7 App Icons & Splash Professional branding with adaptive icons and splash screens πŸ“„ View Details
8 Digital Signatures Electronic signature capture and integration into invoices πŸ“„ View Details
9 Storage Management Intelligent quota handling and storage optimization πŸ“„ View Details
10 PWA & Ionic 8 Upgrade Progressive Web App capabilities with latest Ionic framework πŸ“„ View Details
11 Bulk File Operations Save all to server & move all from server with progress tracking πŸ“„ View Details
12 Starknet Integration Blockchain file storage with IPFS, token subscriptions, and Web3 features πŸ“„ View Details

1. Offline Features

flowchart TD
    A[πŸ’» Offline Features] --> B[Export]
    A --> C[Insert Images]
    A --> D[Frontend]

    %% Export branch
    B --> E[Export CSV]
    B --> F[Export pdf]
    E --> G[Single Sheet]
    E --> H[Full Workbook]

    %% Insert Images branch
    C --> I[Add Logo]
    C --> J[Create Signature]
    C --> K[Add Signature]

    %% Frontend branch
    D --> L[Sheet Styles]
    D --> M[Autosave]
    D --> N[Dark Mode]
Loading

2. Cloud Features (AWS S3)

flowchart TD
    A([☁️ Cloud Features]) --> B[Export Pdf]
    A --> C[Cloud Sync]
    A --> D[Multi Save/Retrieve]
    C --> F[Save]
    C --> G[Retrieve]
Loading

3. Blockchain Integration (Starknet)

flowchart TD
    A([⛓️ Starknet Integration]) --> B[Subscription Plans]
    A --> C[Blockchain Sync]
    A --> D[IPFS Storage]
    B --> G[5 Files, 1 PPT]
    B --> H[50 Files, 10 PPT]
    B --> I[250 Files, 50 PPT]

    C --> E[Save]
    C --> F[Retrieve]
Loading

πŸ“± Progressive Web App Features

  • Offline Functionality: Full app functionality without internet connection
  • App Installation: Install directly from browser with native app experience
  • Background Sync: Sync data when connection is restored
  • Push Notifications: Local notifications for important events
  • App Shortcuts: Quick access to create invoice, view invoices, and manage customers
  • Standalone Display: Full-screen app experience when installed
  • App-like UI: Native-feeling interface with proper theming

πŸ“Š Performance Metrics

  • Load Times: Measure initial load and navigation performance
  • Cache Hit Rates: Monitor offline capability effectiveness
  • Storage Usage: Track local storage and quota usage

πŸ› οΈ Technology Stack

Frontend Framework

  • React 18.2.0 - Modern UI library with hooks and concurrent features
  • TypeScript 5.1.6 - Type-safe development environment
  • Ionic 8.0.0 - Cross-platform UI components and native app features
  • Vite 5.0.0 - Fast build tool and development server

PWA & Mobile

  • Vite PWA Plugin 0.19.0 - Progressive Web App capabilities
  • Capacitor 6.0.0 - Native app deployment for iOS and Android
  • Capacitor Plugins - Camera, filesystem, preferences, and sharing capabilities

Spreadsheet Engine

  • SocialCalc - Powerful spreadsheet engine for invoice creation and calculation
  • Custom Extensions - Enhanced functionality for government billing needs

πŸš€ Quick Start

Prerequisites

  • Node.js 16+ (LTS recommended)
  • npm 8+ or yarn 1.22+

Installation

# Clone the repository
git clone https://github.com/<your_username>/<repo_name>.git
cd <repo_name>

# Install dependencies
npm install

# Generate PWA assets (icons, manifest)
npm run generate-pwa-assets

# Start development server
npm run dev
or ionic serve

# Build for production
npm run build
or ionic build

# Preview production build
npm run preview

Mobile Development

# Add Capacitor (if not already added)
ionic integrations enable capacitor

# Add mobile platforms
npx cap add android
npx cap add ios

# Sync web app with native platforms
npx cap sync

# Open in native IDEs
npx cap open android
npx cap open ios

# (Optional) Run on mobile
ionic capacitor run android -l --external
ionic capacitor run ios -l --external

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

πŸ“ž Support

For support, email the Contributor [anis42390@gmail.com] or create an issue in this repository.


Made with ❀️ under C4GT DMP'25 Program

About

A Medical or Govt Invoice Billing Solution Using SocialCalc and Javascript

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors