lagerfeuer / short.ly

URL shortening service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

short.ly

Flask URL shortening service with simple API and sqlite database backend.

Main page Example URL

Run

Local

# install dependencies
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# optional configuration
export SHORTLY_DB_PATH=/tmp/db.sqlite

# run
export FLASK_APP="shortly"
flask init-db
flask run
# OR
gunicorn -b 127.0.0.1:5000 "shortly:create_app()"

TODO

  • add mysql support (already partially implemented)
  • add pytest test suite for flask (test index page and API)

About

URL shortening service

License:GNU General Public License v3.0


Languages

Language:Python 56.2%Language:HTML 31.1%Language:JavaScript 10.8%Language:CSS 1.9%