Skip to content

Commit

Permalink
Carga inicial nodejs + express
Browse files Browse the repository at this point in the history
  • Loading branch information
iobaixas committed Dec 7, 2011
1 parent d223650 commit 4893e4a
Show file tree
Hide file tree
Showing 536 changed files with 38,193 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

/**
* Module dependencies.
*/

var express = require('express')
, routes = require('./routes')

var app = module.exports = express.createServer();

// Configuration

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(3000);
console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env);
6 changes: 6 additions & 0 deletions src/node_modules/.bin/express.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/node_modules/.bin/jade.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions src/node_modules/connect/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions src/node_modules/connect/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/node_modules/connect/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

81 changes: 81 additions & 0 deletions src/node_modules/connect/lib/cache.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

106 changes: 106 additions & 0 deletions src/node_modules/connect/lib/connect.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4893e4a

Please sign in to comment.