Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Node.js CRUD example

Install dependencies

npm install

Set credentials

Create an environment variable with your Cloudant credentials e.g.

export CLOUDANT_URL=https://myusername:[email protected]

Run

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.