tny-api

command module
v0.0.0-...-dbe4500 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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