Coder Social home page Coder Social logo

code-push-demo's Introduction

Code Push Demo

An example of how to use CodePush with an Ionic/Cordova app.

Getting Started

  1. Install the CodePush CLI
npm install -g code-push-cli
  1. Register and login
code-push register
code-push login
  1. CodePush uses Github/Microsoft Live accounts for authentication. However, you will want to create a shared login which can be used by multiple devs.
code-push access-key add "shared login for my account"
  1. 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.
code-push login --accessKey <accessKey>
  1. Create a new app.
code-push app add <appName>
  1. 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.
code-push deployment add <appName> ios
code-push deployment add <appName> android
  1. 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.
deployment:
  staging:
    branch: /.*/
    commands:
    - node deploy.js $CODE_PUSH_APP_NAME $APP_STORE_VERSION $CIRCLE_PR_NUMBER
    - node ci-hook.js $CIRCLE_PROJECT_REPONAME
  1. The versions list is available at:
http://codepush-deployments-lists.s3-website-us-east-1.amazonaws.com/<yourRepName>-codepush-deployments.json

code-push-demo's People

Contributors

rafkhan avatar winkervsbecks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.