Add local mode startup task and update development documentation#37
Open
GustavPersson wants to merge 2 commits intoeliasson:mainfrom
Open
Add local mode startup task and update development documentation#37GustavPersson wants to merge 2 commits intoeliasson:mainfrom
GustavPersson wants to merge 2 commits intoeliasson:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the stuff I had to do in order to run locally, and then Claude going absolutely wild on a PR summary
Summary
LocalUserStartupTaskthat automatically provisions a default user when running in local development modeLocal Mode Startup Task
The backend now reads the
LocalModeconfiguration flag and conditionally registers a newLocalUserStartupTask. This task runs at application startup whenLocalModeistrue, ensuring a default local user is available without requiring manual setup through the admin UI.Changes:
LocalUserStartupTask.cs(new) — ImplementsIStartupTaskto provision a default local user on startupStartupTaskConfiguration.cs—RegisterStartupTasks()now accepts abool localModeparameter; whentrue, it registersLocalUserStartupTaskalongside the existingInitialUserStartupTaskStartup.cs— ReadsLocalModefromIConfigurationand passes it intoRegisterStartupTasks(localMode). Also removes the deprecatedEnableEndpointRouting = falseoption fromAddControllers()StartupTaskConfigurationTest.cs— Adds a new test (ItShouldRegisterLocalUserStartupTaskInLocalMode) verifying thatLocalUserStartupTaskis registered whenlocalModeistrue, and updates the existing test to explicitly passlocalMode: falseDocumentation Updates
The existing developer documentation was outdated — it referenced old paths, deprecated CLI commands, and omitted critical setup steps (frontend build, symlink). These changes bring the docs in line with the current monorepo layout and toolchain.
docs/getting-started.mdservice/andtools/directory structure (e.g.src/Quarter/→service/src/Quarter/,docker/→tools/docker/)npm ci && gleam build && npm run build) and creating the dist symlink (ln -s ../../dist service/src/Quarter/dist)npm run watchfor development hot-reloadingappsettings.jsonandappsettings.Development.jsonREADME.mddocker-compose+dotnetquickstart with a complete step-by-step covering PostgreSQL, frontend build, symlink creation, and backend build/rundocker-compose→docker compose(modern Docker CLI syntax)docs/authentication.mdApplication.LocalMode→LocalModeservice/src/Quarter/appsettings.json)