https://github.com/krake747/krake
Krake .NET Backend
https://github.com/krake747/krake
csharp docker dotnet fsharp sql
Last synced: 6 days 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-22T19:24:00.000Z (7 months ago)
- Last Synced: 2025-04-05T20:26:55.366Z (3 months ago)
- Topics: csharp, docker, dotnet, fsharp, sql
- Language: C#
- Homepage: https://krake747.github.io/krake-angular
- Size: 823 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 .
```