koa-boiler

by llambda

llambda /koa-boiler

Koa 2.7 boilerplate for a production-ready Node.js app with async/await.

426 Stars 27 Forks Last release: Not found ISC License 95 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

koa-boiler

Koa "boilerplate" for a production ready app, demonstrating the following features:

  • Socket.io
  • IP pinning, via socketio-sticky-session (supports reverse proxies)
  • Multi-process clustering
  • ETags and conditional get
  • Gzip compression
  • Signed, cookie-based sessions
  • Request logging (morgan)
  • Static file serving
  • Favicon middleware
  • HTTP/2 (with TLS and on-the-fly certificate generation)
  • Drop root privileges after acquiring port
  • Routing
  • Example async route
  • ejs template example
  • Marko template example (featuring async and streaming support)
  • html-template-tag ES6 Tagged Template example, for compiling HTML template strings.
  • Aphrodite support for colocating your styles with your JavaScript component. Note: Styletron is probably a better choice, I just haven't had time to add it here yet
  • ~~Both old Koa 1.0 and new 2.0 style middleware. koa-adapter / koa-adapter-bluebird to convert old 1.0 middleware to 2.0.~~ Adapter no longer needed. All middleware is Koa 2.0 compatible.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.