Template project for a Golang server running a React SPA frontend.
- Go 41%
- TypeScript 33.1%
- JavaScript 16.1%
- HTML 9.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| frontend | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
| Taskfile.yml | ||
go-react-spa
This template project outlines how you can setup a golang server to serve a react frontend as an SPA. The routing is handled decleratively.
Helpful Links
Important files
- App.tsx
- This file contains all the routes declared.
- main.go
- This file contains API routes and the dynamic frontend serving via proxy to vite dev server or static build files.
- Taskfile.yml
- This file contains some helpful Tasks that allow you to quicker develop.