Couchbase Mobile 2.x 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 synchronize 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)
Tutorial
This tutorial will walk you through a very basic example of how you can use Couchbase Lite 2.x in standalone mode within your Android apps. In this mode, Couchbase Lite will serve as a local, embedded data store within your apps.
At the end of the tutorial, you should have a good idea of how to handle
– Database Operations
– Document Create, Update and Delete Operations
App Overview
Document
in the local Couchbase Lite database. So subsequently, when the user logs out and logs back in again, the profile information is loaded from the Database
.Next Steps
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 Android apps. Stay tuned for future tutorials that extends this app to incorporate more functionality of Couchbase Mobile.
If you have questions or feedback please feel free to leave a comment below, reach out to me on Twitter @probablyrealrob, or email me at robert.hedgpeth@couchbase.com. And, as always, the Couchbase Forums are another great place to reach out with questions!