A fullstack boilerplate that integrates golang + webpack + react + serverless ssr
It's a SPA that uses:
- Golang: httprouter, postgres, gorm, custom request logger
- UI: React
- styling: styled-components and tailwindcss
- Webpack: webpack-dev-server, postcss, file-loader, graphql-tag, babel-loader,
- Tooling: Babel, Eslint, prettier, husky
- Serverless Framework for the Server Side Rendering. Each page served by golang makes a request to a nodejs lambda to get the HTML and CSS before rendering the SPA.
Right now your need terminal to up services (will improve in the future):
- Backend:
$ go run server.go
- Frontend:
$ cd frontend
$ npm install
$ npm start
- Serverless SSR:
$ cd serverless-ssr
$ npm install
$ npm start
- Go to http://localhost:8080
I'll use this in my next side projects. (wish me luck!)