Welcome to Koa(tutorial -01)

Vihanga Malshan(it19111766)
2 min readApr 11, 2021

In here we are going to discuss about koa.js web application framework.

Koa.js is a minimal and flexible Node.js web application framework. It is a very small framework(600 loC) which provides the required tools to build app and is quite flexible. There are numerous modules available on npm for koa, which can be directly plugged into it. Koa can be thought of as the core of express.js without all the bells and whistles. And also it is an open source framework developed and maintained by creators of Express.js, the most popular node web framework.

Why Koa?

Koa has a small footprint (600 Loc) and it is a very thin layer of abstraction over the node to create server side apps. it is completely pluggable and has a huge community. This also allows us to easily extend koa and use it according to our needs. It is build using the bleeding edge technology (ES6) which gives it an edge over older framework such as express.

Pug

Pug(earlier known as jade) is a terse language for HTML template.

  1. Produces HTML
  2. Supports dynamic code
  3. supports reusability(DRY)

it is one of the most popular templating language used with koa.

MongoDB and Mongoose

MongoDB is an open-source, document database designed for ease of development and scaling. We will use this database to store data.

Mongoose is a client API for node.js which makes it easy to access our database form our Koa application,

--

--

Vihanga Malshan(it19111766)

I am a 3rd-year Software Engineering undergraduate at the Sri Lanka Institute of Information Technology- SLIIT, Reg.no : IT19111766