A full-stack Hospital Management System developed using Spring Boot, React, MySQL, and JWT Authentication with role-based access control.
- JWT Authentication
- Spring Security
- Role-Based Authorization
- Password Encryption using BCrypt
- Protected Routes
- Add Doctor
- View Doctors
- Delete Doctor
- Add Patient
- View Patients
- Delete Patient
- Create Appointment
- Update Appointment Status
- Delete Appointment
- Prevent Double Booking
- Responsive UI
- Dashboard
- Protected Pages
- Axios API Integration
- REST APIs
- Validation
- Global Exception Handling
- Swagger/OpenAPI Documentation
- Layered Architecture
- Java 17
- Spring Boot
- Spring Security
- Spring Data JPA
- Hibernate
- JWT
- MySQL
- Maven
- React
- Vite
- Tailwind CSS
- Axios
- React Router
com.hms
├── controller
├── service
├── repository
├── entity
├── dto
├── security
├── exception
├── config
└── enums
src/
├── api
├── components
├── pages
└── routes
| Method | Endpoint |
|---|---|
| POST | /api/auth/register |
| POST | /api/auth/login |
| Method | Endpoint |
|---|---|
| POST | /api/doctors |
| GET | /api/doctors |
| DELETE | /api/doctors/{id} |
| Method | Endpoint |
|---|---|
| POST | /api/patients |
| GET | /api/patients |
| DELETE | /api/patients/{id} |
| Method | Endpoint |
|---|---|
| POST | /api/appointments |
| GET | /api/appointments |
| PUT | /api/appointments/{id} |
| DELETE | /api/appointments/{id} |
- users
- doctors
- patients
- appointments
- User logs in
- Backend validates credentials
- JWT token is generated
- Token stored in localStorage
- Token sent in Authorization header
- Backend validates token for protected APIs
Swagger UI URL:
http://localhost:8080/swagger-ui/index.html
git clone <repository-url>Update application.properties
spring.datasource.url=jdbc:mysql://localhost:3306/hms
spring.datasource.username=root
spring.datasource.password=yourpasswordmvn spring-boot:runnpm installnpm run devFrontend URL:
http://localhost:5173
- Pagination
- Search & Filtering
- Email Notifications
- Docker Deployment
- Cloud Deployment
- Unit Testing
Sarvesh Yeutkar
M.Tech CSE (Information Security)
College of Engineering Pune (COEP)






