Get started with templUI, an enterprise-ready UI component library for Go and templ. This template provides a pre-configured setup for building professional web applications with templUI components.
For installation instructions, visit our documentation.
-
Clone the Repository
git clone /~https://github.com/axzilla/templui-quickstart.git cd templui-quickstart
-
Install Dependencies
go mod tidy
-
Configure Tailwind Since we're using templUI as a package, you need to configure Tailwind to process its components:
a. Get your Go path:
go env GOPATH
b. Add the path to your
assets/css/input.css
content array:@source "${GOPATH}/pkg/mod/github.com/axzilla/templui@*/**/*.{go,templ}";
Start the development server with hot reload:
make dev
Your application will be running at http://localhost:7331
This template includes a production-ready Dockerfile for easy deployment:
# Build the image
docker build -t templui-app .
# Run the container
docker run -p 8090:8090 templui-app
Your application will be available at http://localhost:8090
Issues and pull requests are welcome! Please read our contributing guidelines before submitting a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.