small-express

0.1.3 • Public • Published

node-server

Simple http server and routing manager,

INSTALL

$ npm install small-express --save

USAGE

var small = require("small-express");
var app = small();

app.set("views", __dirname + "/views");

app.use(samll.static(__dirname + "/views"));

app.get("/", function (req, res) {
	res.send("hello world");
});

app.listen("5000", function() {
	console.log("App run at port 5000");
});

License

ISC

Package Sidebar

Install

npm i small-express

Weekly Downloads

0

Version

0.1.3

License

MIT

Last publish

Collaborators

  • papac