difference between web backend and app backend
i was just wondering if i could use the same server with my backend code, i used with my web app, for my app, barely know anything about backend btw, just curious
6 Replies
depends on how you write your backend
your backend can produce HTML code, 99+% of the page prerendered and ready to serve to the browser
your backend can also just ben an API that a static frontend site consumes to get dynamic data
the former is really hard to reuse for an app
the latter is perfect to reuse
i see but how much of a difference is there between the two? the web backend and the app one
in the first case, a lot. In the second case, none
It Depends™️
so i should just use an api?
that's an option, yes
if you want to write an app and a web frontend that both interact with the same data, then it's probably the best option
YES YES that's exactly what im planning on building thanks man, ill do that