This project is a starting point for developing web apps using a-h/templ.
- Go (with Templ for logic behind templating)
- Alpine.js (JavaScript framework)
- Tailwind CSS (CSS framework)
- Vite (optional, for hot reloading)
- Alpine.js (as a file under /public/static/js/alpine.min.js)
- Bun (or Yarn or pnpm) used to install/run Vite and Tailwind CSS
- Go
- Templ CLI (install using
go install github.com/a-h/templ/cmd/templ@latest
) - Make
- entr
-
Clone the repo:
git clone https://github.com/morethancoder/goat.git
-
Initialize the project:
go mod init yourprojectname && go mod tidy
-
Change the import in main.go:
// Change this: "morethancoder/goat/components" // To: "yourprojectname/components"
-
Install required Node modules:
bun install
-
Start the Vite dev server:
make vite
-
Start file watching & compiling:
make watch
-
Star the repo!