NotesShare:应用程序使用 Couchbase Lite + SyncGateway 来展示如何在同步功能中将数据设为 public-private

时间:2021-06-28 01:50:57
【文件属性】:
文件名称:NotesShare:应用程序使用 Couchbase Lite + SyncGateway 来展示如何在同步功能中将数据设为 public-private
文件大小:17KB
文件格式:ZIP
更新时间:2021-06-28 01:50:57
Swift 笔记分享 入门 使用 Cocoapods 安装 Couchbase Lite 依赖项: pod install 使用 SyncGateway 运行应用程序 从下载 SyncGateway 二进制文件并使用 notes-config.json 启动它: $ ~ /Downloads/sync_gateway/bin/sync_gateway notes-config.json 通过 SyncGateway 的管理端口创建两个用户。 在模拟器上,应用程序将以 James 的身份登录,而在设备上,它将以 John 的身份登录。 curl -X PUT -H ' Content-Type: application/json ' -d ' {"name":"James", "password":"password"} ' http://localhost:4985/notes_sharing
【文件预览】:
NotesShare-master
----NotesShare()
--------ViewController.swift(1KB)
--------bridging-header.h(277B)
--------Base.lproj()
--------AppDelegate.swift(2KB)
--------Images.xcassets()
--------Note.swift(1KB)
--------Info.plist(1KB)
--------AddViewController.swift(1KB)
----Podfile(243B)
----NotesShare.xcworkspace()
--------contents.xcworkspacedata(228B)
----NotesShareTests()
--------NotesShareTests.swift(920B)
--------Info.plist(758B)
----Podfile.lock(193B)
----NotesShare.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(19KB)
----.gitignore(342B)
----README.md(1KB)
----notes-config.json(712B)

网友评论