I am writing a sample of CouchDB. I intend to write a web application using AJAX and deploy it in a tomcat environment. Since I use CouchDB, I would like to know a way to interact with the CouchDB server. However, there were a few examples, but I have few worries about this.
1) When my application is deployed to a web server, is it possible to connect to it using CouchDB? Many examples use applications that are deployed in the CouchApp or Couch environment itself.
2) If so, eventually there will be problems with cross-domains. I found it here
Connect AJAX, CouchDB and JavaScript
However, will this be a problem? Is this the right way to achieve this?
3) To omit the above problems, is it possible to use some server side javascript implementation as an example of Rhino?
http://www.mozilla.org/rhino/doc.html
4) If I use Rhino above, it will not allow to use many java script libraries. How do I interact with CouchDB? Should I reference my own Javascript? Can't use something like jQuery?
5) What are the best libraries for the client side to achieve my goal?
Your help is appreciated.
thank
source
share