TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Express, Koa or Hapi for today’s node newbies?

1 点作者 PabloR将近 9 年前
Today, to somebody new to Node and programming in general, which framework would you recommend learning, Express, Koa or Hapi? Express seemed to be the go to Node’s web framework a while back. Is it still the case these days?<p>Although I read several discussions supporting all of them I found opposing arguments some of which are:<p>- In spite of being extremely popular Express slowly getting obsolete, not being as much actively maintained as in the past and that implementing ES6 changes would be better done in a new framework. (As per Express site, version 4.14.0 supporting Node.js 6.x. was released on June 16, 2016)<p>- Not fond of Koa generators<p>- Hapi being too complex and requiring too much code for small projects

1 comment

cpg1111将近 9 年前
I pulled the trigger at work that all new services we build in Node use Koa if the need a web framework because it utilizes ES6&#x2F;7 features most effectively while still having a good bit of simplicity. That said, all of our legacy services, in Node, that need a web framework use Express. I find Express is a good beginner web framework and then once you understand ES 6&#x2F;7 features in more depth, Koa becomes rather easy to switch to.