Any straight JSGI examples?

59 views
Skip to first unread message

gimmeJS

unread,
May 9, 2011, 12:11:42 PM5/9/11
to appenginejs
Is it possible to write an appengine::js application using straight
JSGI? Seems nitrojs.org is no longer available so the new improved
example isn't available atm.

I've run through the example here:
http://obtiva.com/blog/50-deploying-a-javascript-application-to-google-appengine-in-30-minutes

which was great, but really like the one function js interface offered
by jsgi.

Also, can anyone point me to the new improved example since
nitrojs.org is down?

Thanks in advance.

gjs.

George Moschovitis

unread,
May 9, 2011, 1:00:23 PM5/9/11
to appen...@googlegroups.com

gimmeJS

unread,
May 10, 2011, 9:24:48 AM5/10/11
to appenginejs
Thanks George, that's a perfect starting point. I replaced the code
in main.js with:

exports.app = function(request) {
return {
status: 200,
headers: {"Content-Type": "text/plain"},
body: ["hello INTERWEB"]
}
}

and it worked! I'm going to look a bit more into the nitro middleware
once I get a bit more of a feel for the way things work.

gJS.

On May 9, 1:00 pm, George Moschovitis <george.moschovi...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages