mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-24 05:03:06 +00:00
Merge pull request #300 from mrxiaozhuox/patch-3
Change Docs - `trunk` to `dioxus-cli`
This commit is contained in:
commit
a10e3ef949
1 changed files with 4 additions and 4 deletions
|
@ -2,9 +2,9 @@
|
||||||
Before we start utilizing Dioxus Router, we need to initialize a Dioxus web application.
|
Before we start utilizing Dioxus Router, we need to initialize a Dioxus web application.
|
||||||
|
|
||||||
#### Required Tools
|
#### Required Tools
|
||||||
If you haven't already, make sure you install the [trunk](https://trunkrs.dev/) build tool and the rust ``wasm32-unknown-unknown`` target:
|
If you haven't already, make sure you install the [dioxus-cli](https://dioxuslabs.com/nightly/cli/) build tool and the rust ``wasm32-unknown-unknown`` target:
|
||||||
```
|
```
|
||||||
$ cargo install trunk
|
$ cargo install dioxus-cli
|
||||||
...
|
...
|
||||||
$ rustup target add wasm32-unkown-unknown
|
$ rustup target add wasm32-unkown-unknown
|
||||||
...
|
...
|
||||||
|
@ -60,9 +60,9 @@ fn app(cx: Scope) -> Element {
|
||||||
|
|
||||||
Our project is now setup! To make sure everything is running correctly, in the root of your project run:
|
Our project is now setup! To make sure everything is running correctly, in the root of your project run:
|
||||||
```
|
```
|
||||||
trunk serve
|
dioxus serve --platform web
|
||||||
```
|
```
|
||||||
Then head to [http://localhost:8080](http://localhost:8080) in your browser, and you should see ``Hello, wasm!`` on your screen.
|
Then head to [http://localhost:8080](http://localhost:8080) in your browser, and you should see ``Hello, wasm!`` on your screen.
|
||||||
|
|
||||||
#### Conclusion
|
#### Conclusion
|
||||||
We setup a new project with Dioxus and got everything running correctly. Next we'll create a small homepage and start our journey with Dioxus Router.
|
We setup a new project with Dioxus and got everything running correctly. Next we'll create a small homepage and start our journey with Dioxus Router.
|
||||||
|
|
Loading…
Reference in a new issue