Public Repository

Last pushed: a year ago
Short Description
A simple URL shortener
Full Description

Written in Python, Powered By Flask.

Prerequisites

  • MySQL instances:

    The database should have a table named "Urls" with two columns:

    • ID (int)
    • url (varchar)

      example:

      CREATE TABLE Urls (ID int, url varchar(255));
      
  • Provide database info in config.json:

    Sample (note that you can have as many database as you want):

    config.json

      [
        {
          "no": 0,
          "username": "",
          "password": "",
          "url": "",
          "port": 3306,
          "database": ""
        },
        {
          "no": 1,
          "username": "",
          "password": "",
          "url": "",
          "port": 3306,
          "database": ""
        },
        ...
      ]
    

Run command:

docker run -d --name tinyurl -p 80:80 -v /path/to/config.json:/etc/tinyurl/config.json yuha0/tinyurl
Docker Pull Command
Owner
yuha0

Comments (0)