Repository navigation
Ship the sample orders in backend/brewgo.db - #7
Merged
Merged
Conversation
A fresh clone now has 300 synthetic orders in SQLite, so a coding agent can build on real data without installing the Python packages or running the seed.
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
backend/brewgo.dbwith the sample order history: 300 synthetic orders and 40 customers, from 24 September to 23 October 2026. A fresh clone now has orders in SQLite, so a coding agent can build on real data right away, without the Python setup ornpm run seed:orders..gitignoreadds one exception,!backend/brewgo.db. All other*.db,*.db-shmand*.db-walfiles stay ignored. The database uses the normal journal mode, so it is one file.npm run seed:ordersstays for databases set byBREWGO_DB.spec.mdreads SQLite with the built-innode:sqlite, which works without a flag from Node.js 22.13.0 (doc,lib,src,test: unflag sqlite module nodejs/node#55890). Python 3.10+ stays, because the app's API needs it.The Braid Quickstart uses this: the reader clones BrewGo, creates
feat/admin-analytics, and asks the agent to followspec.md.Test plan
git switch -c feat/admin-analytics:backend/brewgo.dbis present.spec.mddoes (node:sqlite,readOnly: true,SELECT payload FROM orders ORDER BY id) with Node.js 24: 300 orders (273 completed, 17 cancelled, 10 refunded), all totals are integer cents, and the SHA-256 hash ofbrewgo.dbdoes not change.git statusstays clean after the read.npm run test:api: 24 passed. The tests use temporary databases and do not change the committed file.🤖 Generated with Claude Code