Gohst

A lightweight Go web application starter kit with modern frontend capabilities and built-in developer tools.

Core Features

Hot-Reloading

Enjoy seamless development with automatic Gohst server restarts on code changes.

Modern Frontend

Built-in Vite, Tailwind CSS, Alpine.js, and TypeScript for a responsive and interactive UI.

Database Ready

Containerized Postgres database with migrations and seeding capability for fast setup.

Secure Sessions

Built-in session manager support for file-based or Redis storage systems with CSRF tokens.

Template System

Flexible HTML templating with layouts, partials, and component-based architecture.

CLI Tools

Integrated command-line interface for managing your development workflow with ease.

Clean Architecture

Backend Structure

  • cmd/ - Application entrypoints
  • internal/ - Core framework logic
  • database/ - Migrations and seeds
  • routes/ - URL and endpoint handling

Frontend Structure

  • templates/ - HTML templates
  • assets/ - CSS, JS, and images
  • static/ - Compiled assets
  • vite.config.js - Build configuration

Get Started in Seconds

$ git clone https://github.com/jason-horvath/gohst.git
$ cd gohst
$ cp .env.example .env
$ ./gohst build

Created and maintained by

Jason Horvath

Find me on GitHub