{"id":15350149,"url":"https://github.com/mars/peer-health-checker","last_synced_at":"2025-10-23T21:27:35.871Z","repository":{"id":139298157,"uuid":"146370267","full_name":"mars/peer-health-checker","owner":"mars","description":"A web app that tests the health of a connection between two networks","archived":false,"fork":false,"pushed_at":"2018-08-29T00:02:41.000Z","size":60,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T19:18:19.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mars.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,"publiccode":null,"codemeta":null}},"created_at":"2018-08-28T00:36:57.000Z","updated_at":"2020-09-26T02:22:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"db2481be-6d42-417a-851c-ebcfbcb2ea98","html_url":"https://github.com/mars/peer-health-checker","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"c33932a86d20843b68ea4bf26db218737e9ba9f8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fpeer-health-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fpeer-health-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fpeer-health-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mars%2Fpeer-health-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mars","download_url":"https://codeload.github.com/mars/peer-health-checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142075,"owners_count":20890653,"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":[],"created_at":"2024-10-01T11:57:44.640Z","updated_at":"2025-10-23T21:27:30.831Z","avatar_url":"https://github.com/mars.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Peer Health Checker\n\n\n## Requires\n\n* [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)\n* [Node.js](https://nodejs.org)\n\n## Development\n\n`git clone` this repo to your local machine, and then:\n\n```bash\ncd peer-health-checker/\nnpm install\n```\n\n**This app is run twice; once for each side of a peered connection.** In development, both apps will be run on the local computer.\n\nStart up the **Health app** in the terminal:\n\n```bash\nPORT=5000 \\\nHEALTH_CHECKER_PEER_URL=http://localhost:5001 \\\nHEALTH_CHECKER_SELF_URL=http://localhost:5000 \\\n  npm run dev\n```\n\nThen, start up the **Health Checker app** in a second terminal in the same directory:\n\n```bash\nPORT=5001 \\\n  npm run dev\n```\n\n### Manual Docker build\n\n✏️ *In these commands replace `$DOCKER_USERNAME` with your **docker.com** account name, and `$LOCAL_IP` with your external network address. (Discover with `ipconfig getifaddr en0`.)*\n\n```bash\ndocker build -t $DOCKER_USERNAME/peer-health-checker .\ndocker run \\\n  -p 8000:80 \\\n  -e HEALTH_CHECKER_PEER_URL=http://$LOCAL_IP:8001 \\\n  -e HEALTH_CHECKER_SELF_URL=http://$LOCAL_IP:8000 \\\n  -d $DOCKER_USERNAME/peer-health-checker\ndocker run \\\n  -p 8001:80 \\\n  -d $DOCKER_USERNAME/peer-health-checker\n```\n\n### Manual Heroku build\n\n```bash\nnpm install\nnpm run build\nmkdir -p heroku-slug/app\ncp -r !(heroku-slug) .next .profile.d heroku-slug/app/\ncd heroku-slug/app\ncurl http://nodejs.org/dist/v10.9.0/node-v10.9.0-linux-x64.tar.gz | tar xzv\ncd ..\ntar czfv heroku-slug.tgz ./app\n```\n\nThe resulting slug archive `heroku-slug.tgz` has a **web** process of `npm start`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmars%2Fpeer-health-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmars%2Fpeer-health-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmars%2Fpeer-health-checker/lists"}