{"id":19030641,"url":"https://github.com/hackclub/hcb-mobile","last_synced_at":"2025-04-23T16:04:34.099Z","repository":{"id":243253333,"uuid":"669293487","full_name":"hackclub/hcb-mobile","owner":"hackclub","description":"A Mobile App Implementation of HCB","archived":false,"fork":false,"pushed_at":"2025-03-31T03:17:02.000Z","size":7636,"stargazers_count":26,"open_issues_count":36,"forks_count":17,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-23T16:04:26.045Z","etag":null,"topics":["expo","hackclub","hcb","react-native"],"latest_commit_sha":null,"homepage":"https://hcb.gg/mobile","language":"TypeScript","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/hackclub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-21T20:51:46.000Z","updated_at":"2025-04-18T20:08:58.000Z","dependencies_parsed_at":"2024-09-07T21:35:26.322Z","dependency_job_id":"62e43edc-d40e-41f3-8a2c-2ac4affa4e5f","html_url":"https://github.com/hackclub/hcb-mobile","commit_stats":null,"previous_names":["hackclub/hcb-mobile"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackclub%2Fhcb-mobile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackclub%2Fhcb-mobile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackclub%2Fhcb-mobile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackclub%2Fhcb-mobile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackclub","download_url":"https://codeload.github.com/hackclub/hcb-mobile/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250468273,"owners_count":21435452,"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":["expo","hackclub","hcb","react-native"],"created_at":"2024-11-08T21:18:58.003Z","updated_at":"2025-04-23T16:04:34.071Z","avatar_url":"https://github.com/hackclub.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"assets/banner-dark.png\"\u003e\n  \u003cimg src=\"assets/banner-light.png\"\u003e\n\u003c/picture\u003e\n\n### _HCB but smaller!_\n\n\u003c/div\u003e\n\n## Setup\n\nHCB Mobile connects to HCB throught the v4 API.\nYou can either connect to the production HCB instance, or a local development instance.\n\n### Production HCB\n\nSet your `.env` to include the following variables:\n\n```\nEXPO_PUBLIC_API_BASE=https://hcb.hackclub.com/api/v4\nEXPO_PUBLIC_CLIENT_ID=yt8JHmPDmmYYLUmoEiGtocYwg5fSOGCrcIY3G-vkMRs\nEXPO_PUBLIC_STRIPE_API_KEY=pk_live_UAjIP1Kss29XZ6tW0MFWkjUQ\n```\n\n### Development HCB\n\nGo into the Rails console on your development server (`bin/rails c`), and run the following:\n\n```\napp = Doorkeeper::Application.create(name: \"mobile\", redirect_uri: \"hcb://\", scopes: [\"read\", \"write\"], confidential: false)\n```\n\nThen, set your `.env` to include the following variables:\n\n```\nEXPO_PUBLIC_API_BASE=http://\u003chost\u003e/api/v4\nEXPO_PUBLIC_CLIENT_ID=\u003cuid field from the Doorkeeper app\u003e\n```\n\n## Building on iOS\n\n1. Install Xcode/Node.js\n2. `npm install`\n3. `npm run ios` - builds and runs the app in a simulator\n   - Run with the `-- --device` flag to get a device selector, e.g. to run on a physical iPhone\n   - Bonus task: fry an egg on your Mac while this runs\n\n## Building on Android\n\n1. Install Android Studio \u0026 Node.js\n2. Setup a new AVD in Android Studio with api \u003e= 34\n3. Install \u0026 set your `JAVA_HOME` to a Java 17 SDK\n4. `npm install`\n5. `npm run android` - builds and runs the app in a simulator\n   - Run with the `-- --device` flag to get a device selector, e.g. to run on a physical Android phone\n   - Bonus task: painfully watch Gradle attempt to work\n\n## Contributing\n\nPlease see [CONTRIBUTING.md](CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackclub%2Fhcb-mobile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackclub%2Fhcb-mobile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackclub%2Fhcb-mobile/lists"}