Vue.js の SPA を go:embed で埋め込んで connect-go で実装した API を呼び出すサンプル https://blog.arithmeticoverflow.com/posts/20230801-go-connect-embed-vue/
- Go 1.20
- NodeJS 18
- make command
- Ubuntu 22.04.2 LTS
- go version go1.20.6 linux/amd64
- node v18.16.0
- Clone this repository.
- Install dependencies.
make prepare
- Run the dev servers.
make dev
cd frontend; npm run dev;
(on another terminal)
Run make build