Skip to content

Run Ionic 2 application offline in sync with database.

Notifications You must be signed in to change notification settings

solodynamo/offlineSync

Repository files navigation

Offline Sync

contributions welcome

It uses pouchDB with websql as adapter to provide offline sync with DB when internet connection of an application goes off.

Snap

Sky Blue

Demo

Android Apk

Getting Started

  • Install Ionic CLI npm install ionic -g --save
  • Install Cordova npm install -g cordova

Run it on the browser

  • Run ionic serve in a terminal from the project root.

Before run it on devices

  • Install iOS Sim (npm install -g ios-sim)
  • Install iOS Deploy (npm install -g ios-deploy)
  • Add Android platform ionic platform add android
  • Add iOS platform after ionic platform add ios

Before run it on android

  • Install Android Studio
  • Open Android SDK Manager and install:
    • Android SDK Tools
    • Android SDK Platform-tools
    • Android SDK Build-tools
    • System images (in case you need to use Android Emulator)
    • Android Support Repository
    • Android Support Library
    • Google Play services
    • Google Repository
    • Intel x86 Emulator Accelerator (in case you need to use Android Emulator)

Build and Run

  • ionic build ios/android
  • ionic run ios/android --emulator --devices

##To Do

  • Use CouchDB for complete sync.
  • Netowork status response and action improve.(Offline/Online)

About

Run Ionic 2 application offline in sync with database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages