1.0.0 • Published 7 months ago

cth-cli v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

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 is cth-backend)

    if project_name is testdemo,you will download testdemo 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 with name attribute in src/db/models and a simple router in src/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.