Couchbase Mobile 2.0 brings the power of NoSQL JSON Document Store to iOS, Android and .Net Mobile Platforms. With Couchbase Mobile, you can build mobile applications with offline-only and offline-first capabilities.
Couchbase Mobile supports flexible deployment options. You can deploy
- Couchbase Lite as a standalone embedded database within your mobile apps or,
- Couchbase Lite enabled mobile clients with a Sync Gateway to sychronize data between your mobile clients or,
- Couchbase Lite enabled clients with a Sync Gateway to sync data between mobile clients and a Couchbase Server, which can persist data in the cloud (public or private)
This tutorial will walk you through a very basic example of how you can use Couchbase Lite 2.0 in standalone mode within your Swift App. In this mode, Couchbase Lite will serve as a local, embedded data store within your iOS App and can be a replacement for SQLite or Core Data.
At the end of the tutorial, you should have a good idea of how to handle
– Database Operations
– Document Create, Update and Delete Operations
We will be working with a very simple “User Profile” app. It does one thing –
– Allows users to log in and create or update his/her user profile information
The user profile information is persisted as a Document in the local Couchbase Lite Database. So subsquently, when the user logs out and logs back in again, the profile information is loaded from the Database.
At the end of the tutorial, you should have a good idea of how to use Couchbase Lite as a local data store within your iOS App. Stay tuned for future tutorials that extends this app to incorporate more functionality of Couchbase Mobile.
If you have questions or feedback, please leave a comment below or feel free to reach out to me at Twitter @rajagp or email me at email@example.com. The Couchbase Forums are another good place to reach out with questions.