gotth-components

module
v0.0.0-...-fdfac4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2024 License: MIT

README

gotth-components

A component library powered by golang+templ+tailwindcss+htmx


Local Setup
  1. Clone the repository
git clone https://github.com/m3rashid/gotth-components.git
  1. Install air (for hot reloading)
go install github.com/air-verse/air@latest
  1. Install the templ cli
go install github.com/a-h/templ/cmd/templ@latest
  1. Setup tailwindcss

    1. Download the binary (depending on your operating system) from https://github.com/tailwindlabs/tailwindcss/releases/tag/v3.4.7
    2. Extract the binary and move it to the project root
    3. rename it to tailwindcss
    4. Make it executable chmod +x ./tailwindcss
    5. Run make tailwind-watch to generate style.css file
    6. Run make tailwind-build to generate style.min.css file for production
  2. Install the dependencies go mod download

  3. Run the project make dev

Readings

Please checkout the Docs for Project Structure and Project Decisions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL