diff --git a/website/docs/getting-started/build-a-sample-app.mdx b/website/docs/getting-started/build-a-sample-app.mdx index eaae122882d..54e80e06b5e 100644 --- a/website/docs/getting-started/build-a-sample-app.mdx +++ b/website/docs/getting-started/build-a-sample-app.mdx @@ -8,12 +8,23 @@ 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 take the following steps: + +### Checkout and customize project ```shell cargo generate --git https://github.com/yewstack/yew-trunk-minimal-template ``` +### Run project + +```shell +trunk serve +``` + +> **Note** +Trunk [has a bug](https://github.com/trunk-rs/trunk/issues/852) on windows when `trunk serve` command fails. To workaround the issue you can run `trunk build` before running `trunk serve`. + ## Setting up the application manually ### Create Project diff --git a/website/versioned_docs/version-0.21/getting-started/build-a-sample-app.mdx b/website/versioned_docs/version-0.21/getting-started/build-a-sample-app.mdx index eaae122882d..e35b63ff7b3 100644 --- a/website/versioned_docs/version-0.21/getting-started/build-a-sample-app.mdx +++ b/website/versioned_docs/version-0.21/getting-started/build-a-sample-app.mdx @@ -8,12 +8,28 @@ 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 take the following steps: + +### Checkout and customize project ```shell cargo generate --git https://github.com/yewstack/yew-trunk-minimal-template ``` +### Build project + +This step is only needed when this guide has been run on Microsoft windows. + +```shell +trunk build +``` + +### Run project + +```shell +trunk serve +``` + ## Setting up the application manually ### Create Project