Template-based Web Application Framework
Kites is a framework providing
dynamic applications assembling and
Template-based extracting. Namely it contains a lot of templates and extensions to help building a new application quickly.
# install kites cli$ npm install -g @kites/cli# init a projectkites init my-project --template mvc# move to project workspacecd my-project# install dependenciesnpm install# run app server, navigate browser atnpm start
# start project in development modenpm run dev
To change environment use cmd
set NODE_ENV=development or use options your IDE provides. If you don't specify node environment kites assumes
development as default.
- See Overview for an overview of concepts, guides and general documentation.
- See Templates for installation guides how to create a new project based on Kites Templates.
Here is the list of built-in templates and their implementation status:
mvc: Assembling all into complete ship (default)
basic: Template for building from scratch
apidoc: Template for API Documentation
express: Template for Express Application
chatbot: Template for generating an AI Chatbot
More templates, checkout issue #1
Kites is an eco-system and has many modules which can be assembled into a larger application. You are welcome to write your own extension or even publish it to the community.
- Write an article for implementing custom kites extension
Extensions auto discovery
Kites by default auto discovers extensions in the application's directory tree. This means
kites by default searches for files
kites.config.js which describes the extensions and applies all the extensions that are found.
// let kites autodiscover the extensionsvar kites =logger:console:transport: 'console'level: 'debug');// init the kiteskites
Kites extensions auto discovery slows down the startup and can be explicitly using
use function with mode
// do not let kites autodiscover the extensions// do not load extensions from locations cachevar kites =discover: falseextensionsLocationCache: falselogger:console:transport: 'console'level: 'debug');// explicitly use extensionskites
DEBUG=kites node app.js
set DEBUG=kites & node app.js
logger property which can be used to adapt the logging as you like. You can for example just add winston console transport and filter in only important log messages into console.
var kites = ;var winston = ;kiteslogger;
Copyright (c) 2018 Nhữ Bảo Vũ