This Go boilerplate provides a foundational structure for building applications with authentication already integrated.
This boilerplate is built with Go version 1.24.3.
You can use GVM to manage your Go versions.
gvm install go1.24.3
gvm use go1.24.3Refer to the .env.model file to copy the necessary environment variables.
This boilerplate uses PostgreSQL as the database. Ensure you have a PostgreSQL instance running and update the connection details in your .env file.
go install github.com/cosmtrek/air@latest
go getset -o allexport; source .env; set +o allexport; air;go test ./... -vgo test ./[package]go test ./... --coverdocker build -t goproject .
docker run -it --rm --name goproject goproject