views:

93

answers:

2

I looking at using Javascript server side and took a look at persevere/pintura but for a novice like me, I need more documentation and tutorials and CouchDB seems to have a lot of that but is it used as a server side js tool?

Kind Regards

+1  A: 

No, CouchDB is a document-oriented database that can be queried and indexed in a MapReduce fashion using JavaScript. CouchDB also offers incremental replication with bi-directional conflict detection and resolution.

http://couchdb.apache.org/

CommonJS can be used for server side JavaScript, see here: http://www.commonjs.org/

NodeJS is another: http://nodejs.org/

SQLMenace
Thanks, i have learning javascript, ruby, html, css and have not bothered with the backend. Could you list the tools needed to use javascript from client-side to serverside? I assumed database and server side covered the same area with just a small overlap but i guess not. I am currently checking the links u game me.Thanks
RubyGladiator
JS is also used for validation and creating lists and views in different formats. With Couchapp you can write complete webapps which are hosted on CouchDB and with the moving parts written in JS which runs hosted in the server.
Peter Tillemans
This looks really cool and simple. The only worrying thing is the word "constraints" in their description. I will read through the documentation to check it out. "CouchApps are JavaScript and HTML5 applications served directly from CouchDB. If you can fit your application into those constraints, then you get CouchDB's scalability and flexibility "for free""
RubyGladiator
@SQLMenace "No" is not really the right answer, as CouchDB (via integration with SpiderMonkey) actually *does* allow for Javascript to be run in the server for things like map/reduce, as you say. It's on the server, and it's running Javascript, so how is that not "server-side Javascript"? Generally the term means, "not in the web browser where everybody still expects it to be."
Pointy
@Pointy......thanks for clearing that up, would u recommend CouchApps?
RubyGladiator
+1  A: 

http://nodejs.org/ is a great example for server-side javascript. If you don't want to write your complete webapp on NodeJS you can trigger it via the node command.

Marcel J.
I wouldnt mind writing my whole web app Nodejs. I didthe chat tutorial a few months back, but i didnt have any knowledge of how it worked under the hood, i am currently taking a look at.
RubyGladiator