Apache CouchDB / Cloudant Slides
- IBM Cloud Sign up: Use this link to sign into your account if you already have one : https://ibm.biz/Bdqn4r
- Postman to finish workshop
- I also really like Insomia
- Load existing workspace into postman or insomnia and change environment variables.
- Create database and load person.json into the database. You should get 1000 person records. I used Mockaroo to generate this random data.
-
Run couchdb locally
docker pull couchdb
docker run -d --name my-couchdb -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -p 5984:5984 couchdb
- docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 35c8c7264fa9 couchdb "tini -- /docker-ent…" 6 seconds ago Up 6 seconds 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp my-couchdb
-
Visit Futon
localhost:5984/_utils/
-
Create
users
database locally -
Configure replication
Don't forget to add database name to the end of the URL.
{ "source" : "https://$USERNAME1:$PASSWORD1.example.com/db", "target" : "https://$USERNAME2:$PASSWORD2@$ACCOUNT2.cloudant.com/db", }
RSVP on Crowdcast NOW:
❗Please do not forget to register on Crowdcast and join us using Chrome browser via Crowdcast on the event date!
❗In order to take full advantage of this workshop, please do not forget to sign up for a FREE IBM Cloud account prior to the workshop by using the link below. https://ibm.biz/BdqfxE
Join IBM Developer SF to get an introduction to Apache CouchDB - an open-source document-oriented database software that focuses on ease of use and having a scalable architecture.
A database in CouchDB is not a group of tables, but a collection of documents (JSON objects). We will use Cloudant, a hosted version on IBM Cloud, for the demo to avoid spending time installing locally.
We will look at how to create a simple CRUD application in CouchDB and then explore more advance features including:
- Design Documents to transform, update and validate documents
- Views to query documents using MapReduce
- Mango Query Server to write JSON queries
- HTTP API that makes CouchDB ideal for the web
Upkar Lidder is a Full Stack Developer and Data Wrangler with a decade of development experience in a variety of roles. He can be seen speaking at various conferences and participating in local tech groups and meetups. He is currently curious about the magic behind Machine Learning and Deep Learning, specifically use of NLP in chatbots. Upkar went to graduate school in Canada and currently resides in the United States.