Sign inSign up

selase/shortly-app

By selase

•Updated 4 months ago

URL shortener service (Redis-backed) — Project A of a DevOps portfolio series.

Image
0

402

selase/shortly-app repository overview

⁠shortly-app

A small URL shortener service — Project A of a three-part DevOps portfolio series.

Source code, CI/CD, and full documentation: https://github.com/Selase17/shortly-app⁠

⁠Run it

docker pull selase/shortly-app:latest
docker run -p 5000:5000 \
  -e REDIS_HOST=your-redis-host \
  -e REDIS_PORT=6379 \
  selase/shortly-app:latest

The app requires a reachable Redis instance for storage. For a complete local stack (app + Redis together), use the docker-compose.yml in the source repository.

⁠Endpoints

MethodEndpointPurpose
POST/shortenCreate a short code for a URL
GET/<code>Redirect (302) to the original URL
GET/healthzHealth check — verifies Redis connectivity

⁠Configuration (environment variables)

VariableDefaultPurpose
REDIS_HOSTlocalhostRedis hostname
REDIS_PORT6379Redis port
REDIS_DB0Redis database number

⁠Tags

  • latest — most recent build from main
  • <git-sha> — immutable, traceable to the exact source commit

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:a5df1f6d6…

Size

46.9 MB

Last updated

6 months ago

docker pull selase/shortly-app