ionic + pouchdb + couchdb

Update 2016 below to the end

Here my answer to this great tutorial:

http://gonehybrid.com/how-to-use-pouchdb-sqlite-for-local-storage-in-your-ionic-app/


hello!
I used this tutorial as a starting point, and I’ve added the ability to use a couchdb public server.
In this way you can share notes (TODOS) with several people, easily.

The couchdb server is quite easy to install on debian (I’ve used for this demo server digitalocean) but could install where you want.
Here’s an article on how to install a server couchdb, on debian7.
https://cwiki.apache.org/confluence/display/COUCHDB/Debian

If you can not use Linux, you can buy the couchdb service. On the same page of the previous link, there are a couple of ads.

Remember that you need to have a couchdb server and you must insert its IP address in the file www/js/todos.service.js

//      Remember to create the “todo2s” db in the pouchdb server.
var _remoteDB2 = new PouchDB(“http://<your-server-public-IP>:5984/todo2s”);

Here you can download my ionic environment
https://drive.google.com/file/d/0B8sk-7K8X3Y1TFMwZWFnWEExV3M/view?usp=sharing

and below some pictures

—-

hola
he utilizado este tutorial como punto de partida, y le he añadido la posibilidad de utilizar un servidor couchdb público.
En esta forma se puede compartir notas (Por Hacer) con varias personas, de forma fácil.

Cada entrada tiene un boton de Edit y Show.
En la area de texto se puede insertar html, with fotos, bold text, etc.

El servidor couchdb es bastante fácil de instalar en debian (yo para esta demo he utilizado un servidor de digitalocean) pero se pude instalar donde quieres.
Aquí un articulo de como instalar un servidor couchdb, on debian7.
https://cwiki.apache.org/confluence/display/COUCHDB/Debian

Si no sabes utilizar linux, puedes comprar el servicio couchdb. En la misma página del link anterior, hay un par de publicidades.

Aquí podes descargar mi ambiente ionic
https://drive.google.com/file/d/0B8sk-7K8X3Y1TFMwZWFnWEExV3M/view?usp=sharing

y a bajo unas fotos

Recuerda que para que funcione tienes que tener un servidor couchdb y hay que insertar su dirección IP en el fichero www/js/todos.service.js

//      Remember to create the “todo2s” db in the pouchdb server.
var _remoteDB2 = new PouchDB(“http://<your-server-public-IP>:5984/todo2s”);

 

 

UPDATE 2016

Here, the tutorial, how to install couchdb+futon on ubuntu 14.04:

https://www.digitalocean.com/community/tutorials/how-to-install-couchdb-and-futon-on-ubuntu-14-04

remember that you must use the ssh tunnel in order to access to futon control panel:

ssh -L5984:127.0.0.1:5984 user@your_server_ip

and then go to this link: http://localhost:5984/_utils/ with your browser.