Skip to content

hlibmurphy/MediTrust-API

Repository files navigation

MediTrust API

Table of Contents

About

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.

Getting Started

These instructions will help you set up the project on your local machine for development and testing purposes.

Prerequisites

Ensure you have the following software installed:

Installation

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

Usage

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"
}

Running Tests

To run the automated tests, use the following command:

mvn test

Built With

  • Spring Boot - Framework
  • Hibernate - ORM
  • MySQL - Database
  • Docker - Containerization
  • Mockito - Testing

Authors

Acknowledgements

  • Thanks to the Spring Boot and Hibernate communities for their excellent documentation and support.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published