-
Notifications
You must be signed in to change notification settings - Fork 686
Quickstart bun #4154
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
base: master
Are you sure you want to change the base?
Quickstart bun #4154
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This largely looks good. I left two nit comments which I'd like to address before merging if you agree.
One major comment though, have you tested/walked through the quickstart yourself? I see that this uses bun native websockets, I'd like to make sure that works for sure.
Yep, I have tested the quickstarts and they work on my end. |
Description of Changes
Adds a Bun quickstart template and documentation for SpacetimeDB.
Template (
templates/bun-ts/)spacetimedb/src/index.ts)src/main.ts)Bun.file(),Bun.write()) for token persistencesrc/module_bindings/Documentation (
docs/docs/00100-intro/00200-quickstarts/00250-bun.md)spacetime dev --template bun-tsSPACETIMEDB_HOST,SPACETIMEDB_DB_NAME).envsupport)Consistency
HOST/DB_NAMEnaming convention as other quickstartsAPI and ABI breaking changes
None.
Expected complexity level and risk
1 - Additive change only. New template and documentation, no modifications to existing functionality.
Testing
spacetime dev --template bun-ts my-bun-appand verify app starts