Skip to content

Fixed appsettings.DockerDevelopment.json and updated README.md #270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading