leptos/examples/todo-app-sqlite
Greg Johnston 6cf5d0a403 `<Route element=...` => `view=...` 2022-12-22 20:54:52 -05:00
..
migrations Initial version of todo app with sqlite 2022-11-18 13:25:12 -05:00
src `<Route element=...` => `view=...` 2022-12-22 20:54:52 -05:00
.gitignore Updating `todo-app-sqlite` example (todo: fix hydration) 2022-12-19 16:25:24 -05:00
Cargo.toml `actix-web` integration with builtin server function handler route 2022-11-20 15:25:45 -05:00
LICENSE Initial version of todo app with sqlite 2022-11-18 13:25:12 -05:00
README.md Optimistic UI 2022-11-18 14:58:10 -05:00
Todos.db Initial version of todo app with sqlite 2022-11-18 13:25:12 -05:00
style.css `render_app_to_stream` helper in `leptos_actix` 2022-11-20 16:03:08 -05:00

README.md

Leptos Counter Isomorphic Example

This example demonstrates how to use a server functions and multi-actions to build a simple todo app.

Server Side Rendering With Hydration

To run it as a server side app with hydration, first you should run

wasm-pack build --target=web --no-default-features --features=hydrate

to generate the Webassembly to provide hydration features for the server. Then run the server with cargo run to serve the server side rendered HTML and the WASM bundle for hydration.

cargo run

Note that if your hydration code changes, you will have to rerun the wasm-pack command above This should be temporary, and vastly improve once cargo-leptos becomes ready for prime time!