1.0.0 • Published 2 years ago
cth-cli v1.0.0
cth-cli
A backend cli based on koa and sequelize-typescript.
initial project in my repo
Installation
npm install cth-cli -gCommands
init [project_name]: create a straightforward and clean project.(Default iscth-backend)if project_name is
testdemo,you will downloadtestdemobranch 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 testdemoadd <model_name>: add a clean table model only withnameattribute insrc/db/modelsand 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.
1.0.0
2 years ago