Skip to content

SergeyMalyshevsky/Click

Repository files navigation

Click

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.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Python 3.x must be installed on your computer. If you haven't it, you can download Python 3 from official site.

Install

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

Install via docker

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

Check service

Open your browser and go to address http://127.0.0.1:8000/.

Screenshot

Running the tests

For checking work of functions run tests:

python manage.py test

Built With

  • Django - The web framework used
  • Pip - Package Management
  • QR Code - Used to generate QR Code

Author

  • Sergey Malyshevsky - Click

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

Service for converting long URL to short

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors