A CLI to automatically clone the Koa API Scaffold or the Koa API Scaffold with TS.
npx koa-api-starter [options]
-
-t, --typescript
: Use TypeScript template. (Default:false
) -
-d, --directory
: Specify the name of the directory to create. -
--add-deps
: Provide an array of extra dependencies you want to install. (Default:[]
) -
--add-dev-deps
: Provide an array of extra development dependencies you want to install. (Default:[]
)
-
Create a KOA Api in a specified directory:
npx koa-api-starter --directory my-koa-api
-
Create a KOA Api with TypeScript in a specified directory:
npx koa-api-starter --typescript --directory my-koa-api
-
Adding Extra Dependencies:
npx koa-api-starter --directory my-koa-api --add-deps mongoose axios
-
Adding Extra Dev Dependencies
npx koa-api-starter --directory my-koa-api --add-dev-deps @types/mongoose