feat: remove gen_router, add gen_auth command#51
Merged
Taure merged 6 commits intonovaframework:masterfrom Feb 24, 2026
Merged
Conversation
The rebar3 new nova template always creates a router, so a separate generator is unnecessary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Scaffolds a complete email/password authentication system into a Nova app: migration, schemas, accounts context, security callback, controllers, and CT test suite. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Both openapi.json and swagger.html now default to priv/assets/ relative to the app directory, making them easy to serve from a Nova static route. The swagger UI spec URL is now relative so it works from any serving path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The branch protection requires a check named "build" but the custom name field caused it to report as "OTP 28.0 / rebar3 3.26.0". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
gen_routercommand (therebar3 new novatemplate already creates a router)rebar3 nova gen_auth— scaffolds a complete email/password JSON API authentication system into a Nova appThe generator creates 9 files: Kura migration, user/token schemas, accounts context, security callback, session/registration/user controllers, and a CT test suite. Prints route snippets and setup instructions to stdout.
Generated API endpoints
Test plan
rebar3 compile— cleanrebar3 xref— cleanrebar3 dialyzer— no new warningsrebar3 nova gen_authin a fresh Nova app — all 9 files generated🤖 Generated with Claude Code