app.js
This file
Path
examples/helloworld/app.js
17 lines · 262 bytes · JavaScript
Last changed by
Updated helloworld example with acceptance test.Robert Sköldbefore adoption0593cf4
History of this fileTake it
The walk stopped after 200 commits: lines older than f98c112 point at it.
Added app.render() local precedence testTj Holowaychukbefore adoptionf98c112
lines 1–5why, one step back12/**3 * Module dependencies.4 */5Updated helloworld example with acceptance test.Robert Sköldbefore adoption0593cf4
line 6why, one step back6var express = require('../../');Added app.render() local precedence testTj Holowaychukbefore adoptionf98c112
line 7why, one step back7Updated helloworld example with acceptance test.Robert Sköldbefore adoption0593cf4
line 8why, one step back8var app = module.exports = express();Added app.render() local precedence testTj Holowaychukbefore adoptionf98c112
lines 9–13why, one step back910app.get('/', function(req, res){11 res.send('Hello World');12});13Updated helloworld example with acceptance test.Robert Sköldbefore adoption0593cf4
lines 14–17why, one step back14if (!module.parent) {15 app.listen(3000);16 console.log('Express started on port 3000');17}