Settings

Theme

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

2 points by 4k 8 years ago · 3 comments · 1 min read


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.

yoz-y 8 years ago

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.

fenwick67 8 years ago

Are you asking "is it okay to not use a html templating engine in the back end"?

TomMarius 8 years ago

Yes, it is entirely possible.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection