https://www.zhihu.com/question/19793473
http://nqdeng.github.io/7-days-nodejs
http://www.cnblogs.com/zapple/p/5683016.html
http://cnodejs.org/topic/53c652bfc9507b404446ee40
http://www.9958.pw/post/nodejs_lesson
http://www.runoob.com/bootstrap
https://www.npmjs.com/package/jwt-simple
npm install
npm install -g express
npm install -g express-generator
npm install -g supervisor
npm install -g forever
npm install moment
npm install mysql
npm install jwt-simple
express -e www
install dependencies:
> cd myapp && npm install
run the app:
> SET DEBUG=myapp:* & npm start
//express_demo.js 文件
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send('Hello World');
})
var server = app.listen(8080, function () {
var host = server.address().address
var port = server.address().port
console.log("应用实例,访问地址为 http://%s:%s", host, port)
})