{"id":21575569,"url":"https://github.com/rangle/code-push-demo","last_synced_at":"2025-04-10T16:32:13.095Z","repository":{"id":54828514,"uuid":"47833255","full_name":"rangle/code-push-demo","owner":"rangle","description":"An example of how to use CodePush with an Ionic/Cordova app.","archived":false,"fork":false,"pushed_at":"2021-01-26T22:55:37.000Z","size":2644,"stargazers_count":11,"open_issues_count":5,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T14:13:25.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rangle.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}},"created_at":"2015-12-11T15:10:22.000Z","updated_at":"2022-11-03T23:53:32.000Z","dependencies_parsed_at":"2022-08-14T04:01:11.789Z","dependency_job_id":null,"html_url":"https://github.com/rangle/code-push-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Fcode-push-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Fcode-push-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Fcode-push-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rangle%2Fcode-push-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rangle","download_url":"https://codeload.github.com/rangle/code-push-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252691,"owners_count":21072699,"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-24T12:13:38.385Z","updated_at":"2025-04-10T16:32:13.074Z","avatar_url":"https://github.com/rangle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Push Demo\n\nAn example of how to use CodePush with an Ionic/Cordova app.\n\n## Getting Started\n\n1. Install the CodePush CLI\n  ```\n  npm install -g code-push-cli\n  ```\n\n2. Register and login\n  ```\n  code-push register\n  code-push login\n  ```\n\n3. CodePush uses Github/Microsoft Live accounts for authentication. However, you will want to create a shared login which can be used by multiple devs.\n\n  ```\n  code-push access-key add \"shared login for my account\"\n  ```\n\n4. Use the access key generated by the above command to login. *Warning* this gives full access to all your apps. To avoid that, create a Github account for the project and use that to generate the access key.\n\n  ```\n  code-push login --accessKey \u003caccessKey\u003e\n  ```\n\n5. Create a new app.\n\n  ```\n  code-push app add \u003cappName\u003e\n  ```\n\n6. Create deployment targets for iOS and Android. These keys need to be added to `config.xml` and can be used to fetch latest deployments to `master`.\n\n  ```\n  code-push deployment add \u003cappName\u003e ios\n  code-push deployment add \u003cappName\u003e android\n  ```\n\n7. Add a deployment step to `circle.yml`. The following pushes updates to the master branch deployments, for both iOS and Android. And updates the versions list.\n\n  ```\n  deployment:\n    staging:\n      branch: /.*/\n      commands:\n      - node deploy.js $CODE_PUSH_APP_NAME $APP_STORE_VERSION $CIRCLE_PR_NUMBER\n      - node ci-hook.js $CIRCLE_PROJECT_REPONAME\n  ```\n\n8. The versions list is available at:\n\n  ```\n  http://codepush-deployments-lists.s3-website-us-east-1.amazonaws.com/\u003cyourRepName\u003e-codepush-deployments.json\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangle%2Fcode-push-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frangle%2Fcode-push-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frangle%2Fcode-push-demo/lists"}