Koa Js and the power of mounting
April 2, 2015
I’ve been writing quite a lot of Koa applications, but most of them have been small. Now I’m doing a little bit bigger website. It consists of three parts:
- A public site that is just static html, served with static-now. The site will do API calls back to the server for the content.
- An administration site for administration of the text content of the site. This will be based on my example koa example blog
- An API serving the content from use form the static site.
Absolutely nothing humongous but still big enough that you need to think about application structure a little bit.
That’s when I came to think about koa-mount. In this post I wanted to show you what I’ve learned about this powerful little middeleware, at the heart of Koa thinking.
The tag-line on the koa-mount page says...