1.用Express 应用程序生成器 express-generator 快速搭建express框架

1.1安装: npm install express-generator -g

1.2 生成目录:express -e .

命令:express -e .   express表示安装express   -e 表示使用ejs作为模板   . 表示当前目录中

1.3 安装依赖:npm install

D:\nodejs\es6\server>npm install express-generator -g
C:\Users\administrator\AppData\Roaming\npm\express -> C:\Users\administrator\AppData\Roaming\npm\node_modules\express-generator\bin\express-cli.js
+ express-generator@4.16.
added packages from contributors in .962s D:\nodejs\es6\server>express -e . warning: option `--ejs' has been renamed to `--view=ejs' create : public\
create : public\javascripts\
create : public\images\
create : public\stylesheets\
create : public\stylesheets\style.css
create : routes\
create : routes\index.js
create : routes\users.js
create : views\
create : views\error.ejs
create : views\index.ejs
create : app.js
create : package.json
create : bin\
create : bin\www install dependencies:
> npm install run the app:
> SET DEBUG=server:* & npm start

最新文章

  1. FFmpeg学习4:音频格式转换
  2. 《javascript权威指南》读书笔记(连载)
  3. ASP.NET MVC中的Razor语法
  4. Android Performance Optimization
  5. 20145325张梓靖 实验五 "JAVA的网络编程"
  6. HBase shell
  7. java枚举实例
  8. SQL SERVER 组内排序
  9. eclipse中tomcat发布失败(Could not delete May be locked by another process)原因及解决办法
  10. DBA_Oracle数据库运维监控(案例)
  11. Laravel中URL,ACTION,ROUTE区别
  12. IOS 图片阴影,圆角等处理
  13. JAVA时钟
  14. Linux 数学运算
  15. php生成批次唯一code(转)
  16. angularJS插入html及更换iframe的src
  17. LeetCode(28)-Remove Duplicates from Sorted Array
  18. js默认参数实现方法
  19. C#创建安装、卸载部署程序
  20. Unity3D 代码加密保护工具

热门文章

  1. Git you are not allowed to push code to protected branches on this project?
  2. (转)nginx-rtmp-module和ffmpeg搭建实时HLS切片
  3. 使用urllib2打开网页的三种方法(Python2)
  4. IOS 十六进制字符串转换成UIColor
  5. swift实现AES解密
  6. 【转】如何让虚拟目录里面的webconfig不继承网站的设置
  7. linux下安装https证书
  8. LightOJ - 1284 Lights inside 3D Grid —— 期望
  9. iOS Assertion failure in -[UITableView _classicHeightForRowAtIndexPath:]
  10. Linux_异常_02_WinSCP上传文件时显示Permission denied