Python URL Shortener
Project description
shtl.ink api
URL Shortener built with Python and FastAPI
Read API Docs
- Run App
- Navigate to http://localhost:8000/docs or http://localhost:8000/redoc
Configure environment variables
# requires postgres database
export BASE_URL=http://localhost:8000
# where to redirect / to
export ROOT_REDIRECT_URL=http://shtl.ink
export DB_HOST=abcd
export DB_NAME=abcd
export DB_USER=abcd
export DB_PASS=abcd
Build Local
pip install -r requirements.txt
python -m build
Run Local
pip install shtl-ink-api
uvicorn shtl_ink_api.app:app
Docker Compose
See docker-compose.yml
Build Docker
docker build -t skymoore/shtl-ink-api .
Run Docker
docker pull skymoore/shtl-ink-api
docker run --rm -it -p 8000:8000/tcp skymoore/shtl-ink-api:latest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shtl-ink-api-0.0.19.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for shtl_ink_api-0.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a97a6df918ca5c27390ee610a224e3380f3a058120f5356f82dad9113d39e3de |
|
MD5 | 904b0527ea233029cae998ff1fc578a5 |
|
BLAKE2b-256 | 1af0c1a9d24992d661d7a06c3e9d02f83c8f61e67c9bd403bc2e78acb71ae842 |