MediTrust is a web application for a clinic that allows users to make appointments and rate doctors. It includes features like doctor appointment schedules generation, authentication through SMS messages and an admin panel to manage doctors and appointments.
These instructions will help you set up the project on your local machine for development and testing purposes.
Ensure you have the following software installed:
Follow these steps to set up the project:
# Step 1: Clone the repository
git clone https://github.com/hlibmurphy/MediTrust-API.git
# Step 2: Navigate to the project directory
cd MediTrust-API
# Step 3: Install dependencies using Maven
mvn clean install
# Step 4: Set up environment variables
cp .env.example .env
# Edit .env file to match your configuration (e.g., database connection details)
# Step 5: Build JAR file
mvn clean package
# Step 6: Run the application
docker-compose up
Once the application runs, you can access it at http://localhost:8081
.
For documentation go to http://localhost:8081/api/swagger-ui/index.html
You can login as admin using these credentials on http://localhost:8081/api/auth/login
{
"phone": "0123456789",
"password": "12345678"
}
To run the automated tests, use the following command:
mvn test
- Spring Boot - Framework
- Hibernate - ORM
- MySQL - Database
- Docker - Containerization
- Mockito - Testing
- Hlib Bykovskyi - Initial work - hlibmurphy
- Thanks to the Spring Boot and Hibernate communities for their excellent documentation and support.