Upkar Lidder Developer Advocate, IBM > ulidder@us.ibm.com > @lidderupk > upkarlidder.com/talks
IBM Cloud Sign up - https://ibm.biz/Bdqn4r
@lidderupk
IBM Developer
1. Create IBM Cloud Account using THIS URL
3. Create a Cloudant Service from the Catalog - use Lite plan (you can have only one lite service with the free account)
2. Check your email and activate your account. Once activated, log back into your IBM Cloud account using the link above.
FINALLY - Download Postman - https://www.getpostman.com/downloads/
@lidderupk
IBM Developer
@lidderupk
IBM Developer
@lidderupk
IBM Developer
@lidderupk
IBM Developer
Apache CouchDB is a JSON document database
@lidderupk
IBM Developer
@lidderupk
IBM Developer
@lidderupk
IBM Developer
@lidderupk
IBM Developer
@lidderupk
IBM Developer
http://nosql-database.org/
https://en.wikipedia.org/wiki/NoSQL
@lidderupk
IBM Developer
@lidderupk
IBM Developer
@lidderupk
IBM Developer
Database
Document
GET /_all_dbs
PUT /$dbname
DEL /$dbname
GET /$dbname
GET /$dbname/_all_docs
GET /$dbname/_id
DEL /$dbname/_id?rev_id
@lidderupk
IBM Developer
@lidderupk
IBM Developer
1. Create IBM Cloud Account using THIS URL
3. Create a Cloudant Service from the Catalog - use Lite plan (you can have only one lite service with the free account)
2. Check your email and activate your account. Once activated, log back into your IBM Cloud account using the link above.
FINALLY - Download Postman - https://www.getpostman.com/downloads/
@lidderupk
IBM Developer
Pick "Use both legacy credentials and IAM"
@lidderupk
IBM Developer
4. Copy your username, password and host. We will use them later to set Postman up.
5. Click on "Manage" and "Launch Cloudant"
@lidderupk
IBM Developer
6. Create a new database. Call it users. Remember this name, we will use it later.
7. Create a new document inside the database
@lidderupk
IBM Developer
8. Add JSON to the new document
@lidderupk
IBM Developer
@lidderupk
IBM Developer
@lidderupk
IBM Developer
@lidderupk
IBM Developer
@lidderupk
IBM Developer
@lidderupk
IBM Developer
Map/Reduce
Lucene
Mango
_all_docs
_id
@lidderupk
IBM Developer
Map emits / returns a key and value pair
Reduce can be used to aggregate the values emitted by the map function
_sum
_count
_stat
_approx_count_distinct
@lidderupk
IBM Developer
[["Afghanistan","Male"]]
%5b%5b%22Afghanistan%22%2c%22Male%22%5d%5d
CURL - every operation has an endpoint https://ibm.biz/cloudant-api Javascript - npm install --save @cloudant/cloudant Java - java-cloudant Python - pip install cloudant Swift - pod 'SwiftCloudant'
Cloudant Documentation - https://ibm.biz/cloudant-api
CouchDB Documentation - https://docs.couchdb.org/en/stable/api/index.html
schema-free document model
immutable documents, nothing is deleted, everything is appended
each document is JSON
Data
Map Reduce
HTTP Based
Easy Replication
@lidderupk
IBM Developer
Upkar Lidder, IBM
@lidderupk
https://github.com/lidderupk/
ulidder@us.ibm.com
@lidderupk
IBM Developer