DemandHunt 海外社区机会雷达
简中
独立开发与工具 Hacker News · 2021-10-14

JS 世界为什么没有 Django/Rails 那种「一站式」框架?

Why is there no Django/Rails equivalent in the JavaScript world?

30 秒速览
  • 谁在提Hacker News · 2021-10-14 · 52 赞 · 82 评
  • 想要什么JS 世界为什么没有 Django/Rails 那种「一站式」框架?
  • 能做成什么「约定优于配置」的 JS 全栈模板 + 托管(含认证、支付、邮件、后台),卖省下的两周。

原帖原话

“But why none of them are getting a real traction while node.js is popular for many years now?”

“Sails、Nest、Blitz 都存在,但为什么在 Node 火了这么多年之后,没有一个真正跑出来?”

— Hacker News · 2021-10-14 · news.ycombinator.com/item?id=28861970…

需求背景与痛点

痛在哪

JS 生态选择太多,独立开发者花大量时间在拼装脚手架而不是做产品。

可以做成什么

能做成什么

「约定优于配置」的 JS 全栈模板 + 托管(含认证、支付、邮件、后台),卖省下的两周。

怎么验证它

  1. 读完原帖的评论区,把重复出现的具体场景记下来——重复次数就是需求的密度。
  2. 搜索「全栈框架 / 开发者体验」相关的现有工具,确认它们只覆盖了哪一环。
  3. 用一句话落地页,投回 Hacker News 或同类社群,看有没有人主动问价格。

已有方案与差异

RedwoodJS、Blitz、Next.js + Prisma 模板

社区原声 · 热门评论

My experience having written all of the above is that JS is significantly more fragmented, and also has to deal with a frontend-backend severed line. Rails, Flask, Django (and PHP, purely server side JS that generate HTML with templates like express) are basically all "backend serving frontend and templating". Front end JS is more of a "frontend + backend with frontend serving backend" in the form of server side rendering being more akin to running a browser, loading the frontend, and then serialising that to a page. This is the complete opposite of the above. It's kind of a different mindset,

— ev1

I think it's simply that (and this is from my memory only): Node.js was THE first back-end JS thing, and its "micro" philosophy kind of set the precedent for everything else that follow in that space. It was the time when people started to feel Django/Rails are cumbersome for some of their needs, too, so the MVC approach never caught on for JS devs. So I think it's just popularity. Pick whatever tool you deem suitable!

— nhgiang

At the start of node.js, I frequently saw full web applications written in it "traditionally", fetching data and writing it into pug/haml/jade/handlebars/whatever else templates (during the callback-pyramid-hell days). It was pretty much just another stack like a less opinionated django. People used express, returned HTML, etc. Then the SPA frameworks came into the fray, and I never really saw node.js being used server side like that much anymore.

— ev1
打开原帖核对

同一痛点的其他讨论

相关机会