GOTTH+
GitHub

Get started

Getting started

Create a GOTTH+ project, run it locally and make your first change.

What you need

  • Go 1.27.4 or newer (the template's go.mod sets the version).
  • templ, at the same version as the template's go.mod. Install it with go install github.com/a-h/templ/cmd/templ@<version>.
  • The Tailwind CSS v4 standalone CLI on your PATH as tailwindcss. No Node and no npm are needed.
  • git, curl and make. Optional: air, for live reload instead of templ's proxy.

create-gotth-plus-app checks these tools before it writes anything. A missing or wrong version is a warning with install steps, and the project is still created.

Create a project

The generator asks for anything you don't pass as a flag, shows a summary, and writes nothing if you cancel.

go run github.com/owenwexler/create-gotth-plus-app@latest my-app
cd my-app

It then runs make setup for you: Go modules, the JavaScript libraries, Chromium for the browser tests, and a first build. Pass --setup=false to skip that.

Run it

make dev    # live reload, open http://localhost:7331
make run    # no live reload, on the Port in .env (3000 by default)

make dev runs the Tailwind watcher and templ's watcher, which starts the server and reloads the browser. make help lists every target.

Make your first change

The splash page is internal/view/pages.templ. Edit it, save, and the browser reloads. Components live beside it in internal/view, and Tailwind picks up any class you write there, as long as it is a complete literal string.

When you're ready for your own data, read Data: SQLite, Postgres or MySQL, and remove the example pieces the README lists under "Removing the example app".

Official sites and documentation

These docs cover how GOTTH+ uses each part of the stack. For everything else, go to the source:

Was this page helpful?

1 of 1 readers found this page helpful.