bajalnyt / GolangAppSkeleton

An app skeleton for very simple golang web applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang App Skeleton

This is a skeleton for a golang web application optimized for simplicity and rapid development.

Prerequisites

  • Go 1.15 or greater
  • Optionally, modd for live reload

How To Use

  • Fork this repository
  • Change the package name in go.mod to reflect your own repository
  • run modd
    • if you chose not to install modd, build the app with go build -o your_program_name
  • modify code to see the results

Environment Variables

  • PORT: the port for the app to listen on. Defaults to 8080
  • STATIC_BASE: the base URL for static assets. Defaults to /static

About

An app skeleton for very simple golang web applications

License:MIT License


Languages

Language:Go 87.5%Language:HTML 8.9%Language:CSS 3.6%