Giter VIP home page Giter VIP logo

offlinesync's Introduction

IBM Cloud Mobile Starter for Offline Data Synch Android

Platform

Table of Contents

Summary

This IBM Cloud Mobile Offline Data Synch Starter showcases the Mobile Foundation and Offline Data Synch capabilities and provides the integration points for each of the IBM Cloud Mobile services.

Requirements

Creating an instance of the Offline Data Synch starter will create an instance of Cloudant NoSQL DB and Mobile Foundation service.

Cloudant Configuration

  • To configure cloudant NoSQL DB for the Offline Data Synch app navigate to the cloudant instance created and from the service credentials tab copy the user name and password and update this information in populate_cloudant_db.sh which can be found in the project folder. Ensure that you have execute and write permissions to run these scripts.
  • Run populate_cloudant_db.sh. This should populate the cloudant database with demo data.

Mobile Foundation Configuration

Steps:

Follow the steps below to configure the Mobile Foundation service

  • Open the project in Android Studio and perform a Gradle Sync.

  • Go to the project folder and find a the shell script by name mfpregisterapp.sh and run it. Ensure that you have execute and write permissions to run these scripts.

  • Deploying the adapter

  • Download the JSONStoreSync adapter from the 'Deploying the sync adapter' section from the link "https://mobilefirstplatform.ibmcloud.com/blog/2018/02/23/jsonstoresync-couchdb-databases/"

  • After registration , navigate to mobile foundation service created , go to the dashboard , Click on New button beside the Adapters tag, Click on Deploy Adapter button and upload the downloaded .adapter file.

  • Configure the adapter with the Cloudant NoSQL DB credentials with database name as 'foodmenu'.

Run

You can now run the application on a simulator or a physical device

License

This package contains code licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 and may also view the License in the LICENSE file within this package.

offlinesync's People

Stargazers

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