Git Product home page Git Product logo

ssnit-branches's Introduction

ssnit-branches

A repo for the Realm database of SSNIT Branches used by SSNIT's mobile app.

Every time the SSNIT app is launched, it downloads a copy of current=database.json, which points the app to the most current Realm database of SSNIT branches to use. If the app isn't already using that database, it will download it for use. All the databases (both current and old versions) are stored in the databases folder.

To make changes to this repo (or to test it), you should use the dev-testing branch and only make the changes in master branch when everything works (to prevent affecting live builds).

Steps for Updating

The process for updating all live builds of the app with a new SSNIT branch database is very simple:

  1. Download the most current database form the databases folder
  2. Make your changes to the database (probably using Realm Studio), but do not rename fields or add new ones— ⚠️ This will break production on all live builds! ⚠️ If you want to make any of those types of updates, you'll need to make a proper update of the app (and remember to increase the schemaVersion in the Realm.open command used in the branch module (that'll be in MainBranchPage.js)).
  3. Upload the new database to the databases folder under a unique name. There's no need to remove the older databases in the folder.
  4. Update the current-database.json file with the correct URL to this new database, as well as a name for this database. This name doesn't necessarily have to be the same as the database file; it's just the file name the app will use when saving the datbase. Make sure this name is unique and hasn't been used before.
  5. Increment the currentDatabaseVersion in the current-database json.

ssnit-branches's People

Contributors

andersonaddo avatar

Stargazers

 avatar

Watchers

 avatar  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.