module
Version:
v0.0.0-...-fdfac4e
Opens a new window with list of versions in this module.
Published: Aug 9, 2024
License: MIT
Opens a new window with license information.
README
¶
gotth-components
A component library powered by golang+templ+tailwindcss+htmx
Local Setup
- Clone the repository
git clone https://github.com/m3rashid/gotth-components.git
- Install air (for hot reloading)
go install github.com/air-verse/air@latest
- Install the templ cli
go install github.com/a-h/templ/cmd/templ@latest
-
Setup tailwindcss
- Download the binary (depending on your operating system) from
https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.4.7
- Extract the binary and move it to the project root
- rename it to
tailwindcss
- Make it executable
chmod +x ./tailwindcss
- Run
make tailwind-watch to generate style.css file
- Run
make tailwind-build to generate style.min.css file for production
-
Install the dependencies go mod download
-
Run the project make dev
Readings
Please checkout the Docs for Project Structure and Project Decisions
Directories
¶
Click to show internal directories.
Click to hide internal directories.