https://github.com/nikkolasg/drand-demo
demo website for drand
https://github.com/nikkolasg/drand-demo
Last synced: 3 months ago
JSON representation
demo website for drand
- Host: GitHub
- URL: https://github.com/nikkolasg/drand-demo
- Owner: nikkolasg
- Created: 2020-06-09T20:59:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-09T21:12:46.000Z (almost 5 years ago)
- Last Synced: 2025-01-06T19:35:35.035Z (5 months ago)
- Language: CSS
- Size: 178 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drand Web App
This is the source code of `drand`'s website, used to smartly present the outputs of the beacon and its network configuration. It comes with additional functionalities such as:
- Possibility to navigate through the randomness history,
- Verification of the generated randomness against the distributed key, using [drandjs](https://github.com/PizzaWhisperer/drandjs),
- First contacted node is randomly picked from the latest [configuration file](https://github.com/dedis/drand/blob/master/deploy/latest/group.toml) hosted on Github,
- User can choose which node of the group is contacted to fetch the randomness from.You can find a live example at [zerobyte.io](https://drand.zerobyte.io).
## Run it
#### Requirements
- [hugo](https://gohugo.io),
- local copy of the code, which can be downloaded with `go get -u github.com/drand/drand` or `git clone https://github.com/drand/drand`,
- an SSH setup compatible with https://gohugo.io/hosting-and-deployment/deployment-with-rsync/#install-ssh-key.#### Build
Start the web server on localhost:1313 by running:
```
make
```#### Deploy
There are two ways to deploy the website.
- Use `deploy.sh` script, which will ask for the user and host names compatible with your SSH setup, as well as the path on the server and the URL you want to deploy this website to. You can refer to the help menu to see how to use this script or more informations if you have some trouble identifying the parameters:
```
sh deploy.sh --help
```
.
- _(more advanced)_ Manually overwrite the `DEST` variable in the [makefile](https://github.com/dedis/drand/blob/web/web/Makefile#L2) with the path on your server and the `baseURL` in [config.toml](https://github.com/dedis/drand/blob/web/web/config.toml#L1) with your website's URL, then run:
```
make deploy
```## Other
Design by HTML5 UP under the [Creative Commons Attribution License 3.0](https://html5up.net/license)