Using CouchDB to serve HTML.

Posted by alxross on Stack Overflow See other posts from Stack Overflow or by alxross
Published on 2009-12-15T23:27:14Z Indexed on 2010/05/06 19:58 UTC
Read the original article Hit count: 219

Filed under:
|
|

I'm trying to use CouchDB with HTML/standalone REST architecture. That is, no other app server other than CouchDB and ajax style javascript calling CouchDB.

It looks like cross scripting is a problem. I was using Cloudkit/Tokyo Cabinet before and it seems like the needed callback function was screwing it up in the URL.

Now I'm trying CouchDB and getting the same problem.

Here are my questions:

1) Are these problems because the REST/JSON store like CouchDB or CloudKit is running on a different port from my web page? They're both run locally and called from "localhost".

2) Should I let CouchDB host my page and serve the HTML?

3) How do I do this? The documentation didnt seem so clear...

Thanks, Alex

© Stack Overflow or respective owner

Related posts about couchdb

Related posts about JSON