From a483203f659957920b07aa2f9d2759bf240e8e6a Mon Sep 17 00:00:00 2001 From: Tamaro Skaljic <49238587+tamaro-skaljic@users.noreply.github.com> Date: Tue, 18 Mar 2025 21:40:31 +0100 Subject: [PATCH] fix wrong quote usage and copy the "start the server" section from c# quickstart to rust quickstart #41 --- docs/modules/rust/quickstart.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/modules/rust/quickstart.md b/docs/modules/rust/quickstart.md index 0670bb89..b9158b69 100644 --- a/docs/modules/rust/quickstart.md +++ b/docs/modules/rust/quickstart.md @@ -224,11 +224,15 @@ pub fn identity_disconnected(ctx: &ReducerContext) { } ``` +## Start the Server + +If you haven't already started the SpacetimeDB server, run the `spacetime start` command in a _separate_ terminal and leave it running while you continue following along. + ## Publish the module And that's all of our module code! We'll run `spacetime publish` to compile our module and publish it on SpacetimeDB. `spacetime publish` takes an optional name which will map to the database's unique `Identity`. Clients can connect either by name or by `Identity`, but names are much more user-friendly. If you'd like, come up with a unique name that contains only URL-safe characters (letters, numbers, hyphens and underscores), and fill it in where we've written `quickstart-chat`. -From the `quickstart-chat` directory, run: +From the `quickstart-chat` directory, run in another tab: ```bash spacetime publish --project-path server quickstart-chat @@ -239,7 +243,7 @@ spacetime publish --project-path server quickstart-chat You can use the CLI (command line interface) to run reducers. The arguments to the reducer are passed in JSON format. ```bash -spacetime call quickstart-chat send_message 'Hello, World!' +spacetime call quickstart-chat send_message "Hello, World!" ``` Once we've called our `send_message` reducer, we can check to make sure it ran by running the `logs` command.