Installation
wget https://couchdb.apache.org/repo/bintray-pubkey.asc -qO - | sudo apt-key add -
echo "deb https://apache.bintray.com/couchdb-deb $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list.d/couchdb.list
sudo apt update
debconf-set-selections <<\EOF
couchdb couchdb/adminpass string admin
couchdb couchdb/adminpass_again string admin
couchdb couchdb/mode select standalone
couchdb couchdb/bindaddress string 0.0.0.0
EOF
sudo apt-get install -y couchdb
Login
http://SERVER_IP:5984/_utils/
user: admin
pass: admin
Commands
# check connection
curl -X GET http://admin:admin@u1804:5984
# create DB
curl -X PUT http://admin:admin@u1804:5984/store1
# list DBs
curl -X GET http://admin:admin@u1804:5984/_all_dbs
# delete DB
curl -X DELETE http://admin:admin@u1804:5984/store2
# create object to DB
curl -X PUT http://admin:admin@u1804:5984/store1/product1 -d'{ "Name": "foo" , "Size": "5", "Note" : "test1" }'
# get object from DB
curl -X GET http://admin:admin@u1804:5984/store1/product1
Links
https://websiteforstudents.com/install-apache-couchdb-on-ubuntu-16-04-17-10-18-04/
http://docs.couchdb.org/en/latest/install/setup.html
https://wiki.ubuntuusers.de/CouchDB/
http://docs.couchdb.org/en/2.1.2/intro/tour.html