Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 677 Bytes

README.md

File metadata and controls

35 lines (20 loc) · 677 Bytes

urlredir

A (intentionally) simple URL redirector.

This project exists as an exercise in building well-designed and implemented Go software. I'm less interested in new features than improving the codebase quality. The codebase has decent test coverage and is written with minimal dependencies outside of the standard library.

Building

Read Makefile and build:

make

Run

Edit config:

cp config.json.sample config.json
$EDITOR config.json

Run:

make run  # or ./urlredir

Testing

The test-target runs only a subset of tests, but works without config:

make test

Coverage needs the config (for database connection details):

make cover