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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How can I build a full-stack app the "modern" way?

4 点作者 aosaigh3 个月前
I&#x27;m a full-stack developer.<p>I used to build template-driven websites with Django and Django templates. It was great.<p>I now build back-end REST APIs using Django and DRF. I also build front-end SPAs using Vue, React, Ember etc. that talk to my Django API. It&#x27;s good.<p>I&#x27;ve started building SSR JavaScript apps using the likes of Next.js and Nuxt.js. They also talk to my Django APIs but also have their own edge servers. It&#x27;s not good.<p>I&#x27;ve found that these SSR apps introduce an enormous amount of complexity that I haven&#x27;t been able to fully justify.<p>I believe that part of this complexity arises from adding your own API to the equation, instead of ditching it and going all in on the &quot;one full-stack codebase&quot;.<p>But how are people creating fully featured apps with this approach? How are you stitching together a database, auth-layer, geo-spatial layer, complex querying, server-side state, session, caching etc. all into an &quot;api&#x2F;&quot; folder within your app?<p>I&#x27;m not trying to start a flame-war here, I genuinely would like to drink the Kool Aid and try building an app the way &quot;I&#x27;m supposed to&quot;.

1 comment

DANmode2 个月前
&gt; How are you stitching together a database, auth-layer, geo-spatial layer, complex querying, server-side state, session, caching etc. all into an &quot;api&#x2F;&quot; folder within your app?<p>Conceptually, I think you&#x27;re looking for Go. Surprisingly pleasant for all-encompassing webdev.<p>&gt; I genuinely would like to drink the Kool Aid and try building an app the way &quot;I&#x27;m supposed to&quot;.<p>Isn&#x27;t that what React and Next&#x2F;npm are?