From 348cdc6b58e536a28d2dd8586a7db16b3faa3f59 Mon Sep 17 00:00:00 2001 From: Marco Prescher Date: Thu, 11 Jul 2024 12:57:23 +0200 Subject: [PATCH] Fixed appsettings.DockerDevelopment.json and updated README.md Co-authored-by: Adrian <50778781+essiga@users.noreply.github.com> Co-authored-by: Michael Spiegel <70846025+smightym8@users.noreply.github.com> --- ClubService.API/Program.cs | 4 ++-- .../appsettings.DockerDevelopment.json | 1 + README.md | 24 +++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/ClubService.API/Program.cs b/ClubService.API/Program.cs index ad96c6e..c73a323 100644 --- a/ClubService.API/Program.cs +++ b/ClubService.API/Program.cs @@ -77,10 +77,10 @@ var logger = services.GetRequiredService>(); logger.LogDuplicateSeedData(); } - + await readStoreDbContext.Database.EnsureDeletedAsync(); await readStoreDbContext.Database.EnsureCreatedAsync(); - + await loginStoreDbContext.Database.EnsureDeletedAsync(); await loginStoreDbContext.Database.EnsureCreatedAsync(); } diff --git a/ClubService.API/appsettings.DockerDevelopment.json b/ClubService.API/appsettings.DockerDevelopment.json index 166e0f6..cec1e90 100644 --- a/ClubService.API/appsettings.DockerDevelopment.json +++ b/ClubService.API/appsettings.DockerDevelopment.json @@ -28,6 +28,7 @@ "SmtpConfiguration": { "Host": "localhost", "Port": "1025", + "SenderEmailAddress": "admin@thcdornbirn.at", "PollingInterval": "10" }, "Logging": { diff --git a/README.md b/README.md index db1bb03..2fc1b7c 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,30 @@ TennisClub "1" --> "*" Member Admin "*" --> "1" TennisClub ``` +## How to run + +### Docker-compose +Navigate to project root and execute:\ +`docker compose build`\ +`docker compose up` + +The swagger-ui is available at:\ +`http://localhost:5000/swagger/index.html` + +### Kubernetes +Navigate to project root and execute:\ +`kubectl apply -R -f deployments` + +To delete all instances execute:\ +`kubectl delete -R -f deployments` + +Our service is of course only available through the API Gateway (see documentation in API Gateway), to get the IP and Port +of the API gateway the following command can be executed:\ +`minikube service --url` + +IP and Port can then be used to view the swagger-ui:\ +`http://:/q/swagger-ui/#/` + ## Login In our application we distinguish between `Members`, `Admins`, and `Supervisors`. All of them are accounts that users of the application can login with.