Skip to content
/ entire Public

Build features for your websites like you build modules for node!

Notifications You must be signed in to change notification settings

vonwao/entire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entire

Build features for your websites like you build modules for node! Click here for more detailed docs

Install

npm install https://github.com/entirejs/entire/tarball/master

KOA Setup

var koa = require('koa');
var app = koa();
var path = require("path");

var entire = require("entire");

app.use(entire());

app.listen(3000);

Simple Module

app.js
entire_modules
	simple_module
		package.json
		node.js

package.json

{
 "name":"simple_module",
 "router": "./node.js"
}

node.js

module.exports = function(app){
	app.get("/", function*(){
		this.body = "simple module";
	});
}

Running

node --version -> 0.11.9

PATH=path/to/custom/modules/folder node --harmony app.js

About

Build features for your websites like you build modules for node!

Resources

Stars

Watchers

Forks

Packages

No packages published