/couchbase-lite-peer-to-peer-sync-examples

sample apps demonstrating the peer-to-peer sync feature introduced in Couchbase Lite 2.8

Primary LanguageObjective-C

Inventory Sample: Peer-to-Peer Sync

Overview

Sample apps that demonstrate out-of-box websockets listener based peer-to-peer database sync functionality introduced in Couchbase Lite 2.8.

Introduction

Couchbase Lite 2.8 release supports out-of-the-box support for secure Peer-to-Peer Sync, over websockets directly between Couchbase Lite enabled clients in IP-based networks without the need for a centralized control point (i.e. no Sync Gateway or Couchbase server required)

iOS Inventory App Tutorial in Swift

Prerequisites

This tutorial assumes familiarity with building swift apps with Xcode and with Couchbase Lite.

  • If you are unfamiliar with the basics of Couchbase Lite, it is recommended that you follow the Getting Started guides

  • iOS (Xcode 11.4+)

  • Wi-Fi network that the peers can communicate over

    • You could run your peers in multiple simulators. But if you were running the app on real devices, then you will need to ensure that the devices are on the same WiFi network

Installation and Code Walkthrough

The complete step by step tutorial is available here

NOTE:Apps for other platforms coming soon