A simple stateless web application written in Golang that simulates a countdown timer. The frontend (HTML/JS/CSS) is embedded directly in the Go binary, making deployment easy.
- Backend: Go (net/http, embed)
- Frontend: HTML5, CSS3, Vanilla JS
- Container: Docker (Multi-stage build)
Install Docker: https://docs.docker.com/get-started/get-docker/
Run the container
docker run -d -p 8080:8080 --rm --name countdown aeciopires/countdown:1.0.0Access the application at http://localhost:8080.
You can change the default port using an environment variable.
docker run -p 3000:3000 -e PORT=3000 --rm --name countdown aeciopires/countdown:1.0.0Access the application at http://localhost:3000.
Install Golang (1.25+): https://go.dev/doc/install
Run the application:
cd app
go mod init countdown
go run main.goAccess the application at http://localhost:8080.
Requirements:
- Install make (https://www.gnu.org/software/make/)
- Install Docker (https://docs.docker.com/get-started/get-docker/)
- Install Golang (1.25+): (https://go.dev/doc/install)
Run the command.
cd app
make imageAécio dos Santos Pires
https://linktr.ee/aeciopires
GPL-3.0 2025 Aécio dos Santos Pires
