webt

0.0.11 • Public • Published

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: Init common/mysql.js and corresponding configuration items. Use mysql.
  • redis: Init common/redis.js and corresponding coniguration items, also use redis to store the sessions. Use mredis and connect-mredis.
  • logger: Init common/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 and logfilestream.
  • socketIo: Init a simple socket.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

Readme

Keywords

none

Package Sidebar

Install

npm i webt

Weekly Downloads

0

Version

0.0.11

License

none

Last publish

Collaborators

  • dead_horse