Albert-91 / url_shortener

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URL Shortener

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.

Procedures to run application

Firstly copy file with environment variables .env_template with new name .env. You can do it by command:

cp .env_template .env

Because 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 -d

Form

After 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.

About


Languages

Language:Python 93.7%Language:HTML 3.3%Language:Dockerfile 1.7%Language:Shell 1.3%