Raphael Maenle 85850a9d63 initial commit, adding flask structure, README, routes
- routes defined in routes.py uses the <path:..> function to catch
  every non-empty url comming along
- request.full_path is used to get the entire url, as <path:> would
  remove eg GET '?' from the url, which we don't want
  for the link forwarding.
- request.full_path[1:] removes the '/' from the url
2021-08-12 11:50:22 +02:00

this project is a tiny flask implementation that automatically generates shortened links for any url.

If you're on a website, add short.maenle.tech to the beginning of the url, and the flask app returns a shortened url that it saves in a json file on the server and forwards to the original url when accessed.

Further Todos

  • add https encryption
  • add uWSGI
  • use sqlite3 instead of json
Description
Generates a shortened link to an url
Readme 30 KiB
Languages
Python 58.7%
HTML 18.1%
Dockerfile 13.9%
Shell 4.8%
CSS 4.5%