A Tiny Link Shortener
This project was hacked together in order to let me shorten links quickly using short.maenle.tech. It’s a flask server with a json as a url map.

Overview

Find the code for this project on the git repository.

This project was literally incepted and finished over the course of ten minutes, in order to quickly shorten very long booking links without having to rely on an external solution. The server is hosted inside a docker container, which allows for quick deployment. The only manual step required to use this code, is forwarding the url to the docker container in the nginx settings and changing the url in the code to you personal one.

Note that the implementation still uses the internal flask wsgi and stores the data inside a json without locking access, so it’s not scalable at all. If the number of users increases or I’m bored, I’ll add uWSGI, and use sqlite3. The current return template is javascript free, so the shortened link has to be copied manually, that’s another step that could be added.