A simple URL shortener in Python on Deta
Thank you dedomil
- FastAPI
- Deta
- FastAPI
- aiofiles
- jinja2
You open the main site and enter your URL in the form. When you press submit, JavaScript takes care of making an asynchronous request to the underlying server which calls Deta Base to add the URL to the Base.
When you make a request to a short URL, it looks for that which matches in the database and responds with a RedirectResponse
to the target
Live app here
Live a star if you like this
Made by Brenden Stahle, Based on MiniShort