Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ltfschoen/beacon

Visualisations using Infura's Beta of the Ethereum 2.0 Beacon Chain API
https://github.com/ltfschoen/beacon

eth2-beacon-chain ethereum heroku ssr webpack4

Last synced: 16 days ago
JSON representation

Visualisations using Infura's Beta of the Ethereum 2.0 Beacon Chain API

Awesome Lists containing this project

README

        

## Beacon

**Objective:** Beacon chain visualisation

**Screenshot:**
![Screenshot](./screenshot.png)

### Develop Environment

Clone the repository, install Yarn and Node.js, and then run the following in terminal:
```
yarn &&
yarn run dev
```

* Go to http://localhost:3000

### Deploy to Heroku

* Start
```
heroku login
heroku apps:create
git push -f heroku master
heroku local web
heroku ps:scale web=1:free
heroku ps
heroku open
heroku logs --tail
heroku restart
```

* Set Environment Variables

Use the environment variables from the .env file

```
heroku config:set KEY1=VALUE1 KEY2=VALUE2
```

* Stop
```
heroku ps:stop web
```

* Scale up dynos
```
heroku ps:scale web=2:standard-2x
```

* Scale down dynos
```
heroku ps:scale web=1:free
```

* Fees - https://devcenter.heroku.com/articles/usage-and-billing
* Scaling help - https://devcenter.heroku.com/articles/scaling

## Troubleshooting

* If you get an unknown type error, then it may be necessary to update polkadot-js/api dependency in package.json, since it is constantly evolving.

* To kill a frozen process
```
ps -ef | grep node
kill -9
```

### References:

* [Migrate to SSR](https://dev.to/kedar9/creating-a-node-app-with-react-webpack-4-babel-7-express-and-sass-3mae)