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.
Install the Python dependencies
pip install -r requirements.txt
Run the app server with hot reload
uvicorn shortener.main:app --reload
To run the unit tests, run
python -m pytest
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 🙂.