web-zero v0.5.0
web-zero
Nodejs web project code scaffold base on Koa@2.
Typescript Version: https://github.com/qixin1991/web-ts.git
demo

Install
Warning: Dependency on Node
v7.6.0or higher
npm install -g web-zeroUsage
ā web-zero
Usage: web-zero operation [init | new | delete] option [module_name] [databse_type]
Example:
web-zero init Create a api project named current dir.
web-zero new users Create routes/users.js and dao/users.js files.
web-zero new users mysql Create users module with DB base on mysql.
web-zero delete users Delete routes/users.js and dao/users.js files.Example
- Init project
mkdir web-zero-example && cd web-zero-example
web-zero init- Create a new Biz Module
web-zero new usersExecute this in terminal, you'll see routes/users.js and dao/users.js that have been created.
- Create a new Biz Module with dao base on mysql
web-zero new users mysqlExecute this in terminal, you'll see routes/users.js and dao/users.js that have been created.
- Delete a Biz Module
web-zero delete usersExecute this in terminal, you'll see routes/users.js and dao/users.js that have been deleted.
- Start webapp
Remember to edit
conf/db_${env}.js. These files are db settings.
npm install
npm startNow, open browser to visit http://localhost:3000
Have Fun!
TODO
Add mysql regular CRUD support
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago