Skip to content

gsvd/go-website-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-website-skeleton

Yet another Go project skeleton.

This project is designed as a lightweight, idiomatic starting point for building server-side rendered (SSR) websites in Go.

Dependencies

  • asdf for managing your Go and Node versions.
  • air for live reloading the Go server.

Project Setup

Clone the repository, navigate to its root, then run:

make setup

Create a .env file at the project root with the following content:

ENV=local
HOST=127.0.0.1
PORT=8080

Run the Project

During development use two terminals:

1) Terminal 1 — Watch Tailwind CSS

make watch-css

2) Terminal 2 — Live-reload Go server

make dev

About

Yet anoter Go web project skeleton, but it's just SSR.

Resources

Stars

Watchers

Forks