Repository navigation
docs(repo): add a shop example workspace - #28
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
fr3shw3b
force-pushed
the
feat/agent-mode
branch
from
November 16, 2026 23:00
759bfad to
4908572
Compare
fr3shw3b
force-pushed
the
feat/example-shop
branch
from
November 16, 2026 23:00
6a9278e to
f7a5d99
Compare
fr3shw3b
force-pushed
the
feat/agent-mode
branch
from
November 16, 2026 23:03
4908572 to
140da01
Compare
fr3shw3b
force-pushed
the
feat/example-shop
branch
from
November 16, 2026 23:03
f7a5d99 to
d969e06
Compare
fr3shw3b
force-pushed
the
feat/agent-mode
branch
from
November 16, 2026 23:13
140da01 to
7f30704
Compare
fr3shw3b
force-pushed
the
feat/example-shop
branch
2 times, most recently
from
November 16, 2026 23:24
aa761fa to
db77f88
Compare
fr3shw3b
force-pushed
the
feat/agent-mode
branch
from
November 16, 2026 23:24
7f30704 to
99092ea
Compare
fr3shw3b
force-pushed
the
feat/example-shop
branch
from
November 17, 2026 00:02
db77f88 to
60955c0
Compare
fr3shw3b
force-pushed
the
feat/agent-mode
branch
from
November 17, 2026 00:02
99092ea to
35baabd
Compare
fr3shw3b
force-pushed
the
feat/example-shop
branch
from
November 17, 2026 00:44
60955c0 to
3acd0cb
Compare
fr3shw3b
force-pushed
the
feat/agent-mode
branch
from
November 17, 2026 00:44
35baabd to
3264f46
Compare
fr3shw3b
force-pushed
the
feat/example-shop
branch
from
November 17, 2026 00:57
3acd0cb to
ecda225
Compare
fr3shw3b
force-pushed
the
feat/agent-mode
branch
from
November 17, 2026 00:57
3264f46 to
0ffe44a
Compare
fr3shw3b
force-pushed
the
feat/example-shop
branch
from
November 17, 2026 07:35
ecda225 to
984088f
Compare
fr3shw3b
force-pushed
the
feat/agent-mode
branch
from
November 17, 2026 07:35
0ffe44a to
7688ba7
Compare
fr3shw3b
force-pushed
the
feat/example-shop
branch
from
November 17, 2026 07:42
984088f to
afacf10
Compare
fr3shw3b
force-pushed
the
feat/agent-mode
branch
2 times, most recently
from
November 17, 2026 08:17
97be611 to
b5ab71b
Compare
fr3shw3b
force-pushed
the
feat/example-shop
branch
from
November 17, 2026 08:17
afacf10 to
92779f6
Compare
fr3shw3b
force-pushed
the
feat/agent-mode
branch
from
November 17, 2026 08:30
b5ab71b to
f6498e6
Compare
fr3shw3b
force-pushed
the
feat/example-shop
branch
2 times, most recently
from
November 17, 2026 09:00
571e105 to
3b23163
Compare
fr3shw3b
force-pushed
the
feat/agent-mode
branch
from
November 17, 2026 09:00
f6498e6 to
0de81a8
Compare
fr3shw3b
force-pushed
the
feat/example-shop
branch
3 times, most recently
from
November 17, 2026 09:36
26774b1 to
a48cc95
Compare
examples/shop runs Postgres, a migrate init task, a seed init task, an API and a web app, served over HTTPS on *.shop.local. It shows init tasks in a dependency chain, an extraCompose file with a health check, readiness probes and service discovery through LO1_SERVICE_*_PROXY_URL. The seed truncates before inserting, so `lo1 restart seed` resets the data. A CLI test validates every example's lo1.yaml and dependency graph.
fr3shw3b
force-pushed
the
feat/example-shop
branch
from
November 17, 2026 09:41
a48cc95 to
e31c2ea
Compare
|
Each module now has one job and is given its dependencies: config is read once, a router dispatches from a table of routes, a repository holds all the product SQL, migrations are numbered and recorded so each runs once, and the server files only wire things together. The web app serves static files with a content security policy and renders with textContent. The API is tested against a throwaway Postgres started from api/test/compose.yaml, each test file in its own schema, and both services' tests go over real HTTP.
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
Base:
feat/agent-mode(#27). Retarget tomainonce the earlier PRs merge. It depends on #22 for init tasks that block their layer.Adds
examples/shop, a ready-to-run workspace for the quick start:migrateinstalls the API's dependencies and creates the table;seedtruncates and inserts, solo1 restart seedresets the data.node:http+pg) has a/healthreadiness probe; the web app readsLO1_SERVICE_API_PROXY_URLto call the API from the browser.api.shop.localandweb.shop.local.npx degit newstack-cloud/lo1/examples/shop shop,lo1 upand commands to try.examples/*/lo1.yamland builds its dependency graph, so CI catches an example that stops validating.Testing
Ran the example against Docker with the built CLI (hosts and CA steps stubbed to avoid touching
/etc/hosts). It was ready in 4.1s (infrastructure 2.4s · services 1.7s), and the API returned the seeded products over HTTPS through the proxy.lo1 statusreported healthy (exit 0). After deleting a row,lo1 restart seedrestored all three products, andlo1 downleft no containers.