Build from Source
Build from Source
Section titled “Build from Source”Makefile Targets
Section titled “Makefile Targets”make build # Build everything (frontend + backend)make build-frontend # Build admin UI (Vite → dist)make build-mud-client # Build game client (Vite → dist)make build-backend # Compile Go binarymake run-server # Run the Go servermake run-frontend # Start admin UI Vite dev servermake run-mud-client # Start game client dev servermake run # Run all three concurrentlyBuild Process
Section titled “Build Process”1. Build the Admin Frontend
Section titled “1. Build the Admin Frontend”cd public/appnpm installnpm run buildcd ../..Output: public/app/dist/ — compiled Svelte + Vite assets
2. Build the Game Client
Section titled “2. Build the Game Client”cd public/mud-clientnpm installnpm run buildcd ../..Output: public/mud-client/dist/ — compiled Svelte + xterm.js assets
3. Build the Go Binary
Section titled “3. Build the Go Binary”go build -o talesmud ./cmd/tales/The Go binary embeds both frontend dist/ directories using Go’s //go:embed directive.
This means the compiled binary is self-contained — no separate static files needed.
Docker Build
Section titled “Docker Build”docker build -t talesmud:latest .The Dockerfile runs all three build steps sequentially.
Next Steps
Section titled “Next Steps”- Development Setup — Dev environment
- Pull Request Guidelines — Submit your work