Skip to content

lazakoa/microurl

 
 

Repository files navigation

Code Climate

Requirements

System

  • python3
  • python3-dev
  • libmysqlclient-dev
  • mariadb (mysql should be supported as well)

Pip

  • see requirements.txt

Setup

Note these are *nix instructions, usage on Windows may be different. Using a *nix system is highly recommended to avoid any undue frustration.

Install requirements

Install system requirements

$ apt-get install python3 python3-dev libmysqlclient-dev mariadb

Setup mariadb

$ echo "you're on your own here for now."

Install pip requirements

$ pip insall -r requirements.txt

Create .config.json

{
    "user": "mysql_user",
    "password": "mysql_user's_password",
    "host": "mysql_server_ip",
    "db_name": "mysql_database"
}

Create table

$ python3 database.py create

Start

Debug

$ make debug    # Run with flask debugger

Run as application

$ make run      # Run application

About

URL shortener written in Python + Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 56.6%
  • HTML 20.5%
  • CSS 10.3%
  • JavaScript 9.4%
  • Makefile 2.9%
  • Shell 0.3%