A modern, responsive healthcare management system with invoice generation capabilities. Built with React, Node.js, Express, and MySQL.
link: https://automated-invoice-generator1.netlify.app/ (only frontend is hosted )
- 🏥 Automated Invoice Generator Interface - Clean, professional design with healthcare branding
- 📄 Invoice Management - Create, view, and download professional invoices
- 👥 Client Management - Add and manage client information
- 📊 Dashboard Analytics - View invoice statistics and financial summaries
- 📱 Responsive Design - Works perfectly on desktop, tablet, and mobile devices
- 🎨 Modern UI/UX - Glass-morphism design with smooth animations
- 📋 PDF Generation - Download invoices as PDF documents
- 🔍 Search & Filter - Find invoices quickly with advanced filtering
- React 18
- React Router DOM
- Bootstrap 5
- Font Awesome Icons
- Modern CSS with animations and glass-morphism effects
- Node.js
- Express.js
- MySQL2
- PDFKit for PDF generation
- CORS, Helmet, Morgan for security and logging
- Node.js (v16 or higher)
- MySQL database
- npm or yarn package manager
-
Clone the repository
git clone <repository-url> cd Automated InvoiceGenerator
-
Install all dependencies
npm run install:all
-
Set up the database
- Create a MySQL database
- Run the SQL scripts in
backend/sql/:mysql -u your_username -p your_database < backend/sql/schema.sql mysql -u your_username -p your_database < backend/sql/sample_data.sql
-
Configure environment variables
- Create a
.envfile in thebackenddirectory:DB_HOST=localhost DB_USER=your_username DB_PASSWORD=your_password DB_NAME=your_database PORT=3000 CORS_ORIGIN=http://localhost:5173
- Create a
Run both frontend and backend simultaneously:
npm run devThis will start:
- Backend API server on
http://localhost:3000 - Frontend development server on
http://localhost:5173
-
Build the frontend
npm run build
-
Start the backend server
npm start
npm run dev:backendnpm run dev:frontendAutomated-InvoiceGenerator/
├── backend/
│ ├── src/
│ │ ├── models/ # Database models
│ │ ├── routes/ # API routes
│ │ ├── utils/ # Utility functions
│ │ └── server.js # Main server file
│ ├── sql/ # Database schemas and sample data
│ └── package.json
├── frontend/
│ ├── components/ # React components
│ ├── src/pages/ # Page components
│ ├── api.js # API client
│ ├── App.jsx # Main app component
│ ├── main.jsx # Entry point
│ ├── index.html # HTML template
│ └── package.json
└── package.json # Root package.json
GET /api/clients- Get all clientsPOST /api/clients- Create a new client
GET /api/invoices- Get all invoicesGET /api/invoices/:id- Get specific invoicePOST /api/invoices- Create new invoiceGET /api/invoices/:id/pdf- Download invoice as PDF
- Access the application at
http://localhost:5173 - Add clients using the "Add Client" form
- Create invoices by selecting services and entering details
- View and manage all invoices from the dashboard
- Download PDFs of invoices for sharing or printing
- Modern glass-morphism design
- Smooth animations and transitions
- Responsive layout for all screen sizes
- Professional healthcare branding
- Interactive elements with hover effects
- Loading states and user feedback
- Clean component structure
- Proper error handling
- Responsive design patterns
- Modern React patterns with hooks
- Optimized performance
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License.
Use the included deployment script for easy setup:
Windows:
scripts\deploy.batLinux/Mac:
./scripts/deploy.sh- Build:
cd frontend && npm run build - Deploy: Upload
frontend/distto Netlify or connect GitHub repository - Configure: Set
VITE_API_BASE_URLenvironment variable
- Railway (Recommended): Easy MySQL + Node.js hosting
- Heroku: Classic PaaS with MySQL add-ons
- DigitalOcean: App Platform with managed databases
- Render: Modern hosting with PostgreSQL
- 📚 DEPLOYMENT.md - Complete deployment guide
- 🐙 GITHUB_SETUP.md - GitHub repository setup
Create frontend/.env:
VITE_API_BASE_URL=https://your-backend-api.com/apiCreate backend/.env:
# Database
DB_HOST=localhost
DB_USER=your_username
DB_PASSWORD=your_password
DB_NAME=healthcare_management
# Server
PORT=3000
CORS_ORIGIN=https://your-app.netlify.appThe project includes all necessary deployment configurations:
netlify.toml- Netlify deployment configurationfrontend/_redirects- SPA routing for Netlify.github/workflows/deploy.yml- GitHub Actions for automatic deployment.gitignore- Git ignore patternsscripts/deploy.*- Deployment automation scripts
After deployment, your application will be available at:
- Frontend:
https://your-app-name.netlify.app - Backend API:
https://your-backend-service.com/api
For support or questions, please contact the development team.
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes and commit:
git commit -m "Add feature" - Push to your branch:
git push origin feature-name - Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.