GithubHelp home page GithubHelp logo

malik332 / tinyurl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tinyurl/tinyurl

1.0 0.0 0.0 2.32 MB

tinyurl: a url shortening service

Home Page: https://git.io/tinyurl

License: BSD 3-Clause "New" or "Revised" License

HTML 6.54% Go 83.53% Makefile 3.05% JavaScript 5.73% Dockerfile 1.15%

tinyurl's Introduction

TinyURL - Make Personal URL Shortening Service Easy

Build Status Go Report Card GoDoc


Live Demo

a url shorten web service written by Golang, Vue and Gin.

Requisites

  • Golang(1.12+)
  • MySQL/Sqlite3
  • make
  • Docker

Quick Start

  1. clone project to GOPATH
git clone https://github.com/tinyurl/tinyurl.git $GOPATH/src/github.com/tinyurl/tinyurl
  1. build binary
make
  1. change config in default.properties
  2. run binary
./tinyurl -config default.properties
  1. open index.html in frontend/ with broswer
  2. default Swagger API url is http://0.0.0.0:8877/swagger/index.html

TODOs

  • validate input url format
  • improve random generate string algorithm
    • use math/rand.Read instead math/rand.Intn func
  • use logrus replace golang log lib
  • reserch wrk
  • add test case
  • Backend
    • data type support multi database(index in sender)
    • adjust short path generating algorithm
    • Swagger for api management
    • custom short url
    • API rate
    • Admin account?
    • count each url parse time (high concurrent situation)
  • Frontend
    • qrcode support

Reference

tinyurl's People

Contributors

alwqx avatar

Stargazers

Malik Atiquz zaman 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.