https://github.com/ivanceras/hackernews-sauron
A fast, resilient, isomorphic hacker news clone in ~1k lines of rust.
https://github.com/ivanceras/hackernews-sauron
Last synced: 6 months ago
JSON representation
A fast, resilient, isomorphic hacker news clone in ~1k lines of rust.
- Host: GitHub
- URL: https://github.com/ivanceras/hackernews-sauron
- Owner: ivanceras
- License: mit
- Created: 2021-08-17T03:49:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-16T22:13:23.000Z (over 1 year ago)
- Last Synced: 2025-07-22T10:44:28.824Z (6 months ago)
- Language: Rust
- Size: 369 KB
- Stars: 120
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - hackernews-sauron
README
# 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

[Online demo](http://66.42.53.165)