A simple private URL shortener.
For authenticated users, allows creation and management of shortened URLs. The shortened URLs are redirected to their original counterparts.
To use the online version of the URL shortener, you can use the demo account with the following credentials:
- username: demo
- password: Demo123#
The demo account has a limit on the creation of 1000 URLs. Later, you will have to delete old ones to be able to shorten new URLs. Note that this account can be used by anyone.
If you'd like a real account, please contact me at vinkomlacic@outlook.com.
For development purposes, there is the docker-compose.yml
file which allows
easy setup of the PostgreSQL database which is used by the project.
- Create the virtual environment, activate it and install all required
packages from
requirements.txt
:pip install -r config/requirements/local.txt
- Create
config/.env
file. Seeconfig/.env.example
for guidance. - In the
docker
directory, rundocker-compose up
. - Create the
url_shortener
DB in your PostgreSQL server and add it to theDATABASE_URL
environment variable. - Run the migrations:
python manage.py migrate
- Start the server