Rsdk-13773: viam generate app command #5950
Draft
allisonschiang wants to merge 40 commits intoviamrobotics:mainfrom
Draft
Rsdk-13773: viam generate app command #5950allisonschiang wants to merge 40 commits intoviamrobotics:mainfrom
allisonschiang wants to merge 40 commits intoviamrobotics:mainfrom
Conversation
allisonschiang
commented
Apr 21, 2026
Member
|
`What doesn't work: local server - could not access the :8888 from my phone on the same address` I may be misunderstanding but this seems normal and expected? if it's a localhost address then it stands to reason that it wouldn't be accessible from a separate device. |
Member
Author
I assumed local server meant :8888 like 10.2.3.111:8888 and then if you enable it then anything on the same network your machine is running on (with the module) should be able to access the site |
Replace inlined HTTP server + cookie injection code with github.com/erh/vmodutils.NewWebModuleAndStart(). The vmodutils package is actively maintained and handles the server lifecycle. make setup fetches the latest vmodutils version via go get. Co-Authored-By: Claude Opus 4.6 (1M context) <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.
This PR adds app generation to the existing viam module generate command. The implementation is straightforward: a new huh form collects app-specific inputs(I split the form into module only forms, app only forms, then shared forms that run if you generate both), then templates (mostly adapted from the https://github.com/viamrobotics/sanding-webapp repo) are rendered into a project directory. I also added tests so if anything gets changed that breaks the webapp module, the tests should fail.
Tested:
To do:
Future Additions (maybe after this eng cycle?)