url-shortener

module
v0.0.0-...-4507c00 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT

README

Golang URL Shortener

// Forked from mxschmitt/golang-url-shortnened - code has been abandoned for several years // Copyright where applicable

GoDoc Go Report Card Coverage Status License Docker Pulls

Main Features

  • URL Shortening
  • Visitor Counting
  • Expirable Links
  • URL deletion
  • Multiple authorization strategies:
    • Local authorization via OAuth 2.0 (Google, GitHub, Microsoft, and Okta)
    • Proxy authorization for running behind e.g. Google IAP
  • Easy ShareX integration
  • Dockerizable
  • Multiple supported storage backends
    • High performance local database with bboltdb
    • Persistent non-local storage with redis

Webinterface

Short URLs


Generate ShareX Configuration

Documentation

Why did you built this

Only because I just want to extend my current self hosted URL shorter (which was really messy code) with some more features and learn about new techniques like:

  • Golang unit testing
  • React
  • Makefiles
  • Travis CI
  • Key / Value databases
  • Dockerfile and Docker Image Creation

Directories

Path Synopsis
cmd
internal
handlers
Package handlers provides the http functionality for the URL Shortener
Package handlers provides the http functionality for the URL Shortener
stores
Package stores provides support to interact with the entries
Package stores provides support to interact with the entries

Jump to

Keyboard shortcuts

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