Browse Source

initial

master
Lloyd Brookes 12 years ago
commit
ba7e7519d3
  1. 1
      .gitignore
  2. 0
      README.md
  3. 12
      package.json
  4. 7
      server.js

1
.gitignore

@ -0,0 +1 @@
node_modules

0
README.md

12
package.json

@ -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

@ -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);
Loading…
Cancel
Save