1) nvm install 7
2) npm i koa
3) node my-koa-app.js
const Koa = require('koa');
const app = new Koa();

app.use(async ctx => {
ctx.body = 'My First App';
});
app.listen(3000);

S.O.L.I.D Principles

Single Responsibility Principle



Js Object


Janaka Chinthana Dissanayake

I am an undergraduate student of SLIIT following BSc.(HonS ) in IT specialization in Software Engineering

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store