Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
.gitignore
README.md
crud.js
package.json

README.md

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:mypassword@mydomain.cloudant.com

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.