This commit is contained in:
Lloyd Brookes
2013-06-04 12:45:30 +01:00
commit ba7e7519d3
4 changed files with 20 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules

0
README.md Normal file
View File

12
package.json Normal file
View File

@ -0,0 +1,12 @@
{
"name": "web-server",
"version": "0.1.0",
"description": "Local web server",
"main": "index.js",
"repository": "",
"author": "",
"license": "BSD",
"dependencies": {
"connect": "~2.7.11"
}
}

7
server.js Normal file
View File

@ -0,0 +1,7 @@
var connect = require('connect');
var app = connect()
.use(connect.logger('dev'))
.use(connect.static(process.cwd()))
.use(connect.directory(process.cwd()))
.listen(8000);