mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
db1c15f4e4
* fix: fix web-sys warnings in server_fn * fix: update web-sys to 0.3.70 * fix: web-sys clipboard api in 0.3.70 |
||
---|---|---|
.. | ||
.cargo | ||
public | ||
src | ||
Cargo.toml | ||
Dockerfile | ||
index.html | ||
LICENSE | ||
Makefile.toml | ||
README.md | ||
rust-toolchain.toml | ||
style.css |
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.