20140121 19:15-20:26
Node.jsのレッスン
- _#05 Webサーバーを作ってみよう
http://dotinstall.com/lessons/basic_nodejs/26205- server.listen() にセットするIPアドレスは実際にそのマシンに割り当てられているローカルIPじゃないとダメ。適当に設定したら動かなくて悶絶した。
- _#06 設定を外部ファイルに移してみよう
http://dotinstall.com/lessons/basic_nodejs/26206- exportsオブジェクトを使ったモジュール間のやり取りのお勉強
- _#07 URLによって処理を変えてみよう
http://dotinstall.com/lessons/basic_nodejs/26207- request.url プロパティにリクエストされたパスが入っているので、それを元に switch 文で出力を出し分けるサンプル