nodejs+express +jade模板引擎 新建项目

先 安装 nodejs
iDEAAM 2015/7/16 22:47:25
然后安装 npm install express
iDEAAM 2015/7/16 22:47:35
然后安装 npm install -g express-generator
然后 express myapp
然后 npm start
 
使用浏览器访问地址:http://localhost:3000/
可以看到:
Express
Welcome to Express
 
 
安装Mongodb驱动
npm install -g mongoose               -g//代表全局安装
posted @ 2015-07-16 22:51  iDEAAM  阅读(282)  评论(1编辑  收藏  举报