Commits

Brent Tubbs  committed 2cf3dcc

init

  • Participants
  • Tags v1

Comments (0)

Files changed (4)

+syntax: glob
+settings.yaml
+*swp
+._*
+NOTES
+node_modules/*
+*log
+web: node web.js

File package.json

+{
+  "name": "node-example",
+  "version": "0.0.1",
+  "dependencies": {
+    "express": "2.5.x"
+  },
+  "engines": {
+    "node": "0.8.x",
+    "npm": "1.1.x"
+  }
+}
+var express = require('express');
+
+var app = express.createServer(express.logger());
+
+app.get('/', function(request, response) {
+  response.send('Hello World!');
+});
+
+var port = process.env.PORT || 5000;
+app.listen(port, function() {
+  console.log("Listening on " + port);
+});