Upgrade example/recipe_server to end-to-end demo of new pattern #57
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_rpc#57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
The
example/recipe_server/is the in-tree reference for hero_rpc users. Today it predates the current standards and won't passlab infocheck. Upgrade it to be the end-to-end demo of the new scaffold-then-generate flow.Scope
After the scaffold (#scaffold-full-service-repo) and codegen-alignment (#codegen-alignment) issues land, regenerate
example/recipe_server/from scratch using:Result should include:
hero_recipes_server,hero_recipes_sdk,hero_recipes_admin,hero_recipes_examplescrates.service.tomlat each binary crate root (generated, not hand-edited).build.rsper binary reduced to ≤5 lines.hero_recipes_examples(no hand-rolled client)._adminbinary serving the framework default screens atadmin.sock+ a recipes-specific page.RecipeServiceTraitimpl demonstrating both a CRUD-only method and a custom business-logic method.cargo buildregenerates, 4)lab service recipes --startto run it.Stretch — AI-driven narrative
Document (and ideally script) the flow:
hero_rpc scaffoldwith the user's name + schema.cargo build(which triggers codegen) andlab infocheckuntil clean.This is the example that makes hero_rpc tangible for both humans and agents — referenced by the new context skill.
Acceptance
cd example/recipe_server && cargo build && lab infocheckall succeed cleanly.lab service recipes --startworks andcurl --unix-socket .../rpc.sock /healthreturns ok.petstore_server/petstore_clientexamples are either deleted (if redundant) or kept with a note explaining when each pattern applies.Depends on
_admincrate to wire cleanly)hero_rpc scaffold) #54Parent / context tracker: hero_skills#262 — read it before starting work on this issue. Locked decisions, reference materials, and execution order live there. Iterate via comments here; consolidation passes on the body only after feedback settles.
State refresh
Pulled latest.
example/recipe_server/build.rsis unchanged (still 42 lines, hand-rolled rustfmt pass, hand-listed output paths). Upgrade work in this issue is still entirely pending.Still depends on #54, #55, #56 landing first.