dheurlin / picourl

A super simple url shortener that reads routes from a text file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A dead simple url shortener.

To add a route, simply add it to the file routes in this directory, using the following format:

short-url   https://full-url.com

When you go to url-to-this-instance.com/short-url you will be redirected to the full url.

Building and executing

stack build --fast --pedantic

then stack run or install using stack install and then run via picourl-exe

By default it will run on port 8080. To change this, run with an environment variable: PICOURL_PORT=1234 picourl-exe

About

A super simple url shortener that reads routes from a text file

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 100.0%