Template project for a Golang server running a React SPA frontend.
  • Go 41%
  • TypeScript 33.1%
  • JavaScript 16.1%
  • HTML 9.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-12 21:55:47 -04:00
frontend init frontend 2026-07-12 21:47:20 -04:00
.gitignore init gitignore 2026-07-12 21:48:14 -04:00
go.mod init go module 2026-07-12 21:48:19 -04:00
go.sum init go module 2026-07-12 21:48:19 -04:00
LICENSE init license 2026-07-12 21:48:08 -04:00
main.go init main runtime 2026-07-12 21:48:25 -04:00
README.md init readme 2026-07-12 21:55:47 -04:00
Taskfile.yml init taskfile 2026-07-12 21:48:30 -04:00

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.

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.