remykarem / url-shortener

Home Page:https://url-shortener-take-home.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Short'ner

preview

URL shortener written using Python's FastAPI framework, Vue.js and UIKit. The FastAPI framework uses SQLAlchemy for ORM. Data is persisted in Postgresql.

The app is available at https://url-shortener-take-home.herokuapp.com.

Dev

Install the Python dependencies

pip install -r requirements.txt

Run the app server with hot reload

uvicorn shortener.main:app --reload  

Tests

To run the unit tests, run

python -m pytest

Design

A URL hash consists of 9 digits, which are separated by 3 dashes, with the hope that the hashes are more readable.

We use digits-only hash because we don't think there will be high traffic from this app 🙂.

About

https://url-shortener-take-home.herokuapp.com


Languages

Language:Python 49.2%Language:HTML 34.5%Language:JavaScript 15.0%Language:Procfile 0.7%Language:CSS 0.7%