⚡ Quickstart
See tempo in action with a real-world setup.
Try It Now
⚠️ Make sure you’ve installed the prerequisites first.
Clone the demo project and start developing immediately:
bash
git clone https://github.com/indaco/tempo-demo.git
cd tempo-demo
go mod download
make dev # or: task devThen open http://localhost:7331 in your browser.
You’ll get:
- Live reload via
templ - Instant CSS/JS sync via
tempo - A ready-to-use button component with a variant (outline) and some JavaScript.
Prerequisites
Install the following tools (Go 1.23+ required):
bash
go install github.com/a-h/templ/cmd/templ@latest
go install github.com/indaco/tempo/cmd/tempo@latest
go install github.com/air-verse/air@latestStep-by-Step Overview
Here’s how the demo project was built using tempo:
Create a Go module
bashgo mod init github.com/indaco/tempo-demoInitialize tempo
bashtempo initDefine a component template
bashtempo component define --jsCreate a component
bashtempo component new --name button --jsWrite styles and scripts in
assets/buttonSync everything
bashtempo syncGenerate templ code
bashtempl fmt . && templ generateRun the dev server
bashmake dev # or: task devDefine a variant template
bashtempo variant defineCreate the outline variant
bash
tempo variant new --name outline --component buttonThis creates:
assets/button/css/variant/outline.csscomponents/button/variant/outline.templ
Write styles for the newly created outline variant in assets/button.
- Edit assets and enjoy live updates! 💥
Want to see the full config and source? Browse the tempo-demo repo →