Git Product home page Git Product logo

url-shortener's Introduction

url-shortener

This is a Django based link shortener.


What is a URL Shortener ?

A URL shortener is a web-based service that condenses long and unwieldy URLs into shorter, more manageable links. It assigns a unique identifier to the original URL, reducing its length while redirecting users to the intended destination.

What is an URL?

A URL (Uniform Resource Locator) is a web address that specifies the location of a resource on the internet, such as a webpage, file, or service. It consists of a protocol (e.g., "http" or "https"), a domain name (e.g., "example.com"), and a specific path or identifier to access the resource (e.g., "/page"). URLs allow browsers and applications to retrieve and display web content accurately.

Why use this URL Shortener ?

This tool is valuable for sharing links in constrained spaces, such as social media posts or character-limited messages, where brevity is essential.

Installation

path: /home/username/url-shortener

virtualenv

Download virtualenv from here and install it.

virtualenv env
source env/bin/activate

Requirements:

pip install -r requirements.txt

.env file

create a .env file in the root directory and add the following variables

SECRET_KEY=django-insecure-hsb2h+6kkdesg)r(qm-q9$vgdaopxy^)yn=qdb^vg8p%@k7))t
DEBUG=1
ALLOWED_HOSTS='127.0.0.1 localhost'

runserver

cd urlshortener
python manage.py runserver

url-shortener's People

Contributors

int-code avatar tkdsam5 avatar soniarpit avatar sahafouzder-raunak avatar alexdeathway avatar

Stargazers

Emmanuel Madueke  avatar  avatar  avatar  avatar  avatar Imon Roy avatar

Watchers

 avatar

url-shortener's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.