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
Jochem
Jochem16mo ago
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
pary
paryOP16mo ago
i see but how much of a difference is there between the two? the web backend and the app one
Jochem
Jochem16mo ago
in the first case, a lot. In the second case, none It Depends™️
pary
paryOP16mo ago
so i should just use an api?
Jochem
Jochem16mo ago
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
pary
paryOP16mo ago
YES YES that's exactly what im planning on building thanks man, ill do that
Want results from more Discord servers?
Add your server