An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

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

![Screenshot](https://raw.githubusercontent.com/ivanceras/hackernews-sauron/master/client/assets/screenshot-hn-clone.png)

[Online demo](http://66.42.53.165)