Skip to content

Installation

Nasit Vurgun edited this page Jan 9, 2024 · 6 revisions

Installation

Prerequisites

Before installing any of the parts, you need to have Docker installed.

1. Clone the Repository:

Open your terminal and navigate to the desired directory where you want to clone the repository. Run the following command:

git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/distributed-systems.git

This will clone the repository to your local machine.

2. Navigate to the Project Directory:

Enter the project directory:

cd distributed-systems

Inside this distributed folder clone:

git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/api-gateway.git
git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/frontend-admin.git
git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/frontend-patient.git
git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/frontend-dentist.git
git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/map-service.git

3. Build Docker Images:

Run the following command to build the Docker images specified in the docker-compose.yml file:

docker-compose build

4. Start the Docker Containers:

After the images are built successfully, start the Docker containers in detached mode:

docker-compose up -d

This will start the services defined in your docker-compose.yml file.

Logging Service Setup

Clone the Logging Service Repository

Clone the logging service repository from Git:

git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/logging-service.git

Setup Logging Service

Navigate to the logging-service directory and build and run the Docker container:

cd logging-service
docker-compose build
docker-compose up -d

Booking Service Setup

Clone the Booking Service Repository

Clone the booking service repository from Git:

git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/booking-service.git

Setup Booking Service

Navigate to the booking-service directory and build and run the Docker container:

cd booking-service
docker-compose build
docker-compose up -d

Notification Service Setup

Clone the Notification Service Repository

Clone the notification service repository from Git:

git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/notification-service.git

After configuring the .env file as described in the readme, run the following script:

cd notification-service\src
python .\mqtt_handler.py

Create, cancel, or repost a booking to prompt OAuth 2.0 authorization in browser. Sign-in with mailing service gmail account. You will receive a token.json.

Navigate to the src directory and build and run the Docker container:

cd src
docker build -t notification-service .
docker run -p 4000:80 notification-service

Statistics Service Setup

Clone the Statistics Service Repository

Clone the statistics service repository from Git:

git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/statistics-service.git

Setup Statistics Service

Navigate to the statistics-service directory and build and run the Docker container:

cd statistics-service
docker build -t statistics-service .
docker run -p 5177:5177 statistics-service

User Service Setup

Follow the readme file in the repo.

Verify the Running Containers:

You can check the status of the running containers to ensure everything is working as expected:

docker ps

Clone this wiki locally