ran icon indicating copy to clipboard operation
ran copied to clipboard

Why express and not Koa?

Open espoal opened this issue 8 years ago • 2 comments

Why express and not Koa, or Micro?

I vote koa because it uses promises, enabling deferred startup, e.g.: the server starts immediately, and eventually it will connect to the db.

espoal avatar Jul 02 '17 12:07 espoal

Hey @servermeta, Actually I used "express.js" because It's well-maintained and stable framework on "node.js". And also It's default one on "next.js" :) But the thing is that maybe we can create add-on system that developers can choose any framework that they want.

for example; Developer runs npm run add-ons -> Choose add-on section ---> 1) Server frameworks <= ---> 2) Marketing ---> Exit

-> Which "Server framework" do you want to use? ---> 1) Express <= ---> 2) Koa ---> 3) Hapi ---> 4) Micro

-> It will overwrite your server.js file. Do you want to continue? ---> Yes <= ---> No

And then It will replace with new framework after install packages, replace server.js.

Sly777 avatar Jul 02 '17 14:07 Sly777

Why even bother yourself with different servers if its intent is only to render page, if you want api - make separate project

srghma avatar Aug 10 '17 08:08 srghma