public
Description: Nitro Web Application Framework
Homepage: www.nitrojs.org
Clone URL: git://github.com/gmosx/nitro.git
nitro /
name age message
file README.md Sun Sep 06 00:34:03 -0700 2009 Minor. [gmosx]
directory docs/ Sat Oct 31 01:26:45 -0700 2009 Updated appengine doc. [gmosx]
directory example/ Wed Oct 14 00:50:58 -0700 2009 Minor. [gmosx]
directory lib/ Sat Oct 31 01:19:05 -0700 2009 Fix in atom generator. [gmosx]
file package.json Thu Aug 06 08:41:03 -0700 2009 Added JSONResponse. Updated package.json. [gmosx]
directory tests/ Tue Oct 13 03:13:24 -0700 2009 Updated example to use the new session. Removed... [gmosx]
README.md

Nitro

Nitro provides a library of carefully designed middleware and utilities for creating scalable, standards-compliant Web Applications with JavaScript. Nitro is build on top of Jack/JSGI, Narwhal/CommonJS and Rhino.

Nitro applications leverage (strict) Web Standards like XHTML/HTML, CSS, HTTP, XML, XSLT, ECMAScript 3.0, MicroFormats, etc. Typically, Nitro applications are a collection of programs that run on the server and the client. A control program dispatches work to the application programs and aggregates their output. The application's output is consumed by modern web browsers, web services or other applications through a standard REST interface.

Getting Started

At the moment, Nitro requires customized versions of Narwhal and Jack. Please get patched versions from:

http://github.com/gmosx/jack http://github.com/gmosx/narwhal

After you have installed Narwhal and Jack you are ready to run the simple example:

$ cd example
$ jackup 

The application will start listening at localhost:8080, so use your favourite browser to verify that everything works correctly.

For a more sophisticated exampe that implements a simple Blog on Google App Engine have a look at:

blog-gae

Directory structure

/docs: Contains documentation files in markdown format. The docs are published at www.nitrojs.org/docs

/lib: Contains the implementation of the web application framework

/example: Contains a simple example

/tests: Contains unit and functional tests.

Google App Engine

Nitro applications run great on Google App Engine. Have a look at the blog-gae example for a demonstration of using Nitro and appengine package to develop a simple Blog.

Related projects

Nitro is an ecosystem of related projects:

Caveats

Nitro is under intense development. Changes to the API are to be expected.

Credits

License

Copyright (c) 2009 George Moschovitis, http://gmosx.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.