leptos/examples/hackernews_islands_axum
2024-08-10 20:01:41 -04:00
..
.cargo feat: experimental islands (#1660) 2023-09-08 16:33:00 -04:00
public feat: experimental islands (#1660) 2023-09-08 16:33:00 -04:00
src examples: update to Suspend::new() 2024-08-01 19:42:51 -04:00
Cargo.toml chore: upgrade dependencies (#2765) 2024-08-10 20:01:41 -04:00
Dockerfile feat: experimental islands (#1660) 2023-09-08 16:33:00 -04:00
index.html feat: experimental islands (#1660) 2023-09-08 16:33:00 -04:00
LICENSE feat: experimental islands (#1660) 2023-09-08 16:33:00 -04:00
Makefile.toml feat: Add Compression to Hacker News w/ Islands Example (#2613) 2024-06-28 15:01:05 -04:00
README.md feat: Add Compression to Hacker News w/ Islands Example (#2613) 2024-06-28 15:01:05 -04:00
rust-toolchain.toml chore(ci): run all examples under stable and fix remaining linting issue (#2503) 2024-04-05 16:09:23 -04:00
style.css feat: experimental islands (#1660) 2023-09-08 16:33:00 -04:00

Leptos Hacker News Example with Axum

This example creates a basic clone of the Hacker News site. It showcases Leptos' ability to:

  • Create a client-side rendered app
  • Create a server side rendered app with hydration
  • Precompress static assets and bundle those in with the server binary

This repo differs from the main Hacker News example by using Axum as it's server, precompressing and embedding static assets into the binary, and dynamically compressing the generated HTML.

Getting Started

See the Examples README for setup and run instructions.

Quick Start

Run cargo leptos watch --release -P to run this example.