A web server that re-writes URL's which at the end of the day can be used as a URL shorten-er. It uses aiohttp as the web server and mongodb to store the Data.
git clone https://github.com/eyaadh/url_rewriter.git
, to clone the repository.cd url_rewiter
, to enter the directory.pip3 install -r requirements.txt
, to install rest of the dependencies/requirements.- Create a new
config.ini
using the sample available atserver/working_dir
. - Run with
python3.8 -m server
, stop with CTRL+C.
It is recommended to use virtual environments while running the app, this is a good practice you can use at any of your python projects as virtualenv creates an isolated Python environment which is specific to your project.