Some stuff I did:
- Installed spacetimedb via CLI /Users/carlo/.local/share/spacetime/data locally. Also adds
spacetimeto path.j - Mostly followed these docs: https://spacetimedb.com/docs/getting-started
spacetime start --listen-addr 0.0.0.0:8080To start the server in 8080.- After installing, follow these docs for Server Module (RS) vs Client Module (TS)
spacetime init --lang rust server
- I write the code with AI.
- Run the server with
spacetime logs my-pokemon-game - After making changes, add it to spacetime using
spacetime publish
-
From the root directory (i.e. When
beastbound/server, go tobeastbound). Run: -
spacetime publish --project-path server <database>(server is the dir where the rust module is, beastbound will be the 'database', assumes 3000). -
spacetime call <database> say_hello <if applicable, args>- try running a reducer -
spacetime logs <database>- Check logs after calling something -
spacetime describe --json <database>- see the schema. -
spacetime generate --lang typescript --out-dir client/src/module_bindings --project-path server- assuming you're in the root directory.