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 -gUsage
$ webt
#or
$ webt target_pathPlugins
webT support some plugins to cater to different needs.
mysql: Initcommon/mysql.jsand corresponding configuration items. Use mysql.redis: Initcommon/redis.jsand corresponding coniguration items, also use redis to store the sessions. Use mredis and connect-mredis.logger: Initcommon/logger.jsand 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,mkdirpandlogfilestream.socketIo: Init a simplesocket.ioexample 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
