Added Node.js static file server

This commit is contained in:
benweet 2013-09-28 00:41:15 +01:00
parent 9853f30563
commit 5909cc8ce1
2 changed files with 8 additions and 0 deletions

View File

@ -6,6 +6,9 @@
"directories": {
"doc": "doc"
},
"dependencies": {
"express": "3.x"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-requirejs": "~0.4.1",

5
server.js Normal file
View File

@ -0,0 +1,5 @@
var express = require('express');
var app = express();
app.use(express.compress());
app.use(express.static(__dirname));
app.listen(process.env.PORT || 3000);