Skip to content

Boilerplate for web development with the Echo, templ and more

License

Notifications You must be signed in to change notification settings

alexferl/echo-boilerplate-templ

Repository files navigation

echo-boilerplate-templ Go Report Card codecov

A Go 1.22+ boilerplate for web development using:

Requirements

Before getting started, install the following:

Required:

Optional:

Using

Setup the dev environment first:

make dev

Building & Running locally

make run

In another terminal:

make vite

Navigate to http://localhost:3000 in your browser.

Docker

Build

make docker-build

Run

make docker-run

Passing args

CLI:

docker run -p 3000:3000 --rm app --env-name prod

Environment variables:

docker run -p 3000:3000 -e "APP_ENV_NAME=prod" --rm app