1
0
mirror of https://github.com/taigrr/shorturl synced 2025-01-18 04:03:16 -08:00
FileGo a3409454c0
Moved database to Bitcask (#22)
* Changed URL format to shortuuid

* Fixed drone CI failure

* Moved database to Bitcask and some minor changes

* Moved database to Bitcask and some minor changes

* Delete coverage.txt
2021-05-10 23:58:17 +10:00
2021-05-10 23:58:17 +10:00
2019-04-13 13:09:50 +10:00
2021-05-10 23:58:17 +10:00
2018-12-31 19:01:04 +10:00
2017-09-02 12:41:46 -07:00
2021-05-10 23:58:17 +10:00
2018-02-09 16:51:50 -07:00
2021-05-10 23:58:17 +10:00
2021-05-10 23:58:17 +10:00
2017-07-11 01:04:23 -07:00
2021-05-10 23:58:17 +10:00
2021-05-10 23:58:17 +10:00
2018-12-31 19:10:39 +10:00
2021-05-10 23:58:17 +10:00
2021-05-10 23:58:17 +10:00
2021-05-10 23:58:17 +10:00
2021-05-10 23:58:17 +10:00
2017-07-09 12:49:23 -07:00
2017-09-02 13:00:24 -07:00

shorturl - A self-hosted URL shortener web app and service

Build Status CodeCov Go Report Card GoDoc Sourcegraph

shorturl is a web app that allows you to create short urls of much longer more complex urls for easier sharing or embedding.

Installation

Source

Due to the necessity of the way assets are handled if you are building/installing from source and intend to run outside of the source tree you need to do something like this:

$ go get github.com/GeertJohan/go.rice/rice
$ go get github.com/prologic/shorturl
$ cd $GOPATH/src/github.com/prologic/shorturl
$ rice embed-go
$ go build

Usage

Run shorturl:

$ shorturl

Then visit: http://localhost:8000/

Configuration

By default shorturl stores urls in db subdirectory of the local directory. This can be configured with the -dbpath /path/to/db/ option.

shorturl also displays an absolute url after creating and uses the value of -baseurl (default: "") for display purposes. This is useful for copying and pasting the shorturl.

Data Storage

Data is currently stored in a Bitcask key/value store configured via the -dbpath option.

License

MIT

Description
Self hosted web app for shortening urls (URL shortener)
Readme 156 KiB
Languages
Go 72.1%
HTML 22.5%
Makefile 3.5%
Dockerfile 1.9%