Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Server Side Rendering Example

⚠️ This example has some security vulnerabilities. Use at your own risk!

This example contains various crates that render the same app using different strategies. The app package contains the actual app.

Pre Rendered HTML with Client Side Hydration

This shows how to render web pages at compile time and hydrate them on first page load.

Packages

Run

cargo xtask serve

Then point your browser at http://127.0.0.1:8000/.

Client Side Rendering Only

Packages

Run

cd packages/client-side-rendered
trunk serve --open

Server Side Rending on Demand with Axum

Packages

Run

cd packages/axum-client
wasm-pack build --target=web 
cd ../axum-server
cargo run

Then point your browser at http://127.0.0.1:8080/