Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krake747/krake
Krake .NET Backend
https://github.com/krake747/krake
csharp docker dotnet fsharp sql
Last synced: about 2 months ago
JSON representation
Krake .NET Backend
- Host: GitHub
- URL: https://github.com/krake747/krake
- Owner: krake747
- License: mit
- Created: 2024-01-01T10:58:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-15T19:02:11.000Z (6 months ago)
- Last Synced: 2024-10-20T01:52:55.450Z (3 months ago)
- Topics: csharp, docker, dotnet, fsharp, sql
- Language: C#
- Homepage: https://krake747.github.io/krake-angular
- Size: 813 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Krake
Krake Angular Web Application Demo [krake-app](https://krake747.github.io/krake-angular/home)
## Modular Monolith Architecture
Building a modular monolith.
## Docker
### Certificates
In the Krake.Api project execute the following commands.
```bash
cd ./src/Krake.Api/
dotnet dev-certs https --clean
mkdir certificates
cd ./certificates
dotnet dev-certs https -ep cert.pfx -p Test1234!
dotnet dev-certs https --trust
```### Docker clean up script
```docker
docker compose down
docker build -f .\src\Krake.Api\Dockerfile -t krake.api .
docker image prune -f
docker compose up -d
```## User Secrets
For using Redis and KeyCloak on local development add a .NET UserSecrets file and paste the below into it.
```json
{
"ConnectionStrings": {
"RedisCache": "localhost:6379"
},
"Authentication": {
"Audience": "account",
"TokenValidationParameters": {
"ValidIssuers": [
"http://krake.identity:8080/realms/krake",
"http://localhost:18080/realms/krake"
]
},
"MetadataAddress": "http://localhost:18080/realms/krake/.well-known/openid-configuration",
"RequireHttpsMetadata": false
},
"KeyCloak": {
"HealthUrl": "http://localhost:18080/health/"
}
}
```## Krake.Api Integration Support for Docker
```bash
docker compose up -d krake.database.sql krake.redis krake.seq
docker compose up -d krake.database.sql.migrator krake.database.sql.seed.testing
docker compose up -d krake.api
```Build API image after database is up and running
```bash
docker build -f ./src/Krake.Api/Dockerfile -t kkraemer747/krake.api:latest --network host .
```