hackernews-sauron

所属分类:collect
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2023-06-12 10:14:39
上 传 者sh-1993
说明:  一个快速、有弹性、同构的黑客新闻克隆,约1000行锈迹。,
(A fast, resilient, isomorphic hacker news clone in ~1k lines of rust.,)

文件列表:
.dockerignore (40, 2023-06-12)
.heroku/ (0, 2023-06-12)
.heroku/run.sh (671, 2023-06-12)
.scripts/ (0, 2023-06-12)
.scripts/deploy.sh (242, 2023-06-12)
Cargo.toml (460, 2023-06-12)
Dockerfile (396, 2023-06-12)
LICENSE (1084, 2023-06-12)
Procfile (29, 2023-06-12)
TODO.md (883, 2023-06-12)
build.sh (125, 2023-06-12)
client/ (0, 2023-06-12)
client/Cargo.toml (822, 2023-06-12)
client/assets/ (0, 2023-06-12)
client/assets/screenshot-hn-clone.png (125145, 2023-06-12)
client/favicon.ico (12014, 2023-06-12)
client/favicon.svg (123, 2023-06-12)
client/index.html (778, 2023-06-12)
client/src/ (0, 2023-06-12)
client/src/app.rs (13122, 2023-06-12)
client/src/app/ (0, 2023-06-12)
client/src/app/content.rs (6471, 2023-06-12)
client/src/lib.rs (936, 2023-06-12)
client/src/util.rs (1574, 2023-06-12)
client/style.css (6707, 2023-06-12)
common/ (0, 2023-06-12)
common/Cargo.toml (757, 2023-06-12)
common/examples/ (0, 2023-06-12)
common/examples/fetch.rs (336, 2023-06-12)
common/src/ (0, 2023-06-12)
common/src/api.rs (5647, 2023-06-12)
common/src/lib.rs (78, 2023-06-12)
common/src/types.rs (5435, 2023-06-12)
rustfmt.toml (483, 2023-06-12)
serve-port-80.sh (194, 2023-06-12)
... ...

# Hackernews sauron A hacker news clone in ~1k lines of rust. This is using [sauron](https://github.com/ivanceras/sauron) web-framework. ## Feature - [X] Isomorphic - [X] Completely identical server-side rendered and client-side rendered - [X] No weird font jumping. - [X] Resilient - [X] Can work without javascript enabled. - [X] Can work without the page server*. - You can kill the server after the initial serve. - *Note: This will not work if both points of failure are encountered at the same time. ## Quickstart Prerequisite: ```sh cargo install wasm-pack ``` Compile and run ```sh git clone --depth=1 https://github.com/ivanceras/hackernews-sauron cd hackernews-sauron wasm-pack build client --release --target web cargo run --release --bin server ``` Navigate to http://localhost:3030 ![Screenshot](https://raw.githubusercontent.com/ivanceras/hackernews-sauron/master/client/assets/screenshot-hn-clone.png) [Online demo](http://66.42.53.165)

近期下载者

相关文件


收藏者