0.3.2 • Published 12 years ago

mode v0.3.2

Weekly downloads
114
License
-
Repository
github
Last release
12 years ago

mode.js

A node.js web framework for real-world applications.

Installation

mode.js is primarily built as a true MVC framework, but its simplicity allows you to use it straight out of the box as well.

MVC project

Install mode globally:

$ npm install -g mode

Create project folder and open it:

$ mkdir foo && cd foo

Build MVC structure in current folder:

$ mode init

Start app:

$ mode start

Go to localhost:1337*

* Change port or other options in conf/settings.js

Non-MVC project

Install mode locally:

$ npm install mode

Open new .js file:

$ vim foo.js

Initialize mode:

var mode = require('mode');
mode.init();

Start mode, with a connection callback:

mode.start({port: 1337}, function(path, args, conn) {
  conn.close('You are trying to open: ' + path);
});

Start app:

$ node foo.js

Go to localhost:1337

0.3.2

12 years ago

0.3.1

12 years ago

0.3.0

12 years ago

0.2.2

12 years ago

0.2.1

12 years ago

0.2.0

12 years ago

0.1.0

12 years ago

0.0.1

12 years ago