Skip to content

@alejandro /t.js secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\nApp (dlq) is running on Node.JS ' + process.version);
}).listen(16269);
=======
/**
* Module dependencies.
*/
=======
>>>>>>> a47b634abf73ffb31468d74adf47ad9ac72d5950
var express = require('express')
, routes = require('./routes');
=======
var express = require('express');
routes = require('./routes');
>>>>>>> 170abaaa44713cdc92d4ed2393bffbee33b618aa
var app = module.exports = express.createServer();
app.configure(function(){
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(app.router);
app.use(express.static(__dirname + '/public'));
});
app.configure('development', function(){
app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
});
app.configure('production', function(){
app.use(express.errorHandler());
});
// Routes
app.get('/', routes.index);
app.listen(16269);
console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env);
>>>>>>> 1bf1b0fccf7e5503e7ef1c1cce697c2574a34915
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.