leptos/examples/hackernews_js_fetch
2023-10-11 16:45:48 -04:00
..
public feat: add JS Fetch integration support (#1554) 2023-09-25 07:51:25 -04:00
src chore: clean up style and bring into line with other hackernews examples 2023-10-11 16:45:48 -04:00
Cargo.toml chore: clean up style and bring into line with other hackernews examples 2023-10-11 16:45:48 -04:00
deno.jsonc feat: add JS Fetch integration support (#1554) 2023-09-25 07:51:25 -04:00
deno.lock feat: add JS Fetch integration support (#1554) 2023-09-25 07:51:25 -04:00
index.html feat: add JS Fetch integration support (#1554) 2023-09-25 07:51:25 -04:00
LICENSE feat: add JS Fetch integration support (#1554) 2023-09-25 07:51:25 -04:00
Makefile.toml feat: add JS Fetch integration support (#1554) 2023-09-25 07:51:25 -04:00
README.md feat: add JS Fetch integration support (#1554) 2023-09-25 07:51:25 -04:00
run.ts feat: add JS Fetch integration support (#1554) 2023-09-25 07:51:25 -04:00

Leptos Hacker News Example with Axum

This example uses the basic Hacker News example as its basis, but shows how to run the server side as WASM running in a JS environment. In this example, Deno is used as the runtime.

Client Side Rendering

To run it as a Client Side App, you can issue trunk serve --open in the root. This will build the entire app into one CSR bundle. Make sure you have trunk installed with cargo install trunk.

Server Side Rendering with Deno

To run the Deno version, run

deno task build
deno task start