cth-cli
v1.0.0
Published
a backend cli based on koa and sequelize-typescript
Downloads
2
Readme
cth-cli
A backend cli based on koa
and sequelize-typescript
.
initial project in my repo
Installation
npm install cth-cli -g
Commands
init [project_name]
: create a straightforward and clean project.(Default iscth-backend
)if project_name is
testdemo
,you will downloadtestdemo
branch in my repo which has more examples but It is no benefit to you to develop you own project.cth-cli init mydemo01 cth-cli init testdemo
add <model_name>
: add a clean table model only withname
attribute insrc/db/models
and a simple router insrc/routers
.Then you can expand them according to your ideas.
cth-cli add player
Options
--gitee
: download initial template from gitee.(Default is github)cth-cli init mydemo01 --gitee cth-cli init testdemo --gitee
Also you can compare my testdemo with official example.