Skip to content

tnyie/tny-api

Repository files navigation

TnyAPI

Go Reference

A link shortener, backend for Tny.ie and its associated browser extension.

TODO

  • Add unit tests
  • Switch logging library for better logging
    • Also change how much is logged & remove stale and leaky logs

Future possible features

  • Support user-owned domains
  • Use subdomains for user-created websites/link trees perhaps?
    • e.g. thomas.tny.ie may have links for social medias, etc.

Usage

Docker

A dockerfile is incuded, an image will be available eventually

An example docker-compose file is in the __example__ directory

Environment

ENVIRONMENT_VARIABLE Usage
TNY_AUTH_KEY Signing key used for cookie's sessions
DB_USER Database user
DB_PASS Database password
DB_NAME Database name
DB_HOST Database host
DB_PORT Database port

About

Golang API for a URL shortener

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages