Files
step3/README.md
T

44 lines
770 B
Markdown

# STEP 3 Arcade
Godot study game with a bundled ASP.NET Core Questions API.
## Local API
Run the Questions API:
```powershell
dotnet run --project api/QuestionsApi/QuestionsApi.csproj
```
For deployed environments, set these as environment variables:
```text
MongoDB__ConnectionString
MongoDB__DatabaseName
Jwt__Key
Jwt__Issuer
Jwt__Audience
```
Default local endpoint:
```text
http://localhost:5008/api/questions/search
```
The Godot client reads this from `project.godot`:
```text
step3/questions_api_url
```
## Push Build
`.github/workflows/questions-api.yml` builds and publishes the Questions API Docker image to GitHub Container Registry on pushes to `main`.
Set deployment hosting to consume:
```text
ghcr.io/<owner>/<repo>/questions-api:latest
```