koa-ts-cli

1.0.3 • Public • Published

koa-ts-cli

A simple CLI for create koa + ts project: koats create myProject.

Templates

koats provide three templates that are all based on ts.

This three template has the following three common features.

koa v2

Typescript

Jest

APIDOC

Docker

Eslint

Husky

Installation

 npm i -g koa-ts-cli

Create Project

 koats create myProject
 # Choose your favorite template.
 
 cd myProject
 npm install

In Development Mode

 cd myProject
 npm run dev

NOTE: If you choose koa-ts-full-template or koa-ts-full-stack-template, you need to do some configuration.

In Porduction Mode

 npm run build
 cd myProject/dist
 npm run prod

NOTE: If you choose koa-ts-full-template or koa-ts-full-stack-template, you need to do some configuration.

Run In Docker

 cd myProject
 npm install
 npm run build
 sudo docker build -t koa-ts-api-server .
 sudo docker run -it --name koa-ts-api-server -8080:8080 koa-ts-api-server

Test

 cd myProject
 npm run test

Readme

Keywords

Package Sidebar

Install

npm i koa-ts-cli

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

9.9 kB

Total Files

10

Last publish

Collaborators

  • simplexd