Skip to content

techninja1008/url-shortener

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-shortener

Simple URL shortener backed by sqlite.

Using the API

    $ curl -X POST http://mydomain.com/save -d '{"url": "http://google.com"}'
    {"error":"","id":"M","url":"http://mydomain.com/M"}

There's also a simple web ui available

Run in docker:

docker run -dv /local/data/path:/data \
	-p 1337:1337 \
	-e BASE_URL=http://mydomain.com \
	-e DB_PATH=/data \
	jhaals/url-shortener

About

Tiny url shortener backed by sqlite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 77.2%
  • HTML 22.8%