{"id":18449930,"url":"https://github.com/alincode/fitbit-dapp","last_synced_at":"2025-07-03T19:06:41.911Z","repository":{"id":81410940,"uuid":"144749797","full_name":"alincode/fitbit-dapp","owner":"alincode","description":null,"archived":false,"fork":false,"pushed_at":"2018-11-06T17:00:15.000Z","size":2275,"stargazers_count":0,"open_issues_count":0,"forks_count":19,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T19:06:41.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://alincode.github.io/fitbit-dapp","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/alincode.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-14T17:08:06.000Z","updated_at":"2018-11-06T17:00:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"60ab2daf-2ae7-424f-bac1-34f7b09c0c52","html_url":"https://github.com/alincode/fitbit-dapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alincode/fitbit-dapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alincode%2Ffitbit-dapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alincode%2Ffitbit-dapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alincode%2Ffitbit-dapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alincode%2Ffitbit-dapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alincode","download_url":"https://codeload.github.com/alincode/fitbit-dapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alincode%2Ffitbit-dapp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263385599,"owners_count":23458736,"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-11-06T07:22:42.133Z","updated_at":"2025-07-03T19:06:41.884Z","avatar_url":"https://github.com/alincode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fitbit Dapp\n\n**learning resource**\n\n* [Oraclize Documentation](https://docs.oraclize.it/#ethereum-quick-start-simple-query)\n* [slides - Introduction to fitbit dapp by alincode](https://slides.com/alincode/fitbit-dapp-intro/fullscreen)\n* [slides - Introduction to oraclize  by alincode](https://slides.com/alincode/oraclize201810#/)\n\n\n![](assets/screen1.png)\n\n![](assets/screen2.png)\n\n![](assets/screen3.png)\n\n## Run it\n\n```\nnpm i\nnpm start\n```\n\n## build \u0026 publish\n\n```sh\nnpm run build\ngit add -A \u0026\u0026 git commit -m \"bundle\"\ngit push\n```\n\n### Player\n\n* signup\n\nyou need to wait 2~3 minute, until oraclize callback. then you could see you are signed.\n\n* playerRefund\n\nif contest end over 3 days, but the owner still not end the contest, the user could click refund button, then get money back.\n\n```\nstruct Player {\n    address addr;\n    uint amount;\n    string userId;\n    uint createdAt;\n    uint beginStep;\n    uint endStep;\n    bool refunded;\n    string encryptHeader;\n}\n```\n\n### Funder\n\n* fund: funder could fund many times, second time will update amount and name.\n\n```\nstruct Funder {\n    address addr;\n    uint amount;\n    uint createdAt;\n    string name;\n}\n```\n\n### Owner\n\n* Step1: contestDone\n\nit will update all user end step and save the doneAt.\n\n* Step2: award\n\nif will check doneAt, make a sure, you already waiting for 10 minutes. then you can call this function.\n\nit will count all winner and award money to winner.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falincode%2Ffitbit-dapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falincode%2Ffitbit-dapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falincode%2Ffitbit-dapp/lists"}