Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 726 Bytes

File metadata and controls

39 lines (27 loc) · 726 Bytes

Greeting App

A small web application that greets users by name based on their ID.

Expected Behavior

Open http://localhost:8080 in your browser, enter a User ID (try 1, 2, or 3), and the app responds with Hello [Name].

Requirements

  • Docker

Build & Run

docker build -t greeting-app .

docker run --rm -p 8080:8080 greeting-app

docker run -p 8080:8080 greeting-app

Then visit http://localhost:8080.

Project Structure

.
├── main.go
├── internal/
│   └── userservice/
│       └── service.go
├── templates/
│   └── index.html
├── data/
│   └── users.json
├── Dockerfile
└── go.mod