task

REVIEW VIDEO

[previously]

  1. [00:00] install node and npm via webmatrix
    1. ]
  2. [00:00] create a new "empty" node site using webmatrix templates
    1. ] empty != empty, empty === hello world example
    2. ] demo
  3. [00:00] serve static files from public directory
    1. ] css, javascript and images can be served from
  4. [05:00] install express MVC framework for node using npm install
    1. ] use command line, navigate to current directory, run command to install package
  5. [06:00] to use a package
    1. ] declare var = require(express);
    2. ] demonstrated creating an http server with express VS std node, then sends same "hello world" using express
    3. ] requesting http://localhost:3000/somethingElse - returns message cannot get s
  6. [07:00] setting up a route, with an id parameter, custom url patterns
    1. ] a different response for a different request 
  7. [08:00] setting up a custom response for requests that dont match any defined routes, custom 404
    1. ] example - app.use (function(){resp,req,next}
  8. [09:00] use app.use to log all requests to server, custom logging
    1. ] intercept all app requests, use console.log to
  9. [10:00] render html using a templating system
    1. ] using ejs, npm install
    2. ] edit custom url , instead of res.send("message")
    3. ] use res.render("some data")
  10. [11:00] create template to display data
    1. ] created new folder, views, to hold templates
    2. ] new template, mypage.ejs extension
  11. [12:00] summary
    1. ] in 20 lines of simple javascript and we have got ....
    2. ] web server,
    3. ] MVC framework
    4. ] custom error messages
    5. ] custom url patterns
    6. ] custom logging

[currently]

  1. ]  

[next]

  1. ] ADD <iframe width="640" height="360" src="https://www.youtube.com/embed/gE4AsGKTv8k" frameborder="0" allowfullscreen></iframe>
  2. ] REF = learn node

 

Details Photos Edit more

Details

ID: 5232

NAME: REVIEW-VIDEO-sanderson-1

DESCRIPTION: #### - tutorial for getting started with nodejs

START DATE TIME: 2015-06-04 17:16:01

EST DURATION: 01:00:00

END DATE TIME: 2015-06-04 18:16:01

STATUS: To-Do

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities