Socket
Socket
Sign inDemoInstall

shtl-ink-api

Package Overview
Dependencies
14
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    shtl-ink-api

Python URL Shortener


Maintainers
1

Readme

URL Shortener built with Python and FastAPI

github repository

Read API Docs

  1. Run App
  2. 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

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc