/go-hyper

A "blazingly fast" full-stack web application in Go.

Primary LanguageGo

Go Hyper!

A "blazingly fast" full-stack web application in Go. This stack utilizes hypertext-driven templating tools such as htmx and Go's html/template library to create highly interactive user interfaces without a single line of custom Javascript.

The Stack

  • echo is the backbone, serving HTML templates via its' REST API.
  • htmx allows HTML templates we send to the client to make requests to the server and populate sections of the client's page with interactive content.
  • GORM manages our schemas and connection to our PostgreSQL database.
  • TailwindCSS styles our HTML templates.

Run Locally

From the root directory, create a .env file in-place and fill with with the following environment variables:

DATABASE_URL="postgres://username:password@localhost:5432/dbname"

Then, run the following command to start your server:

go run main.go

air is recommended to use for hot-reloading. If you have it to run globally, run the command:

air