create-koats-starter
1.0.0 • Public • Published
KOATS-STARTER - a generator to create a Koa Typescript Web Server Template
To create a new project
- Create a directory for your projects
$ mkdir my-project
- Change directory into your project:
$ cd my-project
- Run:
$ npm init koats-starter
- Start the dev server locally with:
$ npm run dev
- Use this to start a great web site using Koa and Typescript
Stuff Included (third-party)
-
koa: well supported, extensible, simple web framework
-
koa-static: serve static assets with koa middleware
-
koa-hbs: handlebars view template middleware for koa
-
koa-bodyparser: body/form parsing of requests
-
@koa/router: router middleware for koa
-
config: dynamic and environmentally aware configuration
-
pino: low overhead, extensible, well supported logger
-
koa-pino-logger: koa/pino logging middleware
-
pino-tiny: simple pino formatter for local dev
-
Bootstrap 5: css framework
-
standardx: linting standard for typescript
-
prettier: make pretty code
-
ts-node: run TypesScript in without compiling first
-
nodemon: run app and restart on changes
-
typescript: compile TypeScript into JavaScript (and all the necessary
@types/*
libs)
Built-in
- error handling middleware
- graceful startup/shutdown
Package Sidebar
Install
npm i create-koats-starter
Weekly Downloads