- Creating shortlink from full link
- Save to db + amout of clicks
- Redirect to full link using shortlink
- Python django
- Postman https://documenter.getpostman.com/view/15932641/Uz5CNebM
Table of Contents
Backend files you can find in /APi
Make sure you have python3.9+ installed
Python installation you can find here
venv folder = enviroment that have been used turn on enviroment when in folder API (not must)
venv\Scripts\activate
can find file requirements.txt
Make sure you have pip installed can use this command to install all needed packages:
$ pip install -r /path/to/requirements.txt
if you not have pip installed you can follow instuction here for installing
python manage.py runserver
Simple basic url shortener
For using any other db inside UrlShortener settings.py in DATABASES feel free to configure a new db if want.
this projet not contains any front or visualy testing only backend
for testing can use postman, curl or any other tool added bat files, run curl commands
any click on shortlink amout of clicks increase(not 1 click for 1 user, user can access link many times and the counter will increase) i not sure if I should to handle 1 click per user in this assigment, for doing it i probably added track in db on users clicked it
Inside TESTS folder can find bat files, run curl commands in different situations