Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cypherglassdotcom/glass
Cypherglass Glass
https://github.com/cypherglassdotcom/glass
blockchain cypherglass eos eos-block-producer eos-blockchain eosio
Last synced: about 1 month ago
JSON representation
Cypherglass Glass
- Host: GitHub
- URL: https://github.com/cypherglassdotcom/glass
- Owner: cypherglassdotcom
- License: mit
- Created: 2018-07-05T08:31:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-14T05:00:31.000Z (over 5 years ago)
- Last Synced: 2024-01-25T03:03:31.005Z (11 months ago)
- Topics: blockchain, cypherglass, eos, eos-block-producer, eos-blockchain, eosio
- Language: JavaScript
- Homepage: https://glass.cypherglass.com
- Size: 764 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-eosio - cypherglassdotcom/glass - Official GitHub. (Block Producers / General)
README
# Glass
Bringing the transparency of EOS Bps!
## Structure
- bpwatcher: nodejs script that scrapes all the producers and bp.json files, and save it in mongodb
- backend: nodejs express webserver, serves data from mongodb
- frontend: application UI interface in ReactJS## Setup
1 - Setup bpwatcher to run every X minutes as a cronjob.
2 - Build backend and serve with pm2
3 - Build the frontend and serve it in your static webserver### Backend Setup
First time running `bpwatcher` prior the cronjob:
```
cd bpwatcher
npm install
node index.js
```First time install (setting up pm2)
```
npm install pm2 -g
cd backend
npm install
npm run build
cd dist
pm2 start index.js
```Subsequential deployments:
```
cd backend
npm install
npm run build
pm2 restart 0 # assuming your pm2 installation above added glass service with id 0
```### Frontend Setup
```
cd frontend
npm run build && sudo rm -rf /var/www/html && sudo mv build /var/www/html
```## Misc
### Apache config file
It just allows apache to recognize the frontend as a single page app, edit
the file /etc/apache2/sites-enabled/000-default.conf and set the below content:```
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/htmlErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^ index.html [L]
ProxyPass /api http://localhost:8080/api/
ProxyPassReverse /api http://localhost:8080/api/```