Hello,
I’m very new to DigitalOcean and getting a server setup. Is this tutorial still current?
https://www.digitalocean.com/community/tutorials/how-to-install-couchdb-and-futon-on-ubuntu-14-04
I know CouchDB is at 2.0 now.
I’m also wondering how do you securely expose CouchDB to PouchDB from a mobile client such as Ionic 2.
I currently have a Cloudant setup with NodeJS and I’m trying to find an alternative due to API call costs.
Thanks,
dhndeveloper
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I just ran through the steps above here on both Ubuntu 14.04 and 16.04 and it installs CouchDB “1.6.1”.
I found this script to install CouchDB 2.0 on Ubuntu 16.04 that works great:
https://github.com/afiskon/install-couchdb/blob/master/install-couchdb.sh
I’ll be posting some additional info on configuring CouchDB 2.0 to use SSL as soon as I grind my way through it.
The guide should still work for Ubuntu 16.04 or Ubuntu 16.10 (16.04 being the latest LTS release that supersedes 14.04). Generally speaking, when newer releases are made (i.e. CouchDB 2.x), repository packages are updated to match, so running the commands in the guide should install the latest stable version that the maintainers of the repository have access to.
As for PouchDB, you may want to take a look at the guide below. It’s recent and details how to use it combined with SQLite for local storage using Ionic.
http://gonehybrid.com/how-to-use-pouchdb-sqlite-for-local-storage-in-ionic-2/
and for general purpose, the following guide for security and authentication between CouchDB and PouchDB:
http://www.mircozeiss.com/couchdb-security-and-pouchdb-authentication
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.