URL-shortener

URL-shortener project to showcase python use

Create venv

cd /opt/kjc/int/URL-shortener
python3 -m venv venv
source venv/bin/activate

Run locally

uvicorn app.main:app --reload

Then check: http://127.0.0.1:8000 http://127.0.0.1:8000/docs

Test Short URL Endpoint http://127.0.0.1:8000/shorten

Running a test

PYTHONPATH=./ pytest
export PYTHONPATH=$(pwd)
pytest
S
Description
Production-ready URL Shortener built with FastAPI, PostgreSQL, Docker, and Alembic.
Readme
1.1 MiB
2026-03-05 20:07:25 +00:00
Languages
Python 95.1%
Mako 3.1%
Dockerfile 1%
Makefile 0.8%