https://github.com/mokshit06/dioxus-app
Trying out Dioxus with SSR+Hydration
https://github.com/mokshit06/dioxus-app
Last synced: 3 months ago
JSON representation
Trying out Dioxus with SSR+Hydration
- Host: GitHub
- URL: https://github.com/mokshit06/dioxus-app
- Owner: Mokshit06
- Created: 2022-05-16T19:15:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-16T19:15:39.000Z (about 3 years ago)
- Last Synced: 2025-01-29T17:11:24.058Z (4 months ago)
- Language: Rust
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dioxus SSR + Hydration
Trying out making dioxus ssr and hyration work in a single app
- The `app` crate is the shared crate that exposes an `App` fn that contains the rendering + app logic
- The `web` crate bundles the assets + styles and wasm required for client interaction.
- The `ssr` crate contains the server logic and the handler required for rendering the app.## Usage
- in one terminal session build the wasm output in watch mode using trunk:
```bash
cd crates/web && trunk watch
```
- in another terminal session start the server
```bash
cd crates/ssr && cargo run
```
- open the app in your browser on the port showed by rocket (usually 8080)