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.18.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for shtl_ink_api-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1822ec7c778ea5d4b6bcd57e9da5852040d0579c6faeaa0ff1d1f64d064b67cb |
|
MD5 | f8df445a1cf1dda280086e4dfbe34acc |
|
BLAKE2b-256 | 2093aa718188c0b29c2d6f43eaeb72c70a1b7968467cd9ad60c6556d0e7fd315 |