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.17.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for shtl_ink_api-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f0deabfd7fa7e5db59324c191ee28ae7a74e95fba8cd6d402972f2522bbc0ac |
|
MD5 | 6d0ba848f3cb6cf59b4f49c20a804630 |
|
BLAKE2b-256 | e8429028b2de9dacf85f071e7e828a9c5819aa31b03a260e69e5b154520a0792 |