node.js 创建第一个web应用
2020-11-18 03:19
标签:com http blog style div img c java log t tar 运行下面命令进行安装express: Usage: express [options]
[dir] Options: -h,
--help output usage
information install
dependencies: run the
app: node.js 创建第一个web应用,搜素材,soscw.com node.js 创建第一个web应用 标签:com http blog style div img c java log t tar 原文地址:http://www.cnblogs.com/itman70s/p/nodejs.html
-V,
--version output the version
number
-e,
--ejs add ejs
engine support (defaults to jade)
-H,
--hogan add hogan.js engine
support
-c, --css add stylesheet support
(less|stylus|compass) (defaults to plain css)
-f,
--force force on non-empty
directory
create : easy
create :
easy/package.json
create :
easy/app.js
create :
easy/public
create :
easy/routes
create :
easy/routes/index.js
create :
easy/routes/user.js
create :
easy/views
create :
easy/views/index.jade
create :
easy/views/layout.jade
create :
easy/views/error.jade
create :
easy/bin
create : easy/bin/www
create
: easy/public/images
create :
easy/public/javascripts
create :
easy/public/stylesheets
create :
easy/public/stylesheets/style.css
$ cd easy && npm
install
$ DEBUG=my-application
./bin/www
app.listen(3000);
to Express
页面了: