Skip to content

Commit 002dfdc

Browse files
authored
Merge pull request #270 from THC-Software/documentation
Fixed appsettings.DockerDevelopment.json and updated README.md
2 parents 4d0be9c + 348cdc6 commit 002dfdc

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

ClubService.API/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@
7777
var logger = services.GetRequiredService<ILoggerService<Program>>();
7878
logger.LogDuplicateSeedData();
7979
}
80-
80+
8181
await readStoreDbContext.Database.EnsureDeletedAsync();
8282
await readStoreDbContext.Database.EnsureCreatedAsync();
83-
83+
8484
await loginStoreDbContext.Database.EnsureDeletedAsync();
8585
await loginStoreDbContext.Database.EnsureCreatedAsync();
8686
}

ClubService.API/appsettings.DockerDevelopment.json

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"SmtpConfiguration": {
2929
"Host": "localhost",
3030
"Port": "1025",
31+
"SenderEmailAddress": "[email protected]",
3132
"PollingInterval": "10"
3233
},
3334
"Logging": {

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,30 @@ TennisClub "1" --> "*" Member
4949
Admin "*" --> "1" TennisClub
5050
```
5151

52+
## How to run
53+
54+
### Docker-compose
55+
Navigate to project root and execute:\
56+
`docker compose build`\
57+
`docker compose up`
58+
59+
The swagger-ui is available at:\
60+
`http://localhost:5000/swagger/index.html`
61+
62+
### Kubernetes
63+
Navigate to project root and execute:\
64+
`kubectl apply -R -f deployments`
65+
66+
To delete all instances execute:\
67+
`kubectl delete -R -f deployments`
68+
69+
Our service is of course only available through the API Gateway (see documentation in API Gateway), to get the IP and Port
70+
of the API gateway the following command can be executed:\
71+
`minikube service <api-gateway-service-name> --url`
72+
73+
IP and Port can then be used to view the swagger-ui:\
74+
`http://<ip>:<port>/q/swagger-ui/#/`
75+
5276
## Login
5377

5478
In our application we distinguish between `Members`, `Admins`, and `Supervisors`. All of them are accounts that users of the application can login with.

0 commit comments

Comments
 (0)