Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ltfschoen/beacon
- Owner: ltfschoen
- License: gpl-3.0
- Created: 2020-07-12T02:22:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T23:20:51.000Z (almost 3 years ago)
- Last Synced: 2024-10-19T16:02:41.322Z (2 months ago)
- Topics: eth2-beacon-chain, ethereum, heroku, ssr, webpack4
- Language: JavaScript
- Homepage: https://eth2.herokuapp.com
- Size: 909 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)