-
Notifications
You must be signed in to change notification settings - Fork 295
demos: deploy TanStack DB starter example. #3634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3634 +/- ##
=======================================
Coverage 87.91% 87.91%
=======================================
Files 22 22
Lines 1820 1820
Branches 462 461 -1
=======================================
Hits 1600 1600
Misses 218 218
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
A simpler Quickstart based on the tanstack-db.web-starter and @electric-sql/start package: https://deploy-preview-3114--electric-next.netlify.app/docs/quickstart Relies on #3595 being finished and published and #3634 being merged and used to deploy the Quickstart demo.
✅ Deploy Preview for electric-next ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
6aa15c1 to
4d95374
Compare
|
Found 1 test failure on Blacksmith runners: Failure
|
This is a blocker for the new Quickstart, because we link to the deployed example.
Summary of Code Changes
The following files have been created or modified:
Created
examples/tanstack-db-web-starter/sst.config.ts- SST configuration for deploymentModified
examples/tanstack-db-web-starter/vite.config.ts- Added aws-lambda preset for Nitro (conditional on CI).github/workflows/deploy_examples.yml- Added quickstart to deployment workflow.github/workflows/deploy_all_examples.yml- Added quickstart to full deployment workflow.github/workflows/teardown_examples_pr_stack.yml- Added quickstart to teardown workflowManual Steps for Production Setup
These steps need to be performed once before the first production deployment.
1. Create Neon Database
2. Get Connection Strings
From the Neon console (https://console.neon.tech):
postgresql://neondb_owner:[email protected]/quickstart-production?sslmode=requirepostgresql://neondb_owner:[email protected]/quickstart-production?sslmode=require3. Apply Migrations
4. Register with Electric Cloud
Save the response! You'll need:
id→ This becomesQUICKSTART_SOURCE_IDsource_secret→ This becomesQUICKSTART_SOURCE_SECRET5. Generate Better Auth Secret
Save this value for
BETTER_AUTH_SECRET.6. Add GitHub Secrets and Variables
Go to GitHub repository settings → Secrets and variables → Actions
Secrets (Add these):
QUICKSTART_DATABASE_URIQUICKSTART_POOLED_DATABASE_URIQUICKSTART_SOURCE_SECRETsource_secretfrom Electric API response (step 4)BETTER_AUTH_SECRETVariables (Add these):
QUICKSTART_SOURCE_IDidfrom Electric API response (step 4)Verification
After deployment, verify: