backend

command
v0.0.105 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2026 License: MIT, MIT Imports: 5 Imported by: 0

README

PROJECT_NAME

Generated by kool create go-react.

Usage

go run ./

To mount the app under a sub-route, pass --route-prefix:

go run ./ --route-prefix my-app

Then open http://localhost:<port>/my-app/.

Development

Dev Mode

Dev mode starts Vite automatically for frontend hot-reload and proxies requests through the Go backend:

go run ./ --dev

Dev mode also supports route prefixes:

go run ./ --dev --route-prefix my-app

The Go server starts and proxies to a Vite dev server on a free port, so you get instant hot-reload for React changes.

Release Mode (Production Build)
  1. Build the frontend:
go run ./script/build
  1. Run the server (embeds the built frontend):
go run ./
Build Binary
go run ./script/build && go build -o /tmp/PROJECT_NAME ./

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
script
build command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL