Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 2.01 KB

README.md

File metadata and controls

68 lines (46 loc) · 2.01 KB

Features

URL shortener

Table of Contents

configure-backend--django

Configure backend (Django)

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 from requirements file, code

$ pip install -r /path/to/requirements.txt

if you not have pip installed you can follow instuction here for installing

Run django server

python manage.py runserver

Some usefull information

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

End