Skip to content

Files

Latest commit

 

History

History
19 lines (16 loc) · 360 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 360 Bytes

flask-url-shortener

A simple flask rest api that allows urls shortening

  • [POST] localhost:5000/ body: 'actual_url', returns: 'shortened_url'
  • [GET] localhost:5000/<string:shortened_url> redirects to actual url

Stack

  • Python 3.7
  • SQLAlchemy
  • Flask
  • Marshmallow

Instalation

git clone ...
pipenv install
pipenv shell
python3 app.py