Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library C (libcouchbase) 2.0
Community Wiki and Resources
Wiki: C and C++ Client Library
Download Client Library (source)
C and C++ Client Library
Couchbase Developer Guide 2.0
Couchbase Server Manual 2.0
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
Couchbase Client Library C (libcouchbase) 2.0
Child Sections
Chapters

Chapter 2. Tutorial

Table of Contents

2.1. Simple Example
2.2. Additional Resources

This tutorial assumes you have installed libcouchbase on your systems per the installation instructions in the Getting Started section of this guide. Because the method of building a program based on libcouchbase may vary between Linux/Mac OS and Windows, this tutorial will focus on the components of the program rather than how to build it.

If you need to set up a server node or data bucket, you can do with the Couchbase Administrative Console, or Couchbase Command-Line Interface (CLI), or the Couchbase REST-API. For information and instructions, see:

After you have your Couchbase Server set up and you have installed the needed client libraries, you can compile and run the following basic program.