docs: update the docs

This commit is contained in:
Jonathan Kelley committed 2021-12-26 14:22:40 -05:00
1 parent c7d001cbb4
commit c0e0196a67
23 files changed
+536 -108

No files matched your search

+10
View File
@@ -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
![Weather App Image](static/weather_app.png)
Let's get started! Head on to the next chapter where we create our app.
+33
View File
@@ -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
```