Ask HN: Is it feasible to have just a REST API as a back end for web app?
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.
I don't know enough about web architectures to evaluate this approach. Is it possible to develop a site/app with this approach regardless of complexity of the app, or is this only suitable for certain scenarios?
Any help would be greatly appreciated. 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. 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. Are you asking "is it okay to not use a html templating engine in the back end"? Yes, it is entirely possible.