ToDo Application
ToDo sample app.
How to build and run?
- Clone the project.
$ git clone https://github.com/couchbaselabs/mobile-training-todo.git
-
Go into the folder based on your platform selection.
-
For the iOS platform (objc or swift), download the latest Couchbase Lite for Objectve-C or Swift. Copy
CouchbaseLite.framework
for Objective-C orCouchbaseLiteSwift.framework
for Swift into theFrameworks
folder. -
Depending on your selected platform, use an appropriate IDE (XCode for iOS, Android Studio for Android, and Xamarin Studio for .NET) to open the ToDo application project.
-
Run the application.
How to use the replication feature?
- Download the latest Sync Gateway.
- Start Sync Gateway with the the configuration from here as follows:
~/Downloads/couchbase-sync-gateway/bin/sync_gateway sync-gateway-config.json
-
Depending on your selected platform, enable Login and Sync feature from the source code (e.g.
AppDelegate.m
for Objective-C,AppDelegate.swift
for Swift orApplication.java
for Android). Then change thehostname
variable in the same source code to point to your sync-gateway URL. -
Rerun the application.