Open vunb opened 6 years ago
It's better if we have a general command called init
:
For shortkey:
kites init [my-app-name] -t [template] -d [directory]
Or:
kites init [my-app-name] --template [template] --directory [directory]
Params:
Note: The name of template is corresponding to a branch of vunb/kites which it will be downloaded to the current working directory.
Now we have done to create a chatbot easily with Nodejs by:
npm install @kites/cli
kites init my-chatbot --template chatbot
npm install
npm start
npm install @kites/cli
kites init my-chatbot --template chatbot
docker-compose build
docker-compose up -d
More detail: https://github.com/vntk/vntk-chatbot-framework
Example for use: SPA Template
// Every http GET request: `ip:port/myapp*` will be routed to static with folder name `myapp`.
// `kites.config.json` with option: `discover: false`
await kites().use(spa('myapp')).init()
// Or
// Every http GET request: `ip:port/myapp*` will be routed to static with folder name `public`.
await kites().use(spa('myapp', './public')).init()
Wanted the list of cli tools:
mvc
: Assembling all into complete ship (default), documentbasic
: Template for building from scratchapidoc
: Template for API Documentation, nodevn/kites-apidocexpress
: Template for Express Applicationrestful
: Template for generating a RESTful API Serverspa
: Template for generating a Single Page Application (kites/spa)cms
: Template for generating a Content Management System (CMS)chat
: Template for generating a Chat applicationchatbot
: Template for generating an AI Chatbot application, vntk/chatbot, documentvideocall
: Template for generating a Video Call applicationelectron
: Template for creating a desktop application withnative_modules
gateway
: Template for creating a microservices API Gatewayoauth|oauth2
: Template for creating an OAuth2 Servercrawler
: Template for crawl news, products, ...Syntax:
Example:
Then a new project will be generated at the current directory.