The GoTH stack is a powerful development stack designed specifically for solo gophers. It provides an efficient and enjoyable development experience for building web applications. The stack combines the following technologies:
- Go - A statically-typed and compiled programming language known for its simplicity, efficiency, and scalability. Official Documentation
- Tailwind CSS - A utility-first CSS framework that enables rapid UI development with pre-designed utility classes. Official Documentation
- HTMX - A lightweight JavaScript library for seamless and interactive web applications. Official Documentation
- PostgreSQL - A powerful open-source relational database management system for robust and scalable data storage. Official Documentation
To get started with the GoTH stack, follow these steps:
-
Download and install the necessary dependencies:
- Go: Official Go Installation Guide
- Node.js: Official Node.js Downloads
-
Install Tailwind CSS by running the following command in your terminal:
npm install
-
Run the server in develop mode:
make run
-
For updating the talwind styles in realtime execute in another terminal:
make css
-
If you prefer using air for live reload instead of rebuilding the app with each modification you can run:
make dev
For installing air just execute:
go install github.com/cosmtrek/air@latest