kite-tools

0.4.6 • Public • Published

kite-cli

Command line tools for creating Kite applications.

This tool initialize a folder with TypeScript configuration file tsconfig.json and some basic files for developing Kite application.

Installation

npm install kite-tools

Usage

  1. Create a project folder, and change working directory to it:
mkdir kite-test
cd kite-test
  1. Run npm init to initialize node developing environment:
npm init
  1. Run Kite command line tools and follow the prompt to initialize Kite project:
kite init

For using everything with default, simply press enter key to walk through the wizard.

  1. Compile and run

Template source files are placed into the project if everything ends normally in the above steps, so compile and run this application:

tsc
node dist/app.server.js
  1. Create Kite modules

create a controller as file "src/controllers/user/login.controller.ts":

kite -a user/login

create a service as file "src/services/user.service.ts":

kite -s user

create model as file "src/models/user.model.ts":

kite -m user

please note that entry point "dist/app.server.js" is the default setting, please replace it with your entry point file name if you specified other values.

Readme

Keywords

none

Package Sidebar

Install

npm i kite-tools

Weekly Downloads

1

Version

0.4.6

License

MIT

Unpacked Size

22.3 kB

Total Files

14

Last publish

Collaborators

  • kite-js