Giter Club home page Giter Club logo

electrode-ota-server's Introduction

Electrode OTA Server

The Electrode OTA Server provides a way to hot deploy android and ios React Native™ and Cordova™ apps. The server is API compatible with code-push-cli, the Code Push React Native SDK and the Code Push Cordova SDK.

Upgrade

Version 3.3.0

Rewrite of mariadb module; simplify needed configuration to use the mariadb module.

        "electrode-ota-server-dao-plugin" : {
            "module" : "electrode-ota-server-dao-mariadb",
            "options": {
                "clusterConfig" : {
                    "canRetry" : true,
                    "defaultSelector" : "ORDER",
                    "removeNodeErrorCount" : 5,
                    "restoreNodeTimeout" : 0,
                },
                "poolConfigs" : [{
                    "database": "electrode_ota",
                    "host": "localhost",
                    "password": "ota",
                    "port": 33060,
                    "user": "ota",
                }],  
            }
        },

The underlying implementation uses the npm module mysql. The options are described in further detail in the module's readme.

The schema for mariadb is in the electrode-ota-mariadb-schema folder. The module does not use sequelize anymore, and the schema is created separately using liquibase.

Version 3.2.1

Version 3.2.1 adds support for MySQL/MariaDB. To use, enable logger, dao-factory, dao-mariadb, and disable dao-plugin and dao-cassandra. Connection settings can be specified under dao-mariadb.

    "electrode-ota-server-logger": {
      priority: 1
    },
    "electrode-ota-server-dao-factory": {
      priority: 5
    },
    "electrode-ota-server-dao-mariadb": {
      priority: 4,
      options: {
        host: "127.0.0.1",
        port: 3306,
        dialect: "mysql",
        db: "ota_db",
        user: "root",
        password: ""
      }
    },
    "electrode-ota-server-dao-plugin": {
      enable: false
    },
    "electrode-ota-server-dao-cassandra": {
      enable: false
    },

Version 2

Version 2 adds partial update support. To do this it requires some alterations to the cassandra database. This will happen automatically, unless the configuration to the electrode-ota-dao-cassandra is configured as

 "electrode-ota-server-dao-cassandra": {
                "options": {
                    ...
                    "disableTTYConfirmation": false,
                    //this is alter by default.
                    "migration": "safe",
                }
            }
 }

Make sure to backup your data, while not known to cause data loss, it is possible.

OTA: Overview

Installation

For configuration instructions visit the electrode.io

 npm i electrode-ota-server

Upload Size and Timeout

To increase the max upload size, add this to your configuration: Likewise, you can set the timeout if upload is timing out.

"electrode-ota-server-routes-apps" : {
            options : {
                payload : {
                    maxBytes : 94371840,
                    timeout: 119999
                }                
            }
        }

Development

To run tests, make sure you have localhost.walmart.com mapped to 127.0.0.1 loopback. To build..

> lerna bootstrap

To run test..

> yarn test

Apache-2.0 © WalmartLabs
Built with ❤️ by Team Electrode @WalmartLabs.

electrode-ota-server's People

Contributors

awhelms avatar datvong-wm avatar didi0613 avatar jchip avatar jspears avatar sgoff0 avatar taina0407 avatar

Watchers

 avatar  avatar

Forkers

krunalsshah

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.