https://github.com/colevoss/htmx-rulez-d00d
https://github.com/colevoss/htmx-rulez-d00d
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/colevoss/htmx-rulez-d00d
- Owner: colevoss
- Created: 2023-12-08T06:06:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-07T00:19:17.000Z (about 2 years ago)
- Last Synced: 2025-02-14T04:17:56.419Z (over 1 year ago)
- Language: Go
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [HTMX Rulez D00d](https://www.youtube.com/watch?v=1XUeiYieYK4)
Template Repository for creating [Go](https://go.dev/) / [Chi](https://github.com/go-chi/chi) / [Templ](https://templ.guide/) / [HTMX](https://htmx.org/) / [Tailwind](https://tailwindcss.com/) projects.
## How
Use this Repo Template to create your own repo. You will have to do a find and replace for `htmx-rules-dood` (with o's no zeros) with your go package name
## Install
Run `npm install` to install the Tailwind dependencies.
## Run
### Docker
This project uses Air and Docker Compose so you can compile Templ files and have live reloading without installing
extra dependencies on your local machine.
To start the project run
```sh
make up
```
This starts the server in a docker container that can be access at `localhost:8080`.
### Tailwind
To run the Tailwind css compiler, in a seperate terminal, run
```
make css
```
This will watch all `.templ` files for tailwind classes and rebuild the `dist/output.css` file.