PROJECT_NAME
Generated by kool create go-react.
Usage
go run ./
Development
Dev Mode
Dev mode uses Vite's dev server for frontend hot-reload. Run these in two terminals:
Terminal 1 - Start the Vite dev server:
cd PROJECT_NAME-react && bun run dev
Terminal 2 - Start the Go backend in dev mode:
go run ./ --dev
The Go server proxies frontend requests to Vite on port 5173, so you get instant hot-reload for React changes.
Release Mode (Production Build)
- Build the frontend:
go run ./script/build
- Run the server (embeds the built frontend):
go run ./
Build Binary
go run ./script/build && go build -o /tmp/PROJECT_NAME ./