atyrode / vite

✂️ vite! API shortens your links
http://vite.lol/
The Unlicense
0 stars 0 forks source link

Implementation of a front page to the API #11

Closed atyrode closed 7 months ago

atyrode commented 7 months ago

This is the final milestone of the project in the scope of a candidate release version of the dev branch. This solves #10 by adding the necessary HTML, CSS and JS suite to have a usable web "client" for the API.

It also implements the/redirect endpoint, for the main domain name to be able to take in the shortened part of an url, meaning if you self host, you'll get links looking like: vite.lol/5b both localhost:8080/5b and localhost:8080/vite.lol/5b will redirect you to the encoded URL.

A /determine endpoint was also added to minize the API logic within the JavaScript files. It will look at the domain name of the url it receives, and assume you want to decode or encode an url based on that.

This implementation comes with the added bonus that I hosted the project online, as I believe it is usable, and fun. It would require a more static and robust database approach for scaling though.

You may test vite.lol assuming my host doesn't have issues 😄

atyrode commented 7 months ago

Also, Python 3.8 support was removed in the test suite because it doesn't support type hinting.