docs: update the docs
This commit is contained in:
1 parent
c7d001cbb4
commit
c0e0196a67
23 files changed
+536
-108
No files matched your search
@@ -11,3 +11,13 @@ So far, we've covered the basics of Dioxus. We've talked about:
|
||||
|
||||
In this chapter, we'll build a real-world weather app that combines everything we've learned into a cute application that you can run locally. It'll let us monitor different locations simultaneously and periodically check for updates.
|
||||
|
||||
The app is running on the web [here]() but is also available:
|
||||
|
||||
- as a desktop app
|
||||
- a mobile app
|
||||
- and as an API endpoint here
|
||||
|
||||

|
||||
|
||||
|
||||
Let's get started! Head on to the next chapter where we create our app.
|
||||
@@ -1 +1,34 @@
|
||||
# New app
|
||||
|
||||
To get started, let's create a new Rust project for our app.
|
||||
|
||||
```shell
|
||||
$ cargo new --bin weatherapp
|
||||
$ cd weatherapp
|
||||
```
|
||||
|
||||
Make sure our project builds by default
|
||||
|
||||
```shell
|
||||
$ cargo run
|
||||
|
||||
Compiling weatherapp v0.1.0
|
||||
Finished dev [unoptimized + debuginfo] target(s) in 0.41s
|
||||
Running `target/debug/weatherapp`
|
||||
Hello, world!
|
||||
```
|
||||
|
||||
## Adding Dioxus Desktop as a dependency
|
||||
|
||||
We can either edit our Cargo.toml directly:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
dioxus = { version = "*", features = ["desktop"]}
|
||||
```
|
||||
|
||||
or use `cargo-edit` to add it via the CLI:
|
||||
|
||||
```shell
|
||||
$ cargo add dioxus --features desktop
|
||||
```
|
||||
Reference in new issue
Block a user