WebFund 2013F Lecture 10: Difference between revisions
Created page with "The audio from the lecture given on October 9, 2013 is available [http://homeostasis.scs.carleton.ca/~soma/webfund-2013f/lectures/comp2406-2013f-lec10-00Oct2013.m4a here]." |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
The audio from the lecture given on October 9, 2013 is available [http://homeostasis.scs.carleton.ca/~soma/webfund-2013f/lectures/comp2406-2013f-lec10- | The audio from the lecture given on October 9, 2013 is available [http://homeostasis.scs.carleton.ca/~soma/webfund-2013f/lectures/comp2406-2013f-lec10-09Oct2013.m4a here]. | ||
==Notes== | |||
October 9 | |||
* for question 3 | |||
http.createServer(app).listen(app.get('port').... | |||
app.set('port', process.env.PORT||3000); | |||
** in process.env.port you change the port | |||
** execve | |||
*** program binary //path to program you want to run | |||
*** command -line arguments | |||
*** environment variables //variable name, variable value | |||
**** normally inherited from parent processes | |||
** can set port in the shell by saying ie: | |||
*** export PORT = 5000 | |||
** env puts out the variables the current process has | |||
** can set up multiple node processes by changing the port in the shell and using the same code | |||
* q 6 add a count to the properties of the object | |||
[[END OF PREMIDTERM STUFF]] | |||
* in public we basically have a static web server | |||
* why minified? | |||
** Client side javascript is minified | |||
** removes all unnecessary characters | |||
*** ie comments | |||
* bootstrap needs jquery | |||
** so we're including bootstrap AND jquery | |||
* jquery is foundational thing of all modern web apps | |||
* $. or ($) | |||
** jquery object | |||
* jquery is client side only | |||
** javascript queying of the DOM |
Latest revision as of 16:15, 10 November 2013
The audio from the lecture given on October 9, 2013 is available here.
Notes
October 9
- for question 3
http.createServer(app).listen(app.get('port').... app.set('port', process.env.PORT||3000);
- in process.env.port you change the port
- execve
- program binary //path to program you want to run
- command -line arguments
- environment variables //variable name, variable value
- normally inherited from parent processes
- can set port in the shell by saying ie:
- export PORT = 5000
- env puts out the variables the current process has
- can set up multiple node processes by changing the port in the shell and using the same code
- q 6 add a count to the properties of the object
- in public we basically have a static web server
- why minified?
- Client side javascript is minified
- removes all unnecessary characters
- ie comments
- bootstrap needs jquery
- so we're including bootstrap AND jquery
- jquery is foundational thing of all modern web apps
- $. or ($)
- jquery object
- jquery is client side only
- javascript queying of the DOM