webt
v0.0.11
Published
A node connect base web template
Downloads
18
Readme
webT
A node connect base web template
Install
npm install webt -g
Usage
$ webt
#or
$ webt target_path
Plugins
webT support some plugins to cater to different needs.
mysql
: Initcommon/mysql.js
and corresponding configuration items. Use mysql.redis
: Initcommon/redis.js
and corresponding coniguration items, also use redis to store the sessions. Use mredis and connect-mredis.logger
: Initcommon/logger.js
and corresponding configuration, also use this logger module to log some error in project. All the log files will split by day.This plugin will import 4 modules:moment
,ms
,mkdirp
andlogfilestream
.socketIo
: Init a simplesocket.io
example with the connect.restfulWrap
: Init a wraper for rest json api. Also init an example to show how to use this wraper. This plugins use restful-wrap to do restful controllers wrap, use parameter to do params check, use var-style to transform the inputs and outputs.
Example
- This is an example web generate by webT.
- A much more complex example is cnpmjs.org. We use webT generate the demo, and then add more feature to it.
Authors
$ git summary
project : webT
repo age : 4 days ago
commits : 19
active : 4 days
files : 33
authors :
18 dead-horse 94.7%
1 dead_horse 5.3%
License
MIT