3 ms·
for more javascripty DB/server stuff http://dev.helma.org/ http://dev.helma.org/ is (though relatively unknown) the premier (kinda) server side javascript libra
by Avshalom 18y ago
for more javascripty DB/server stuff http://dev.helma.org/ http://dev.helma.org/ is (though relatively unknown) the premier (kinda) server side javascript library/framework,
- tlrobinson 18y agoThere's a lot of monolithic server side JavaScript packages like Helma, but I want something more modular. Also, Helma is written in mostly Java I believe, rather than JavaScript, which is ok if you don't want to hack on Helma itself (or if you know and like Java), but I'd rather have an all (or at least mostly) JavaScript solution. Anyway, I started working on part of a solution for this: Jack (http://github.com/tlrobinson/jack http://github.com/tlrobinson/jack), which is like Rack (http://rack.rubyforge.org http://rack.rubyforge.org) but for JavaScript. If you don't know, Rack/Jack are like bridges between webservers and Ruby/JavaScript web apps/frameworks, so framework/app devs don't need to worry about what server they're using, they just write to the Rack API. It also includes "middleware" which lets you pre and post process requests, which allows for neat things like intercepting some requests and serving static files, or gzipping responses, etc (in a server agnostic way) Right now it only works with Rhino+Jetty but ideally it will work with a number of JavaScript interpreters and webservers. It also includes a Sinatra-like routing framework (called Roundabout), which lets you define routes like GET("/user/{username}", function() { var user = this.wildcards["username"]; // do stuff! return resulting_html; } Jack and Roundabout, combined with your other frameworks of choice, like ActiveRecord.js (http://activerecordjs.org/ http://activerecordjs.org/) make a pretty good solution, I think.