A comprehensive, full-stack Hospital Management System built with modern technologies.
Frontend: https://hospitalmanagementapplications.netlify.app
- β Frontend: Successfully deployed on Netlify
- β Database: Integrated with Supabase PostgreSQL
- β³ Backend: Ready for deployment (Spring Boot)
- β Authentication: Role-based access control implemented
- β Features: Complete HMS functionality
- React 18 with TypeScript
- Vite for build tooling
- Tailwind CSS for styling
- React Router for navigation
- Axios for API calls
- React Hook Form for form handling
- React Hot Toast for notifications
- Spring Boot 2.7.14
- Spring Security for authentication
- Spring Data JPA for database operations
- PostgreSQL (Supabase cloud database)
- Maven for dependency management
- Frontend: Netlify
- Database: Supabase PostgreSQL
- Backend: Ready for Railway/Heroku/Render
- Multi-role system (Admin, Doctor, Receptionist, Patient)
- Secure login and registration
- Role-based access control
- JWT token authentication
- Admin: Full system control
- Doctor: Patient and appointment management
- Receptionist: Hospital operations
- Patient: Appointment booking and health records
- Patient Management: Registration, records, health history
- Doctor Management: Profiles, specializations, schedules
- Appointment System: Booking, scheduling, status tracking
- Billing System: Invoice generation, payment tracking
- Prescription Management: Digital prescriptions
- Reports & Analytics: Dashboard with insights
- Medical Records: Digital health records
- Node.js 18+
- Java 17+
- Maven 3.6+
- Git
git clone https://github.com/aditya-pawade/HospitalManagementSystem.git
cd HospitalManagementSystem
git checkout HMS-beta-VS-versioncd frontend
npm install
npm run devFrontend runs on: http://localhost:5173
# Update application.properties with your database config
mvn clean install
mvn spring-boot:runBackend runs on: http://localhost:8080
Swagger UI: http://localhost:8080/swagger-ui.html
The frontend is live on Netlify with automatic deployments from the HMS-beta-VS-version branch.
- Connect your GitHub repository to Railway
- Select
HMS-beta-VS-versionbranch - Set environment variables
- Deploy automatically
- Create Heroku app
- Connect to GitHub repository
- Enable automatic deployments
- Set config vars
- Create new web service on Render
- Connect GitHub repository
- Configure build settings
- Deploy
# Backend
SPRING_DATASOURCE_URL=jdbc:postgresql://your-db-url
SPRING_DATASOURCE_USERNAME=your-username
SPRING_DATASOURCE_PASSWORD=your-password
# Frontend (Netlify)
VITE_API_BASE_URL=https://your-backend-url.com/apiHMS/
βββ frontend/ # React TypeScript app
β βββ src/
β β βββ components/ # Reusable UI components
β β βββ pages/ # Route pages
β β βββ services/ # API services
β β βββ context/ # React context
β β βββ hooks/ # Custom hooks
β β βββ types/ # TypeScript interfaces
β βββ dist/ # Built files
βββ src/main/java/com/hms/ # Spring Boot backend
β βββ controller/ # REST controllers
β βββ service/ # Business logic
β βββ repository/ # Data access
β βββ entity/ # JPA entities
β βββ dto/ # Data transfer objects
βββ src/main/resources/ # Configuration files
The project is configured to use Supabase PostgreSQL. Connection details are in:
src/main/resources/application-supabase.properties
POST /api/auth/login # User login
POST /api/auth/register # User registration
GET /api/patients # Get all patients
POST /api/patients # Create patient
GET /api/doctors # Get all doctors
POST /api/appointments # Create appointment
GET /api/bills # Get bills
POST /api/prescriptions # Create prescription
Admin: admin / admin123
Doctor: doctor / doctor123
Receptionist: reception / reception123
Cause: Backend not yet deployed
Solution: Deploy backend and update VITE_API_BASE_URL
Solution: Backend includes CORS configuration for frontend domain
- Fork the repository
- Create feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open Pull Request
This project is licensed under the MIT License.
- React community for excellent documentation
- Spring Boot for robust backend framework
- Netlify for seamless frontend hosting
- Supabase for reliable database service
For support, please open an issue in the GitHub repository.
Made with β€οΈ for healthcare management