|
@@ -7,12 +7,13 @@ It is also very much usable as a template for your projects, if you're aiming to
|
|
|
|
|
|
## Try the example
|
|
## Try the example
|
|
|
|
|
|
-Make sure you have Dioxus CLI installed (if you're unsure, run `cargo install dioxus-cli`).
|
|
|
|
|
|
+Make sure you have Dioxus CLI installed (if you're unsure, run `cargo install dioxus-cli --locked`).
|
|
|
|
|
|
You can run `dx serve` in this directory to start the web server locally, or run
|
|
You can run `dx serve` in this directory to start the web server locally, or run
|
|
`dx build --release` to build the project so you can deploy it on a separate web-server.
|
|
`dx build --release` to build the project so you can deploy it on a separate web-server.
|
|
|
|
|
|
## Project Structure
|
|
## Project Structure
|
|
|
|
+
|
|
```
|
|
```
|
|
├── Cargo.toml
|
|
├── Cargo.toml
|
|
├── Dioxus.toml
|
|
├── Dioxus.toml
|
|
@@ -33,12 +34,12 @@ You can run `dx serve` in this directory to start the web server locally, or run
|
|
|
|
|
|
If you're just getting started with PWAs, here are some useful resources:
|
|
If you're just getting started with PWAs, here are some useful resources:
|
|
|
|
|
|
-* [PWABuilder docs](https://docs.pwabuilder.com/#/)
|
|
|
|
-* [MDN article on PWAs](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)
|
|
|
|
|
|
+- [PWABuilder docs](https://docs.pwabuilder.com/#/)
|
|
|
|
+- [MDN article on PWAs](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps)
|
|
|
|
|
|
For service worker scripting (in JavaScript):
|
|
For service worker scripting (in JavaScript):
|
|
|
|
|
|
-* [Service worker guide from PWABuilder](https://docs.pwabuilder.com/#/home/sw-intro)
|
|
|
|
-* [Service worker examples, also from PWABuilder](https://github.com/pwa-builder/pwabuilder-serviceworkers)
|
|
|
|
|
|
+- [Service worker guide from PWABuilder](https://docs.pwabuilder.com/#/home/sw-intro)
|
|
|
|
+- [Service worker examples, also from PWABuilder](https://github.com/pwa-builder/pwabuilder-serviceworkers)
|
|
|
|
|
|
If you want to stay as close to 100% Rust as possible, you can try using [wasi-worker](https://github.com/dunnock/wasi-worker) to replace the JS service worker file. The JSON manifest will still be required though.
|
|
If you want to stay as close to 100% Rust as possible, you can try using [wasi-worker](https://github.com/dunnock/wasi-worker) to replace the JS service worker file. The JSON manifest will still be required though.
|