Hacker News new | ask | show | jobs
by synergy20 1455 days ago
So go is trying to be a server-side-render framework here, what about the SPA style in that go is a simple json-api server, and let SPA to do all the template and render, is gin the best framework for that? new to golang here.
3 comments

I think that remains a very valid use case. In Copper, you can create one of those with the CLI. For example `copper create -frontend=vite:react github.com/nasa/starship` will create a react app with a JSON backed API ready to go
I found Echo a better framework than gin, since it cleans up some of the warts around error handling etc.

As for database, jet is my favourite thus far.

I've been using Mux & sqlc in a few projects and it's working out great.
both look interesting, "Mux is looking for new Maintainers"