WebFund 2013F Lecture 10

From Soma-notes
Jump to navigation Jump to search

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

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