# ionic-framework-pouchdb **Repository Path**: mirrors_couchbaselabs/ionic-framework-pouchdb ## Basic Information - **Project Name**: ionic-framework-pouchdb - **Description**: Example for using Ionic Framework with Couchbase Mobile, but with PouchDB instead of Couchbase Lite - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-04-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Cross Platform Storage & Sync With Ionic Framework, Couchbase, and PouchDB ## Requirements * Apache Cordova 5.0+ * PouchDB 4 * Apache Cordova Whitelist Plugin ## Configuration ### Installing Dependencies After cloning the repository, run the following from your Terminal (Mac / Linux) or Command Prompt (Windows), with the project as your current working directory, to add the development platforms: ``` ionic platform add android ionic platform add ios ``` Then install all the required plugins: ``` cordova plugin add cordova-plugin-whitelist cordova plugin add cordova-plugin-device cordova plugin add cordova-plugin-console cordova plugin add cordova-plugin-splashscreen cordova plugin add com.ionic.keyboard ``` ## Usage (Android & iOS) To build and run the project for Android, run the following from your Terminal or Command Prompt: ``` ionic build android adb install -r platforms/android/build/outputs/apk/android-debug.apk ``` For iOS, run `ionic build ios` and open the Xcode project file found in the **platforms/ios** directory. ## Usage (Sync Gateway) This sample application can connect to the [Couchbase Sync Gateway](http://developer.couchbase.com/mobile/develop/guides/sync-gateway/) to keep data in sync across devices and platforms. To use with Sync Gateway, first [download the latest version](http://www.couchbase.com/nosql-databases/downloads#cb-mobile) from the Couchbase website. Extract the downloaded copy and from your Command Prompt (Windows) or Terminal (Linux / Mac) execute the following: ``` /path/to/sync/gateway/bin/sync_gateway /path/to/ionic/project/sync-gateway-config.json ``` This will start the Sync Gateway using the configuration file provided in this project. It will be serving on http://localhost:4984 and http://localhost:4985. Depending on your choice of device or emulator, the host address information found in your project's **www/js/app.js** file might differ. ## Resources Couchbase Lite REST API - [http://developer.couchbase.com/mobile/develop/references/couchbase-lite/rest-api/index.html](http://developer.couchbase.com/mobile/develop/references/couchbase-lite/rest-api/index.html)