Sign inSign up

wunderseltsam/expandr

By wunderseltsam

•Updated almost 11 years ago

Image
0

976

wunderseltsam/expandr repository overview

⁠expandr - For people who like real urls.

expandr is a tiny web service that expands shortened urls into their actual form. It's for people who like to see where the links they click on go.

Important: This project is not yet ready for world domination. If you'd like to use a real version of this thing, use one⁠ of⁠ the⁠ existing⁠ ones⁠.

⁠Quickstart

If you have docker, run docker run -it --rm -p 3000:5000 wunderseltsam/expandr and have a look at http://localhost:3000/help⁠.

Otherwise, you'll have to build it yourself:

# You need the Haskell Platform for this
$ cabal build
$ ./dist/build/expandr/expandr
# Visit 0.0.0.0:3000/help

Alternatively, if you're developing this thing, the following might be faster:

# 1. Install the necessary dependencies
$ cabal install --only-dependencies
# 2. Build and run
$ make
$ ./expandr
# 3. Improve it, go to 2.
# 4. Use ghci/vim-hdevtools/whatever-makes-you-happy

⁠ToDo

  • testing (functional, performance)

  • deploy this somewhere

  • maybe invalidate cached urls (e.g. check the response code, store the cached url accordingly and invalidate if needed)

  • more shorteners

  • browser extension (which is actually why I've written this thing)

Tag summary

Content type

Image

Digest

sha256:1204668c5…

Size

300.8 MB

Last updated

almost 11 years ago

docker pull wunderseltsam/expandr