Welcome to the Hospital Management API! This API provides a comprehensive solution for managing hospitals, including doctors, patients, appointments, and more.
- 📋 Manage doctors, patients, appointments, and medical records.
- 🔐 Secure API with JWT authentication.
- 🌐 Comprehensive API documentation with Swagger UI.
- ✅ Scalable and maintainable architecture with Spring Boot.
- Java 17+
- Maven 3+
- MySQL 8+
- Git
-
Clone the Repository:
git clone https://github.com/MarioHMis/hospital-management.git cd hospital-management -
Configure Environment Variables:
- Copy the
.env.examplefile and rename it to.env. - Edit the
.envfile and set your database credentials.
cp .env.example .env
- Copy the
- Make sure you have MySQL running.
- Create a database named
hospital_management. - The database credentials are managed through the
.envfile.
-
Build the project:
mvn clean install
-
Run the application:
mvn spring-boot:run
- API Documentation:
http://localhost:8080/swagger-ui.html
- The API uses JWT for authentication.
- Register and login to receive a JWT token.
- Use the token in the Authorization header for secured endpoints.
- Ensure your
.envfile is configured with the following variables:
DB_URL=jdbc:mysql://localhost:3306/hospital_management
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password
SERVER_PORT=8080
- Fork the repository.
- Create a new branch (
feature/your-feature). - Make your changes and commit them.
- Push to your forked repository.
- Create a Pull Request.
This project is licensed under the MIT License.