URL-Shortener - Web application to shorten links with possibility to define expiration date and password to protect your content.
Most of code is written in Python/Django.
Project can be run in local (local.yml
) or production (production.yml
) mode.
To setup project it is required to have Docker and Docker Compose installed on your machine.
$ docker-compose -f <mode>.yml build
$ docker-compose -f <mode>.yml run django python app/manage.py migrate
Optionally you might also want to create django superuser.
$ docker-compose -f <mode>.yml run django python app/manage.py createsuperuser
$ docker-compose -f <mode>.yml run django python app/manage.py test shortener
$ docker-compose -f <mode>.yml run django python app/manage.py loaddata celery_beat
celery_beat
file contains periodic tasks definitions.
$ docker-compose -f <mode>.yml up
It will start all containers on specified environment.
URL-Shortener is now available on localhost:8000