Click is a service for converting long URL to short. For example, you have reference http://www.example.com?text=long-long-long-long-long-long-url. Copy it URL to input field and click button. System generates short URL like http://127.0.0.1:8000/abc. Now you can send this reference to other people. And when they put this string to browser address bar, service redirects them to the original site. Moreover, service generates QR code and you can just save it and send to your friend.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Python 3.x must be installed on your computer. If you haven't it, you can download Python 3 from official site.
Clone project using Git
git clone https://github.com/SergeyMalyshevsky/Click.git
Go to created directory
cd Click
Install necessary libraries using pip
pip install -r requirements.txt
Add tables to database
python manage.py migrate
Run local web server
python manage.py runserver
Clone project using Git
git clone https://github.com/SergeyMalyshevsky/Click.git
Build docker container
docker build -f Dockerfile -t click-service:local .
Run docker container
docker run -d -p 8000:8000 -d click-service:local
Open your browser and go to address http://127.0.0.1:8000/.
For checking work of functions run tests:
python manage.py test
- Sergey Malyshevsky - Click
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details.