Repository navigation
Add a TanStack Start guestbook example, deployed from GitHub on main - #16
Merged
Merged
Conversation
Based on the TanStack template the Base44 builder seeds. A GitHub workflow installs dependencies and runs `base44 deploy -y --build --git-hash $GITHUB_SHA` with a workspace API key on every push to main that touches the app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tmb4PCrrV2SLRpBjkGAgXJ
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
Adds
tanstack-start/, a server-rendered guestbook built on the TanStack Start template the Base44 builder seeds, and a workflow that deploys it with the Base44 CLI on every push tomain.GuestbookEntryentity: anyone can read and sign; only admins can edit or delete entries.src/lib/server-fns.js, one to list entries and one to sign (input checked with zod). Both run as the visitor, so the entity's access rules apply..github/workflows/deploy-tanstack-start.ymlruns on pushes tomainthat touchtanstack-start/, and can also be started by hand.npm ci, installsbase44@0.2.0, thenbase44 deploy -y --build --git-hash "$GITHUB_SHA".--buildputs the app ID into the build.--git-hashdeploys by the commit; a full-stack build needs it (base44/cli#643).Setup before the first run
In Settings → Secrets and variables → Actions, add:
BASE44_API_KEYb44k_…)TANSTACK_START_APP_IDTesting
npm ciandnpm run buildsucceed. They producedist/client,dist/serverand.wrangler/deploy/config.json.base44/config.jsoncand the entity, including its access rules.base44 devfor TanStack apps depends on base44/cli#659, which hasn't merged yet.Generated by Claude Code