hellohttp

command module
v0.0.0-...-30210cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2020 License: MIT Imports: 8 Imported by: 0

README

hellohttp

Build Status Go Report Card GoDoc

A simple barebone HTTP server implementation in golang, that uses chi as a router with cors, compression, and logging middlewares enabled.

$ go run .
Running HTTP server on :8080

Check the health endpoint.

curl http://localhost:8080/health
OK
Docker

The Dockerfile is built from scratch and produces a small image (~8.1 MB).

Build with:

$ docker build -t hellohttp .

Run with:

$ docker run -p 8080:8080 hellohttp
Environment variables

The following environment variables are available (use a .env file for convenience).

Name Default Description
PORT 8080 Port number

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL