MCPcopy Index your code
hub / github.com/ajaen4/goth-complete-setup

github.com/ajaen4/goth-complete-setup @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
13 symbols 35 edges 9 files 0 documented · 0% updated 19mo ago★ 43
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🚀 GOTH Stack Complete Setup

Go Version HTMX Tailwind CSS Alpine.js Templ

A modern, fully configured starter template for building fast, type-safe web applications using Go, HTMX, Tailwind CSS, Alpine.js, and Templ. This stack provides an incredible developer experience with type safety from your database all the way to your HTML.

✨ Features

  • 📜 Type-Safe Templates: Using Templ for compile-time checked templates
  • 🔥 Hot Reload: Using Air for instant feedback during development
  • 🎨 HTMX + Tailwind: Modern, interactive UIs without complex client-side JavaScript
  • 🛠️ Modern JS Utilities: Alpine.js for lightweight interactivity
  • 📱 Responsive Design: Mobile-first approach with Tailwind CSS

🚀 Quick Start

Prerequisites

  • Go v1.23.2 or higher
  • npm v10.9.0
  • node v23.2.0
  • Air v1.61.1
  • Templ CLI v0.2.778

Installation

Install dependencies:

npm install

Running Locally

Start the development server:

make run

This will: - Start the Templ proxy server on the value of TEMPL_PROXY_PORT defined in the .env file. - Start the Go server on the value of APP_PORT, also defined in the .env file. - Enable hot reloading for all file changes.

Access the application at:

http://localhost:<TEMPL_PROXY_PORT>

Running as Container

  1. Build the container:
docker build -t <image-tag> .
  1. Run the container:
docker run --rm \
  --env-file .env \
  -p <local-port>:<app-port> \
  -t <image-tag>

Access the containerized application at:

http://localhost:<local-port>

Note: The <app-port> should match the APP_PORT in your .env file.

In detail explanation

There is an in detail explanation of how the hot reloading works in this article.

Extension points exported contracts — how you extend this code

CustomHandler (FuncType)
(no doc)
internal/server/routes.go

Core symbols most depended-on inside this repo

respondWithJSON
called by 2
internal/server/responses.go
Home
called by 1
internal/components/home_templ.go
Error
called by 1
internal/api_errors/api_errors.go
RegisterRoutes
called by 1
internal/server/routes.go
NewHandler
called by 1
internal/server/routes.go
Render
called by 1
internal/server/routes.go
NewServer
called by 0
internal/server/api.go
root
called by 0
internal/server/handlers.go

Shape

Function 7
Struct 3
Method 2
FuncType 1

Languages

Go100%

Modules by API surface

internal/server/routes.go4 symbols
internal/api_errors/api_errors.go3 symbols
internal/server/api.go2 symbols
internal/server/responses.go1 symbols
internal/server/handlers.go1 symbols
internal/components/home_templ.go1 symbols
cmd/main/main.go1 symbols

For agents

$ claude mcp add goth-complete-setup \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page