{"id":13650992,"url":"https://github.com/cypherglassdotcom/glass","last_synced_at":"2025-04-22T21:32:13.790Z","repository":{"id":215204032,"uuid":"139819399","full_name":"cypherglassdotcom/glass","owner":"cypherglassdotcom","description":"Cypherglass Glass","archived":false,"fork":false,"pushed_at":"2019-03-14T05:00:31.000Z","size":782,"stargazers_count":5,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-01-25T03:03:31.005Z","etag":null,"topics":["blockchain","cypherglass","eos","eos-block-producer","eos-blockchain","eosio"],"latest_commit_sha":null,"homepage":"https://glass.cypherglass.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cypherglassdotcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-07-05T08:31:03.000Z","updated_at":"2024-04-14T23:51:46.295Z","dependencies_parsed_at":null,"dependency_job_id":"6c1a4d6d-59e6-4940-bc45-05986dc48488","html_url":"https://github.com/cypherglassdotcom/glass","commit_stats":null,"previous_names":["cypherglassdotcom/glass"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cypherglassdotcom%2Fglass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cypherglassdotcom%2Fglass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cypherglassdotcom%2Fglass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cypherglassdotcom%2Fglass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cypherglassdotcom","download_url":"https://codeload.github.com/cypherglassdotcom/glass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250328642,"owners_count":21412655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","cypherglass","eos","eos-block-producer","eos-blockchain","eosio"],"created_at":"2024-08-02T02:00:43.488Z","updated_at":"2025-04-22T21:32:13.433Z","avatar_url":"https://github.com/cypherglassdotcom.png","language":"JavaScript","readme":"# Glass\n\nBringing the transparency of EOS Bps!\n\n## Structure\n\n- bpwatcher: nodejs script that scrapes all the producers and bp.json files, and save it in mongodb\n- backend: nodejs express webserver, serves data from mongodb\n- frontend: application UI interface in ReactJS\n\n## Setup\n\n1 - Setup bpwatcher to run every X minutes as a cronjob.\n2 - Build backend and serve with pm2\n3 - Build the frontend and serve it in your static webserver\n\n### Backend Setup\n\nFirst time running `bpwatcher` prior the cronjob:\n```\ncd bpwatcher\nnpm install\nnode index.js\n```\n\nFirst time install (setting up pm2)\n```\nnpm install pm2 -g\ncd backend\nnpm install\nnpm run build\ncd dist\npm2 start index.js\n```\n\nSubsequential deployments:\n```\ncd backend\nnpm install\nnpm run build\npm2 restart 0         # assuming your pm2 installation above added glass service with id 0\n```\n\n### Frontend Setup\n\n```\ncd frontend\nnpm run build \u0026\u0026 sudo rm -rf /var/www/html \u0026\u0026 sudo mv build /var/www/html\n```\n\n## Misc\n\n### Apache config file\n\nIt just allows apache to recognize the frontend as a single page app, edit\nthe file /etc/apache2/sites-enabled/000-default.conf and set the below content:\n\n```\n\u003cVirtualHost *:80\u003e\n        #ServerName www.example.com\n\n        ServerAdmin webmaster@localhost\n        DocumentRoot /var/www/html\n\n        ErrorLog ${APACHE_LOG_DIR}/error.log\n        CustomLog ${APACHE_LOG_DIR}/access.log combined\n\n        \u003cDirectory \"/var/www/html\"\u003e\n                RewriteEngine on\n                RewriteCond %{REQUEST_FILENAME} -f [OR]\n                RewriteCond %{REQUEST_FILENAME} -d\n                RewriteRule ^ - [L]\n                RewriteRule ^ index.html [L]\n        \u003c/Directory\u003e\n\n        ProxyPass /api http://localhost:8080/api/\n        ProxyPassReverse /api http://localhost:8080/api/\n\n\u003c/VirtualHost\u003e\n```\n","funding_links":[],"categories":["Block Producers"],"sub_categories":["General"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcypherglassdotcom%2Fglass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcypherglassdotcom%2Fglass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcypherglassdotcom%2Fglass/lists"}