6 ms·
I think it's import to keep your backend/api isolated from these FE frameworks. Backends live forever, these frameworks not so much.
by Ins43b 3y ago
I think it's import to keep your backend/api isolated from these FE frameworks. Backends live forever, these frameworks not so much.
- himujjal 3y agoYeah. This is exactly why I think the meta-frameworks wont really matter in a decade’s time or will disappear. InertiaJS is an idea/implementation I like and its way of mitigating this issue of meta-framework dependence.
- dimmke 3y agoI agree with you, but what that actually looks like can vary. Personally, I found maintaining a second backend only codebase and hitting it from the SvelteKit backend to be really cumbersome. You can write controllers and even an API and keep it in its own folder system.
- Ins43b 3y agoI'm currently doing this with Next.js with a "custom server". Allows for sharing TypeScript interfaces/types and the express instance quite easily. It's just one big vscode project. But custom servers are frowned upon and will probably disappear in future versions which will make things slightly more complicated.