A shared todo app to show how to use Couchbase Lite in a React Native app and sync the documents with Sync Gateway.
Clone or download this repository.
Download the Couchbase Lite iOS SDK from here and drag CouchbaseLite.framework
and CouchbaseLiteListener.framework
in the Frameworks
folder of this repository.
Install the React Native command line tools:
npm install -g react-native-cli
Install the Node.js modules:
npm install
Open todolite.xcodeproj
in Xcode and hit run.
Download Sync Gateway and unzip the file:
http://www.couchbase.com/nosql-databases/downloads#Couchbase\_Mobile
Start Sync Gateway with the config file in the root of the repository:
$ ~/Downloads/couchbase-sync-gateway/bin/sync_gateway
Open the Admin Dashboard to monitor the documents that were saved to Sync Gateway.
http://localhost:4985/_admin/