go-react-serverless-ssr-boilerplate
A fullstack boilerplate combining Go, webpack, React, and Serverless Framework — an experiment in SSR with a Go backend.
- go
- react
- serverless
- ssr
- webpack
- boilerplate
- experiment
go-react-serverless-ssr-boilerplate
go-react-serverless-ssr-boilerplate is a fullstack boilerplate stitching together Go (backend), webpack + React (frontend), and Serverless Framework (deploy to Lambda). The question was: can you SSR React from a Go server running inside a Lambda?
Spoiler: yes you can, but the ergonomics don't compete with Next.js for the usual cases. The experiment was worth it for understanding what a Go server needs to do to inject pre-rendered HTML, how client-side hydration gets wired up, and where the friction points are when you try to step outside Next's happy path.
Archived in 2022. Useful as a conceptual reference; the webpack setup and React version are out of date compared to what you'd write today. If you want SSR + Go, look at frameworks like
templor just serve a Vite/Next build from Go behind a reverse proxy instead of rebuilding the whole thing from scratch.
For more, see the README on GitHub.