- dbpathを指定して起動
$ mongod --dbpath <path>
前回、requestを使って取得したhtmlから言葉を抜き出してみました
今回使用したのはcheerio→→ https://github.com/cheeriojs/cheerio
npm でインストール
$ npm install cheerio --save
--save
をつけるとpackage.jsonに反映してくれる
https://github.com/mikeal/request
$ npm install request
$ git clone [email protected]:tokunami/sample.git
Cloning into 'sample'...
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (4/4), done.
var server = http.createServer();
createServer
メソッドでhttp.Server
オブジェクトを作成http.Server
はクラスで、次のイベントを持つEvent Emitter
Event | 関数 |
---|
今回はntwitterを使用。 https://github.com/AvianFlu/ntwitter ntwitterの中身については別途確認します
####Node.js + express + socket.io で画像を返すチャットルーム