leptos/examples/hackernews_js_fetch
Saber Haj Rabiee d50012f8d4
chore: update gloo-net and reqwest to http 1.0 (closes #2688) (leptos 0.6) (#2751)
2024-08-01 19:39:54 -04:00
..
public feat: add JS Fetch integration support (#1554) 2023-09-25 07:51:25 -04:00
src chore: update `hackernews_js_fetch` example to latest versions of `leptos` and `axum` 2024-06-02 15:39:01 -04:00
Cargo.toml chore: update gloo-net and reqwest to http 1.0 (closes #2688) (leptos 0.6) (#2751) 2024-08-01 19:39:54 -04:00
LICENSE feat: add JS Fetch integration support (#1554) 2023-09-25 07:51:25 -04:00
Makefile.toml ci(examples): build hackernews_js_fetch with deno (#2344) 2024-02-23 13:40:44 -05:00
README.md clean up for CI 2024-01-20 12:32:51 -05: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
run.ts feat: add JS Fetch integration support (#1554) 2023-09-25 07:51:25 -04:00
rust-toolchain.toml chore: update `hackernews_js_fetch` example to latest versions of `leptos` and `axum` 2024-06-02 15:39:01 -04:00

README.md

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.

NOTE: This example is slightly out of date pending an update to axum-js-fetch, which was waiting on a version of gloo-net that uses http 1.0. It still works with Leptos 0.5 and Axum 0.6, but not with the versions of Leptos (0.6 and later) that support Axum 1.0.

Server Side Rendering with Deno

To run the Deno version, run

deno task build
deno task start