Code Monkey home page Code Monkey logo

url-shortener's Introduction

Build Status Code Health Coverage Status Code Climate

url-shortener

A server side application that shortens url

How To Use

URL: http://localhost:8888/url_gen
- Effect: will generate a shortened_url
- For example, www.google.com will be mapped to http://localhost:8888/url_shortener/XXXXXX
- Returns: {"original_url":url, "shorted_url":url}

http://localhost:8888/url_gen?change=text
- Effect: will generate a shortened_url with text as it's last path
- For example, www.google.com will be mapped to http://localhost:8888/url_shortener/XXXXXX
- Returns: {"original_url":url, "shorted_url":url}

http://localhost:8888/url_info?url_shortened=http://localhost:8888/url_shortener/XXXXXX
- Effect: will search for the usage of the shortened_url
- Returns : {"count":int}

http://localhost:8888/url_shortener/XXXXXX
- Effect: will return the original url that is going to be access
- Returns : {"original_url":url}

http://localhost:8888/url_latest_100
- Effect: will return the latest 100 shortened urls
- Returns : {"latest_100_shortened_urls":[{"shortened_url":url, "date":date}, ...multiple if any]}

http://localhost:8888/url_top_10_domain_30_days
- Effect: will return the top 10 shortened domains in the last 30 days
Returns : {"top_10_domain_30_days":[{"domain":url, "count":int}, ...multiple if any]}

Implementation

Backend Framework : Python Tornado and Momoko
Url Shortener : Uses random number generator to shorten a url

url-shortener's People

Contributors

mxlei01 avatar

Watchers

 avatar

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.