Couchbase Tutorials

Go hands-on with Couchbase Tutorials. The tutorials listed on this page are available as reference samples. In addition to these tutorials, Couchbase Documentation also provides Getting Started guides as part of the product documentation.

Tutorials

Couchbase Cloud First-Timer Tutorial Series

Beginner
Developer

This series of “First Timer” tutorials is intended to get you going quickly with your Couchbase Cloud FREE Trial and provide a whirlwind tour of important Couchbase Cloud capabilities at a high level.

Component
  • Couchbase Cloud

Get Started with Community Edition

Beginner
Developer

Just getting started with Couchbase and using Couchbase Community Edition(CE)? Start here. This currently covers basic installation and querying along with Java, NodeJS, and Mobile development.

Component
  • Server 6.5 Community Edition

  • Sync Gateway 2.7

  • Couchbase Lite 2.7

Languages
  • Java

  • Node.js

Developer Bootstrap Exercises

Beginner
Developer

Are you a developer interested in a fast start with Couchbase? This expanding set of basic first-steps exercises provide a fast track from zero to your substantial interactions with Couchbase Server using your favorite development frameworks and IDEs.

Component
  • Server 6.5 CE or EE

  • SDK 3.0 or 2.x

Languages
  • Java

  • Node.js

  • .NET

Get Started with Couchbase Mobile on iOS

Beginner
Mobile Developer

The series of tutorials demonstrates the core capabilities of Couchbase Mobile with an iOS app:

  • "Standalone": database and CRUD operations.

  • "Query": querying capabilities.

  • "Sync": use of Sync Gateway for data sync between clients.

Component
  • Server 5.5

  • Couchbase Lite 2.1

  • Sync Gateway 2.1

Languages
  • Swift

Get Started with Couchbase Mobile on Android

Beginner
Mobile Developer

The series of tutorials demonstrates the core capabilities of Couchbase Mobile with an Android app:

  • "Standalone": database and CRUD operations.

  • "Query": querying capabilities.

  • "Sync": use of Sync Gateway for data sync between clients.

Component
  • Server 5.5

  • Couchbase Lite 2.6

  • Sync Gateway 2.6

Languages
  • Java

Get Started with Couchbase Mobile on Xamarin

Beginner
Mobile Developer

The series of tutorials demonstrates the core capabilities of Couchbase Mobile with a Xamarin app:

  • "Standalone": database and CRUD operations.

  • "Query": querying capabilities.

  • "Sync": use of Sync Gateway for data sync between clients.

Component
  • Server 5.5

  • Couchbase Lite 2.1

  • Sync Gateway 2.1

Languages
  • C#

Getting Started with Peer to Peer Sync on iOS

Intermediate
Mobile Developer

This tutorial uses a simple inventory tracker app to demonstrate the peer-to-peer sync functionality between Couchbase Lite apps

Component
  • Couchbase Lite 2.8

Languages
  • Swift

Getting Started with Peer to Peer Sync on Xamarin

Intermediate
Mobile Developer

This tutorial uses a simple inventory tracker app to demonstrate the peer-to-peer sync functionality between Couchbase Lite apps

Component
  • Couchbase Lite 2.8

Languages
  • C#

Background Fetch with Couchbase Lite on iOS

Beginner
Mobile Developer

This tutorial discusses how you can use iOS Background App Refresh capability to sync data when in the background.

Component
  • Server 5.5

  • Couchbase Lite 2.1

  • Sync Gateway 2.1

Languages
  • Swift

Building a Cordova Plugin with Couchbase Lite

Beginner
Mobile Developer

In this tutorial, you will learn how to use Couchbase Lite in a Cordova plugin for an Ionic project targeting iOS and Android. The user Interface is written in JavaScript while the business logic and data model is written in native Swift/Java.

Component
  • Couchbase Lite 2.1

Languages
  • Swift

  • Java

  • Javascript

Building a React Native Module with Couchbase Lite

Beginner
Mobile Developer

In this tutorial, you will learn how to use Couchbase Lite in a React Native project for iOS and Android. The user Interface is written in JavaScript while the business logic and data model is written in native Swift/Java.

Component
  • Couchbase Lite 2.6

Languages
  • Swift

  • Java

  • Javascript

Xcode playground for Couchbase Lite Query

Beginner
Mobile Developer

A Xcode Playground to explore the Query API in Couchbase Lite 2.x. While the playground demonstrates the queries in swift, given the unified nature of the QueryBuilder API, you should be able to easily translate the queries to any of the other platform languages supported on Couchbase Lite.

Component
  • Couchbase Lite 2.8.1

Languages
  • Swift

Android Recycler Views with Couchbase Lite

Beginner
Mobile Developer

This tutorial will demonstrate how you can use Couchbase Lite as a data source for Recycler Views in your Android application.

Component
  • Couchbase Lite 2.1

Languages
  • Java

Using Couchbase Server as a User Profile Store

Beginner
Developer

An comprehensive tutorial that demonstrates how to use Couchbase Server, Spring Data, Full-Text Search and Cross Data Center Replication (XDCR) to build a production-grade User Profile Store micro-service.

Component
  • Couchbase Server 6.0

Languages
  • Java

  • .NET

Using Couchbase Server as a User Profile Store

Beginner
Developer

An comprehensive tutorial that demonstrates how to use Couchbase Server, Spring Data, Full Text Search, and Cross Data Center Replication (XDCR) to build a production-grade User Profile Store micro-service.

Component
  • Couchbase Server 6.0

Languages
  • Java

  • .NET

Couchbase Mobile Workshop

Intermediate
Mobile Developer

An in-depth walkthrough of the Couchbase Mobile capabilities on iOS, Android, Java (desktop) and .NET (UWP and Xamarin) platforms. At the end of this multi-part tutorial, you should have a good understanding of how to architect a solution using Couchbase Mobile, including data modeling, sync, access control, channels, database CRUD and the query API in Couchbase Mobile.

Component
  • Couchbase Server 6.5

  • Couchbase Lite 2.7

  • Sync Gateway 2.7

Languages
  • Swift

  • Java (Android and Desktop)

  • C#

Customer 360 Data Ingestion

Intermediate
Developer

The goal of a Customer 360 system is to deliver a single, consistent view of all your data in one platform within an enterprise where that data is split up between many different systems. This tutorial will be focusing mainly on getting a complete view of a customer/person.

Component
  • Couchbase Server 6.0

  • Kafka

  • Docker

Languages
  • Javascript

Using Couchbase Server as a Session Store

Intermediate
Developer

An in-depth tutorial that demonstrates how to use Couchbase Server for session storage. You will learn how to read, write session data and query session data with N1QL for business insights.

Component
  • Couchbase Server 6.0

Languages
  • C#

  • Java

Boosting Spring Data Performance with Couchbase

Intermediate
Developer

Spring Data provides an easy programming model for data access in both relational and non-relational databases. It became very popular among Java/JVM developers because of the small learning curve and low codebase.

However, developers quite often run into performance issues while using it, this tutorial aims to explain some of the common problems and how to fix them.

Component
  • Spring Data

Languages
  • Java

OpenID Connect with Sync Gateway

Intermediate
Mobile Developer

A complete tutorial on how to set up an OpenID Connect authentication (using the implicit flow method) for Couchbase Sync Gateway.

Component
  • Couchbase Server 6.5

  • Couchbase Lite 2.7

  • Sync Gateway 2.7

  • Keycloak

Languages
  • Java

Build Your Own Tutorial

Beginner
Developer

Looking to build a tutorial and share with the Couchbase community? Take a look at our tutorial template you could use as a starting point.

Component
  • Couchbase Tutorials

Languages
  • AsciiDoc