A simple django and react application illustrating how to shorten urls
Create a new virtual environment and activate it (http://virtualenvwrapper.readthedocs.io/en/latest/)
mkvirtualenv MY_VIRTUAL_ENV
workon MY_VIRTUAL ENV
pip install -r requirements.txt
npm install
python manage.py makemigrations api
python manage.py migrate
coverage run -m pytest
python manage.py runserver
npm start
You would usually deploy this application on a short domain name(e.g goo.gl ,bit.ly) for it to achieve it's purpose.
Tests
Configure creation of unique URLs on the front end
Configure an error toast to be displayed when a URL that has already been shortened is supplied again to be shortened