{"id":20817492,"url":"https://github.com/chaintope/tapyrus-faucet","last_synced_at":"2025-08-02T11:03:00.073Z","repository":{"id":36562241,"uuid":"224755184","full_name":"chaintope/tapyrus-faucet","owner":"chaintope","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-12T06:28:46.000Z","size":530,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-07T13:50:50.887Z","etag":null,"topics":["faucet","tapyrus"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chaintope.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-11-29T01:33:06.000Z","updated_at":"2024-10-16T17:08:38.000Z","dependencies_parsed_at":"2024-11-17T21:42:44.616Z","dependency_job_id":"b165620f-8112-4e59-8a42-7b8fb177ad2e","html_url":"https://github.com/chaintope/tapyrus-faucet","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/chaintope/tapyrus-faucet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaintope%2Ftapyrus-faucet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaintope%2Ftapyrus-faucet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaintope%2Ftapyrus-faucet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaintope%2Ftapyrus-faucet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chaintope","download_url":"https://codeload.github.com/chaintope/tapyrus-faucet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chaintope%2Ftapyrus-faucet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268378324,"owners_count":24240894,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["faucet","tapyrus"],"created_at":"2024-11-17T21:42:22.924Z","updated_at":"2025-08-02T11:03:00.004Z","avatar_url":"https://github.com/chaintope.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\nThis README would normally document whatever steps are necessary to get the\napplication up and running.\n\nThings you may want to cover:\n\n# Ruby version\n- 2.5.0\n\n# System dependencies\n- MySQL\n- bundler\n\n# Configuration\n## environment variables\n- TAPYRUS_RPC_USER\n- TAPYRUS_RPC_PASSWORD\n- TAPYRUS_RPC_HOST\n- TAPYRUS_RPC_PORT\n- RECAPTCHA_SITE_KEY\n- RECAPTCHA_SECRET_KEY\n- MYSQL_ROOT_PASSWORD (for development/test)\n- SECRET_KEY_BASE (for production)\n```\n$ bin/rails secret\n```\n\n# Database creation\n## development/test\n```\n$ bin/rails db:create\n$ bin/rails db:migrate\n```\n\n## production\n- TAPYRUS_FAUCET_DATABASE_PASSWORD\n- RAILS_SERVE_STATIC_FILES=1\n\n```\n$ mysql -uroot -p\n# mysql\u003e CREATE DATABASE `torifuku_faucet_production`;\nmysql\u003e CREATE USER `torifuku_faucet`@localhost IDENTIFIED BY 'password';\nmysql\u003e GRANT ALL PRIVILEGES ON `torifuku_faucet_production`.* TO `torifuku_faucet`@localhost IDENTIFIED BY 'password';\nmysql\u003e FLUSH PRIVILEGES;\nmysql\u003e exit\n$ RAILS_ENV=production bin/rails db:create\n$ RAILS_ENV=production bin/rails db:migrate\n$ RAILS_ENV=production bin/rails secret # =\u003e SECRET_KEY_BASE\n```\n\n### リリースのたびに毎回\n```\n[sammy]\n$ sudo apt-get update\n$ sudo apt-get upgrade\n\n$ cd tapyrus-faucet\n$ git pull\n$ RAILS_ENV=production bin/rails assets:precompile\n\n$ sudo su -\n\n[root]\n$ cd /srv/www\n$ cp -r /home/sammy/tapyrus-faucet/public .\n$ chown -R nginx public/\n$ exit\n\n[sammy]\n$ source ~/.profile\n$ ps -ef | grep puma\n$ kill -9 pid\n$ cd tapyrus-faucet\n$ nohup bin/rails server -e production -p 3000 \u0026\n```\n\n# How to develop on docker images\n\nYou can use docker and docker-compose to develop this project. Here is explanation for that.\nBefore do this process, you need to prepare [tapyrus-core](https://github.com/chaintope/tapyrus-core) full node to \nsupply RPC endpoint.\n\n1. Build docker image\n\n```bash\n$ cd project/path\n$ docker-compose build\n``` \n\n2. create `.env` file\nThis is a sample of `.env`. You need to specify each environments.\n\n```text\nRECAPTCHA_SITE_KEY=xxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nRECAPTCHA_SECRET_KEY=xxxx_xxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxx\nTAPYRUS_RPC_USER=xxxxx\nTAPYRUS_RPC_PASSWORD=xxxxx\nTAPYRUS_RPC_HOST=xxxxx.xxxxx.xxxx\nTAPYRUS_RPC_PORT=xxxxx\n```\n\nYou can get recapture keys from [here](https://www.google.com/recaptcha/intro/v3.html).\n\n3. Create database and migrate it\n\n```bash\n$ docker-compose up\n$ docker-compose run web rails db:create\n$ docker-compose run web rails db:migrate\n```\n\n4. Access `http://localhost:3000` from any browser \n\n[http://localhost:3000](`http://localhost:3000`)\n\n# 復旧手段\n```\n[local]\n$ ssh -i ~/.ssh/time4vps -p 50417 sammy@yourhost\n\n[server]\n$ sudo su - tapyrus\n$ tapyrusd -daemon\n$ exit\n\n$ cd ~/tapyrus-faucet\n$ nohup bin/rails server -e production -p 3000 \u0026\n```\n\n\n# Database initialization\n\n# How to run the test suite\n\n```\n$ bin/rails test\n```\n\n# Services (job queues, cache servers, search engines, etc.)\n\n# Deployment instructions\n\n# いずれ書き足しておきたいこと\n- nginxの設定\n- sslのこと\n\n# 日別集計\n\n```\nmysql\u003e SELECT DATE_FORMAT(date, '%Y-%m-%d') AS time, COUNT(*), SUM(value) AS SUM, SUM(value)/COUNT(*) AS AVE FROM `torifuku_faucet_production`.transactions GROUP BY date;\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaintope%2Ftapyrus-faucet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaintope%2Ftapyrus-faucet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaintope%2Ftapyrus-faucet/lists"}