Tool to help creation of components
-
Install module gobaly
npm install kiwi-server-cli -g
-
Init It creates a default server to start. Also it creates a tsconfig by default. By default this command creates a folder environments with two environments: 1) environment.ts and 2) environment.prod.ts. Also you can create as many environments as you want.
kc init
-
Create controller
kc controller [<name> | <path/name>]
-
Create Middlewares
kc middleware [ after | before ] [<name> | <path/name>]
-
Build This command use the tsconfig created by default using init command. The specify what environment file in the environments folder is goint to be compiled. Also the code will be generated on a folder dist/.
kc build -e <env>