Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Developing an API With Node.js Using Couchbase and Ottoman [Video]

DZone's Guide to

Developing an API With Node.js Using Couchbase and Ottoman [Video]

Check out this video tutorial that looks at putting together an API with Node.js, Couchbase, and its ODM, Ottoman!

· Database Zone ·
Free Resource

Download the Altoros NoSQL Performance Benchmark 2018. Compare top NoSQL solutions – Couchbase Server v5.5, MongoDB v3.6, and DataStax Enterprise v6 (Cassandra).

Not too long ago I released a lengthy tutorial video on the topic of creating an API with Node.js and Couchbase that used N1QL for querying. However, that is only one of several ways to get the job done. If you're a Node.js developer that is familiar with MongoDB, you'll recognize a tool called Mongoose that acts as an ODM for the data layer. Couchbase also has an ODM tool, this time called Ottoman.

Using an ODM makes it very easy to map your data layer to Node.js objects. Ottoman handles all the querying and any relationships between documents along the way.

Below is a video tutorial that accomplishes the same end goal as the N1QL video, but this time it uses Ottoman.


I recommend watching both videos to get an understanding of the different ways you can use Couchbase with Node.js and to better determine which way is best for you.

For more information on the things you can do with Node.js and Couchbase, check out the Couchbase developer portal.

Related Refcard:

Download the whitepaper, Moving From Relational to NoSQL: How to Get Started. We’ll take you step by step through your first NoSQL project.

Topics:
couchbase ,node.js ,ottoman ,api ,database

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}