0.5.0 • Published 7 years ago

web-zero v0.5.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

web-zero

Nodejs web project code scaffold base on Koa@2.

Typescript Version: https://github.com/qixin1991/web-ts.git

demo

web-zero-demo

Install

Warning: Dependency on Node v7.6.0 or higher

npm install -g web-zero

Usage

āžœ 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 users

Execute 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 mysql

Execute this in terminal, you'll see routes/users.js and dao/users.js that have been created.

  • Delete a Biz Module
web-zero delete users

Execute 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 start

Now, open browser to visit http://localhost:3000

Have Fun!

TODO

  • Add mysql regular CRUD support
0.5.0

7 years ago

0.4.9

7 years ago

0.4.8

7 years ago

0.4.7

7 years ago

0.4.6

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.9

8 years ago

0.2.8

8 years ago

0.2.7

8 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.19

8 years ago

0.1.18

8 years ago

0.1.17

8 years ago

0.1.16

8 years ago

0.1.15

8 years ago

0.1.14

8 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.0

8 years ago