Skip to content
Myr

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 file

Take 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 back
1
2/**3 * Module dependencies.4 */5

Updated helloworld example with acceptance test.Robert Sköldbefore adoption0593cf4

line 6why, one step back
6var express = require('../../');

Added app.render() local precedence testTj Holowaychukbefore adoptionf98c112

line 7why, one step back
7

Updated helloworld example with acceptance test.Robert Sköldbefore adoption0593cf4

line 8why, one step back
8var app = module.exports = express();

Added app.render() local precedence testTj Holowaychukbefore adoptionf98c112

lines 9–13why, one step back
9
10app.get('/', function(req, res){11 res.send('Hello World');12});13

Updated helloworld example with acceptance test.Robert Sköldbefore adoption0593cf4

lines 14–17why, one step back
14if (!module.parent) {
15 app.listen(3000);16 console.log('Express started on port 3000');17}