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

  1. Create a directory for your projects $ mkdir my-project
  2. Change directory into your project: $ cd my-project
  3. Run: $ npm init koats-starter
  4. Start the dev server locally with: $ npm run dev
  5. 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

3

Version

1.0.0

License

MIT

Unpacked Size

1.05 MB

Total Files

36

Last publish

Collaborators

  • holmok