Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

remykarem/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 🙂.