Express项目案列(零):HelloWord项目

  1. 安装Express npm install -g express-generator

    新版需要安装generator命令行工具 旧版的安装命令是npm install -g express

  2. 创建项目 express helloword cd helloword npm install npm start

    进入项目目录通过npm install添加依赖和npm start来启动

  3. 访问

    浏览器访问http://localhost:3000/

hello express

posted @ 2016-07-07 21:11  CB蜡笔小新  阅读(81)  评论(0)    收藏  举报