CouchDB is an open source Apache project and, like MongoDB, is a no-SQL, document database.
In this section, we will see how to use CoffeeScript to perform create, read, update, and delete actions with a CouchDB database.
You can find more information on CouchDB, including information on downloading, installing, and using CouchDB from the project's home page located at http://couchdb.apache.org/.
We will use the
cradle NPM package to connect to our CouchDB server. In this example, we will open a connection and verify the existence of a database and, if it does not exist, we will create it.
Once CouchDB has been installed, install cradle with the following command:
npm install cradle --save ...