Skip to content
/ urlredir Public

Educational URL redirector service in Go

License

Notifications You must be signed in to change notification settings

ptman/urlredir

Repository files navigation

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