WebFund 2013F: Tutorial 7: Difference between revisions
No edit summary |
|||
Line 7: | Line 7: | ||
===package.json=== | ===package.json=== | ||
<source line lang="javascript"> | <source line lang="javascript"> | ||
{ | |||
"name": "application-name", | |||
"version": "0.0.1", | |||
"private": true, | |||
"scripts": { | |||
"start": "node app.js" | |||
}, | |||
"dependencies": { | |||
"express": "3.4.0", | |||
"jade": "*" | |||
} | |||
} | |||
</source> | </source> | ||
===app.js=== | ===app.js=== |
Revision as of 13:55, 18 October 2013
Today you should spend your time understanding the following code. This is a complete node application. Consider the following:
- What does each line do? Specifically, what errors/loss of functionality would you lose if you remove any line?
- What node functionality has been omitted from this application relative to the other ones we have covered this term?
- How would you get this application to run?
The midterm will primarily cover this code. So this is your chance to prepare. Good luck!
package.json
{
"name": "application-name",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node app.js"
},
"dependencies": {
"express": "3.4.0",
"jade": "*"
}
}
app.js
index.jade