This is a minimal working web app with Go and HTMX. Use this as a starting point for your web app.
- Go web framework: Echo
- Logger: Zap
- Configuration: Viper
- Template engine: a-h/templ
- Frontend library: HTMX
- Frontend CSS framework: Tailwind CSS
- Live reload: Air
make run
: Run the web appmake dev
: Run the web app with live reloadmake build
: Build the web appmake test
: Run the testsmake lint
: Run the lintermake fmt
: Format the codemake templ-generate
: Generate code for templmake css-build
: Build the CSSmake css-watch
: Watch the CSS
- Run
make css-watch
for tailwindcss to watch the CSS on changes - Update environment variables in
env/web.env
- Open a new terminal and run
make dev
to start the web app with live reload