+ All Categories
Home > Documents > CommonJS Frameworks

CommonJS Frameworks

Date post: 28-Jan-2015
Category:
Upload: janne-kuuskeri
View: 110 times
Download: 2 times
Share this document with a friend
Description:
List of the some of the more interesting CommonJS frameworks for web development.
Popular Tags:
8
CommonJS frameworks Janne Kuuskeri Monday, April 11, 2011
Transcript
Page 1: CommonJS Frameworks

CommonJS frameworksJanne Kuuskeri

Monday, April 11, 2011

Page 2: CommonJS Frameworks

RingoJS

Node.js

Narwhal

Monday, April 11, 2011

Page 3: CommonJS Frameworks

RingoJS

“Traditional” web framework

Runs on JVM (Rhino)

JSGI

Middlewares

Database access

Monday, April 11, 2011

Page 4: CommonJS Frameworks

exports.middleware = [ 'ringo/middleware/gzip', 'ringo/middleware/etag', 'ringo/middleware/error', 'ringo/middleware/notfound'];

exports.urls = [ [ '/docs', 'myapp/docs', 'getDocument' ], [ '/', 'myapp/actions' ]];

Monday, April 11, 2011

Page 5: CommonJS Frameworks

Node.js

Evented I/O

Reactor pattern

Asynchronous

Runs on V8

A lot of packages available

Monday, April 11, 2011

Page 6: CommonJS Frameworks

Narwhal

Runs on node, JSC and Rhino

Many CommonJS specs implemented

“Moving target”

Many packages available

Monday, April 11, 2011

Page 7: CommonJS Frameworks

Conclusions

Is JavaScript ready for the server?

Easier for startups and new apps

More limited support for legacy app integration

CommonJS is good initiative, time will show how it turns out

Node.js (and SSJS) is really hot at the moment

Learn the language if you are going to use it

Monday, April 11, 2011


Recommended