Hey Guys!
I need some help with a project that I am trying to get up and running using HTML5 and Javascript as the main vehicle!
BUT, as always, there is a problem.
I have been following a tutorial on the official “pouchDB” documentation but without success. http://pouchdb.com/getting-started.html
I can copy and paste code easily but there seems to be a problem with the whole thing.
Step 1: Ok… NOTE: Instead of running the python server as they have I am running apache2 (which works).
Step 2: Ok… But I am using a local version (as suggested) of pouchdb-nightly.js
Steps 3 – 7: Ok … they are just copying code.
Step 8: Installing CouchDB. For this step I ran (on the Pi) apt-get install couchdb which worked fine and installed properly.
Step 9: Enable CORS … This is where it seems to have fallen apart. I ran the command many times last night and it failed every time with either: “Curl error(7)” or “Server Error”.
This morning I decided to change the file /etc/couchdb/local.ini (as described by this link: http://bell-dev.blogspot.com.au/2012/12/installing-couchdb-on-raspberry-pi.html?q=couchdb) so that the
bind_address=192.168.*.* (stars replacing internal network IP address). This worked and I managed to run all the commands except the last one:
'"accept, authorization, content-type, origin"'
This could just be me not knowing what to do.
Anyway, I have no idea why the app just does nothing. Can someone please help me out?
The webserver is running here: http://cmdlab.zapto.org:81/ with couch DB services running here: http://cmdlab.zapto.org:5984/