2.2.3 • Published 12 years ago

ncore v2.2.3

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

nCore

A Core library for your node application infrastructure.

Status: Beta

Example

var Core = require("ncore").nCore,
	http = require("http");

Core.use("helloworld controller", {
	attach: function _attach(mediator) {
		mediator.on("helloworld", handleHelloWorld);

		function handleHelloWorld(res) {
			res.end("hello world");
		}
	}
});

Core.use("helloworld server", {
	init: function _init(done, mediator) {
		var server = http.createServer(handleRequest);
		server.listen(4000, done);

		function handleRequest() {
			mediator.emit("helloworld", res);
		}
	}
});

Core.init(onCoreReady);

function onCoreReady() {
	console.log("server ready");
}

Motivation

nCore is very similar to broadway except it has a different set of emphasis.

nCore is used to as a very minimal core to your entire application. Your entire application is made of nCore compliant modules. At bootstrap you load up all your modules into the core and then start the core.

The idea is also for all your modules to communicate through the mediator (which is the core).

Documentation

Installation

npm install ncore

Test

npm test

Contributors

  • Raynos

MIT Licenced

2.2.3

12 years ago

2.2.2

12 years ago

2.2.1

12 years ago

2.2.0

12 years ago

2.1.0

12 years ago

2.0.0

12 years ago

1.3.15

12 years ago

1.3.14

12 years ago

1.3.13

12 years ago

1.3.12

12 years ago

1.3.10

12 years ago

1.3.9

12 years ago

1.3.8

12 years ago

1.3.7

12 years ago

1.3.6

12 years ago

1.3.5

12 years ago

1.3.4

12 years ago

1.3.3

12 years ago

1.3.2

12 years ago

1.3.1

12 years ago

1.3.0

12 years ago

1.2.4

12 years ago

1.1.3

12 years ago

1.1.2

12 years ago

1.1.1

12 years ago

1.1.0

12 years ago

1.0.2

12 years ago

1.0.1

12 years ago

1.0.0

12 years ago

0.6.0

12 years ago

0.5.2

12 years ago

0.5.1

12 years ago

0.5.0

12 years ago

0.4.2

12 years ago

0.4.1

12 years ago

0.4.0

12 years ago

0.3.2

12 years ago

0.3.1

12 years ago

0.3.0

12 years ago

0.2.8

12 years ago

0.2.7

12 years ago

0.2.6

12 years ago

0.2.5

12 years ago

0.2.4

12 years ago

0.2.3

12 years ago

0.2.2

12 years ago

0.2.1

12 years ago

0.2.0

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago