npm install
Create an environment variable with your Cloudant credentials e.g.
export CLOUDANT_URL=https://myusername:[email protected]
node crud.js
This creates a database called crud
, adds a document mydoc
, reads it back, updates it, deletes it and then deletes the database.