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
Jochem14mo 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
pary14mo ago
i see but how much of a difference is there between the two? the web backend and the app one
Jochem
Jochem14mo ago
in the first case, a lot. In the second case, none It Depends™️
pary
pary14mo ago
so i should just use an api?
Jochem
Jochem14mo 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
pary14mo 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