couchbase-examples / ios-swift-cblite-userprofile-standalone

Quickstart in Couchbase Lite using a standalone database with iOS and Swift. This tutorial will show you how to use key value pair to do full CRUD operations to the database.

Home Page:https://developer.couchbase.com/tutorial-quickstart-ios-uikit-basic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quickstart in Couchbase Lite with Swift and UIKit

Build an iOS App in Swift with Couchbase Lite

This repo is designed to show you an app that allows users to log in and make changes to their user profile information. User profile information is persisted as a Document in the local Couchbase Lite Database. When the user logs out and logs back in again, the profile information is loaded from the Database.

Full documentation can be found on the Couchbase Developer Portal.

Prerequisites

To run this prebuilt project, you will need:

Installing Couchbase Lite Framework

The Couchbase Documentation has examples on how to add Couchbase Lite via

  • Swift Package Manager
  • Cocoa Pods
  • Carthage
  • Direct Download

App Architecture

The sample app follows the MVP pattern, separating the internal data model, from a passive view through a presenter that handles the logic of our application and acts as the conduit between the model and the view

Try it out

  • Open src/UserProfileDemo.xcodeproj using Xcode
  • Build and run the project.
  • Verify that you see the login screen.

Conclusion

Setting up a basic iOS app in Swift with Couchbase Lite is fairly simple, this project when run will allow a user to login, update a user profile, and save the information into the embedded database.

About

Quickstart in Couchbase Lite using a standalone database with iOS and Swift. This tutorial will show you how to use key value pair to do full CRUD operations to the database.

https://developer.couchbase.com/tutorial-quickstart-ios-uikit-basic

License:MIT License


Languages

Language:Swift 94.9%Language:Shell 5.1%