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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Is it feasible to have just a REST API as a back end for web app?

2 点作者 4k超过 7 年前
Read about this approach at a few places: Have only a REST API as a backend and do everything else in the frontend JS framework.<p>I don&#x27;t know enough about web architectures to evaluate this approach. Is it possible to develop a site&#x2F;app with this approach regardless of complexity of the app, or is this only suitable for certain scenarios?<p>Any help would be greatly appreciated.

3 条评论

yoz-y超过 7 年前
In our company that is what we do. We have a REST API in Flask and two frontends. One is an end user client Electron application and the other is a web portal. Both the application and the portal are React applications.<p>My question would be only REST as opposed to what? For example our client application also have native plugins to connect with hardware and also does lot of processing locally.
fenwick67超过 7 年前
Are you asking &quot;is it okay to not use a html templating engine in the back end&quot;?
TomMarius超过 7 年前
Yes, it is entirely possible.