Repository contains Django application with service shorting URL. Form gets URL from user and next hashes it.
User gets hashed URL with following structure:
http://[DOMAIN_OF_LUNCHED_SERVICE]/[CREATED_HASH]
If user clicks above URL then it will redirect him to his previous provided URL.
Firstly copy file with environment variables .env_template with new name .env. You can do it by command:
cp .env_template .envBecause of whole environment is containerized via Docker. You have to make sure that docker and docker-compose are installed. To run, pull all images, create database store directory and finally run all services run command:
docker-compose up -dAfter running application, to get hashed URL let visit your domain. If you run it locally, you can visit localhost.
Next provide some valid URL and click "Make shorter". One the next screen you will see new, hashed URL.