You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Max Schmitt e45d710df4 fixed naming to URL Shortener 8 years ago
.vscode Initial commit 8 years ago
handlers fixed naming to URL Shortener 8 years ago
store Initial commit 8 years ago
.gitignore Initial commit 8 years ago
README.md fixed naming to URL Shortener 8 years ago
docker-compose.yml fixed naming to URL Shortener 8 years ago
main.go fixed naming to URL Shortener 8 years ago
run.sh Initial commit 8 years ago

README.md

Golang URL Shortener using BoltDB

Features:

  • URL Shortening with visiter counting
  • Delete an entry
  • Authorization
  • Storing using BoltDB
  • Easy ShareX integration
  • Selfhosted

Installation

Standard

go get -v ./...
go run -v main.go

Docker Compose

Only execute the docker-compose.yml and adjust the enviroment variables to your needs.

ShareX Configuration

This URL Shortener has fully support with ShareX. To use it, just import the configuration to your ShareX. For that you need to open the Destination settings => Other / Custom uploaders => Import => From Clipboard.

After you've done this, you need to set it as your standard URL Shortener. For that go back into your main menu => Destinations => URL Shortener => Custom URL Shortener.

{
  "Name": "Golang URL Shortener",
  "DestinationType": "URLShortener",
  "RequestType": "POST",
  "RequestURL": "http://127.0.0.1:8080/api/v1/create",
  "Arguments": {
    "URL": "$input$"
  },
  "ResponseType": "Text",
  "URL": "$json:URL$"
}

TODOs

  • github publishing
  • authentification
  • deletion
    • ShareX example