Home > Back-end >  How do I use Go for backend for svelte MPA?
How do I use Go for backend for svelte MPA?

Time:09-01

I would like to use go for the webserver for my svelte application that has multiple html pages. I would prefer it if I could use a file system based router but any would be fine. I also need this to work with some kind of development server that has hot reload.

I hope I am understanding all this and its terminology correctly (I'm not very experienced with this kind of thing) so please correct me if I'm wrong.

CodePudding user response:

Check out these two articles:

Creating a website using Golang and Svelte

Combine Go (golang) and SvelteKit for GUI

I am currently using Go for my API and then a seperate client in svelte (sveltekit) that makes fetch calls to the Go API. Although this isn't exactly provided in those articles, I believe they will provide some solid context.

  • Related