Skip to content

Commit

Permalink
Merge pull request #270 from THC-Software/documentation
Browse files Browse the repository at this point in the history
Fixed appsettings.DockerDevelopment.json and updated README.md
  • Loading branch information
Essiga authored Jul 11, 2024
2 parents 4d0be9c + 348cdc6 commit 002dfdc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ClubService.API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
var logger = services.GetRequiredService<ILoggerService<Program>>();
logger.LogDuplicateSeedData();
}

await readStoreDbContext.Database.EnsureDeletedAsync();
await readStoreDbContext.Database.EnsureCreatedAsync();

await loginStoreDbContext.Database.EnsureDeletedAsync();
await loginStoreDbContext.Database.EnsureCreatedAsync();
}
Expand Down
1 change: 1 addition & 0 deletions ClubService.API/appsettings.DockerDevelopment.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"SmtpConfiguration": {
"Host": "localhost",
"Port": "1025",
"SenderEmailAddress": "[email protected]",
"PollingInterval": "10"
},
"Logging": {
Expand Down
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <api-gateway-service-name> --url`

IP and Port can then be used to view the swagger-ui:\
`http://<ip>:<port>/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.
Expand Down

0 comments on commit 002dfdc

Please sign in to comment.