-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Before installing any of the parts, you need to have Docker installed.
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.gitThis will clone the repository to your local machine.
Enter the project directory:
cd distributed-systemsInside 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.gitRun the following command to build the Docker images specified in the docker-compose.yml file:
docker-compose buildAfter the images are built successfully, start the Docker containers in detached mode:
docker-compose up -dThis will start the services defined in your docker-compose.yml file.
Clone the logging service repository from Git:
git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/logging-service.gitNavigate to the logging-service directory and build and run the Docker container:
cd logging-service
docker-compose build
docker-compose up -dClone the booking service repository from Git:
git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/booking-service.gitNavigate to the booking-service directory and build and run the Docker container:
cd booking-service
docker-compose build
docker-compose up -dClone the notification service repository from Git:
git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/notification-service.gitAfter 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-serviceClone the statistics service repository from Git:
git clone git@git.chalmers.se:courses/dit355/2023/student-teams/dit356-2023-04/statistics-service.gitNavigate 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-serviceFollow the readme file in the repo.
You can check the status of the running containers to ensure everything is working as expected:
docker ps