git clone https://github.com/guibranco/grimoire-api.git
cd grimoire-api
dotnet run --project src/Grimoire.Api \--Management:AdminApiKey="your-admin-key"\--Encryption:MasterKey="your-32-char-minimum-master-key!!"
The API starts on http://localhost:5000 by default (or the port configured by ASPNETCORE_URLS).
Building from source
1
2
3
4
5
6
7
8
9
10
11
12
13
14
git clone https://github.com/guibranco/grimoire-api.git
cd grimoire-api
# Restore and build all projects
dotnet restore
dotnet build --configuration Release
# Run database migrations (creates grimoire.db)
dotnet ef database update \--project src/Grimoire.Infrastructure \--startup-project src/Grimoire.Api
# Start the API
dotnet run --project src/Grimoire.Api --configuration Release
Health check
All deployment methods expose a health endpoint:
1
GET /health → 200 OK {"status":"ok","time":"...","database":{"status":"ok"}}
This is used by Docker’s built-in health check and by the Testcontainers wait strategy in E2E tests.