Skip to content

About

A Hospital Management System REST API built with Spring Boot 3, Java 21, and MySQL, featuring stateless JWT authentication and clean architecture. Includes a React/Vite frontend.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Hospital Management System (Backend-Focused Architecture)

🏥 Overview

This repository contains a robust, scalable RESTful API built with Spring Boot 3 to manage core hospital operations. While the repository is a full-stack project (including a React frontend), the primary focus of this project is the backend architecture.

I designed this backend to demonstrate modern Java development practices, stateless security, and efficient database interactions, providing a strong API foundation for managing patients, doctor profiles, and appointment scheduling.

⚙️ Backend Highlights & Architecture

  • Stateless Security (JWT): Designed a custom Spring Security filter chain to handle user authentication and authorization using JSON Web Tokens.
  • REST API Design: Follows strict RESTful conventions using Spring Web to expose clean, predictable endpoints (Controller Layer).
  • Data Integrity: Utilizes Spring Validation to sanitize and validate incoming request payloads before they reach the Service Layer.
  • Relational Data Management: Employs Spring Data JPA and Hibernate to define entity relationships, mapping business logic directly to a robust MySQL database.
  • Clean Architecture: Strictly separates concerns across Entities, Clean Data Transfer Objects (DTOs), Repositories, Services, and Controllers.

🛠️ Technology Stack

Core Backend (Primary Focus)

  • Framework: Spring Boot (v3.2.5)
  • Language: Java 21
  • Database Architecture: Spring Data JPA / Hibernate
  • Database: MySQL
  • Security: Spring Security & JWT (io.jsonwebtoken)
  • Utility: Lombok (Boilerplate reduction)
  • Build Tool: Maven

Frontend

  • Environment: React 19 / Vite
  • Styling: Tailwind CSS

💻 Prerequisites

  • Java Development Kit (JDK) 21
  • Node.js (v18+) [Optional: Only required to run the frontend]
  • MySQL Server

🚀 Getting Started

1. Clone the repository:

git clone https://github.com/yourusername/YourRepositoryName.git
cd YourRepositoryName

About

A Hospital Management System REST API built with Spring Boot 3, Java 21, and MySQL, featuring stateless JWT authentication and clean architecture. Includes a React/Vite frontend.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages