From 7706bcf3a335b62e03166af17d863006831346bc Mon Sep 17 00:00:00 2001 From: Connor King Date: Sat, 23 Sep 2023 08:35:33 -0400 Subject: [PATCH] Say something about `trunk serve` at the top (#3394) * Say something about `trunk serve` at the top I was following this guide and did `cargo run` instead of `trunk serve` and was very confused * Remove blank line to make Prettier happy --- .../version-0.20/getting-started/build-a-sample-app.mdx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/versioned_docs/version-0.20/getting-started/build-a-sample-app.mdx b/website/versioned_docs/version-0.20/getting-started/build-a-sample-app.mdx index 996bd3f4a..b2ff96337 100644 --- a/website/versioned_docs/version-0.20/getting-started/build-a-sample-app.mdx +++ b/website/versioned_docs/version-0.20/getting-started/build-a-sample-app.mdx @@ -8,12 +8,18 @@ the boilerplate needed for a basic Yew app or manually set up a small project. ## Using a starter template Install [`cargo-generate`](https://github.com/cargo-generate/cargo-generate) by following their installation instructions -then run the following command: +then run the following commands: ```shell cargo generate --git https://github.com/yewstack/yew-trunk-minimal-template ``` +Change directory into your newly created project, then: + +``` +trunk serve +``` + ## Setting up the application manually ### Create Project