I’ve been thinking about different ways to set up web apps lately. There’s always talk about finding the right combo of frontend and backend tech. I think I stumbled onto something pretty good.
What I’m doing is using SvelteKit with the static adapter plus whatever backend I want (like Go or Rust).
Why this works well for me:
- I still get all the nice SvelteKit features during development. File routing, load functions, good dev tools, and other cool stuff they keep adding. But I don’t need to worry about running Node servers in production.
- When I build everything, it just becomes a regular SPA with basic HTML, CSS and JavaScript files.
- My backend only needs to handle API calls and serve static files. I can even pack the whole frontend into one Go executable which makes deployment super easy.
It seems like I get the good parts of modern frontend development but keep things simple when it’s time to deploy. The frontend and backend stay separate which I really like.
Anyone else tried something similar? Curious what others think about this approach.