fastapi-tortoise-orm-url-shortener
a url shortener with fastapi and tortoise-orm
how to run
- git clone https://github.com/iiiiii1wepfj/fastapi-tortoise-orm-url-shortener.git
- cd fastapi-tortoise-orm-url-shortener
- pip3 install -U -r requirements.txt
- cp config.py.example config.py (you can also change the database url and the port of the url shortener)
- python3 main.py
docs
after running the main.py file, in the endpoint /docs
todo
- add analytics by slug (show how much clicks by: operating system, browser, country)
- make option to register/login for some options like edit my links, delete my links and more
- make a better frontend
if you have more ideas or if you want to add something from the todo-list you can fork the repository and create a pull request (make sure the code is working and using black code format)