codingbowoo / snaker

A simple url shortener using django2 & python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snaker

Build Status License: MIT

snaker_image

Snaker is a Python based simple url shortener the Django framework.

Compatibility

  • Python 2.7, 3.4, 3.5 and 3.6 (recommended)
  • Django 1.8 LTS, 1.9, 1.10, 1.11 LTS, 2.0 (recommended)
  • MySQL (recommended), Oracle Database and SQLite and etc.

Usage

  1. download the pacakge or fork the package or git clone https://github.com/erishforG/snaker.git

  2. python3 pip install -r requeriments.txt

  3. vi ~/snaker/snaker/settings.py to change each values (*specific information will be bellow)

  4. python3 manage.py run server

  5. visit http://127.0.0.1:8000

Documentation

how does snaker works

  1. When you register 'LONG URL', snaker will match with 'HASH' code created by itself or oneself who uses snaker.

  2. Using base url with hashcode to enter the page, snaker will check the request.

  3. snaker will get the information of the user who enter the page and records the data.

  4. And then snaker will redirect the page that the user wants.

parameters

base information

BASE_URL = base site url

BASE_TITLE = base site title

BASE_DESCRIPTION = base site description

BASE_IMAGE = base site image

redirect information

  1. REDIRECT_IMAGE = redirect page base image

  2. REDIRECT_THUMBNAIL = redirect page thumbnail logo below REDIRECT_IMAGE

  3. REDIRECT_TIME = redirect delay time

utm setting

  1. UTM - a simple code that you can attach to a custom URL behind the original code in order to track a source, medium, and campaign name

database

choose your database and set your name, host, id, pw and etc.

contribute

contributers

@erishforG @musalys @wangseung

how to contribute

welcome :) pull requests for bug fixes, new features, and improvements to snaker. Contributors to the main snaker repository must accept MIT License Agreement before any changes can be merged.

License

MIT

About

A simple url shortener using django2 & python3

License:MIT License


Languages

Language:CSS 62.6%Language:HTML 21.1%Language:Python 16.3%Language:JavaScript 0.0%