Yet another URL shortener written in Elixir.
Running shortify locally
- Set
DATABASE_URL
environment variable with pool size
postgres://username:password@db_host:5432/shortify_db?pool_size=10
- Run
iex -S mix
on command-line - Visit http://localhost:4000
Building and deploying release with Docker
docker build -t shortify .
docker run --rm \
-p 4000:4000 \
-p 4001:4001 \
-e DATABASE_URL="postgres://postgres:pass@pgdb:5432/shortify_db?pool_size=10" \
-e WEB_BASE_URL="http://mydomain.com" \
-it shortify
4000
port listening for web and4001
for API by default.
License : MIT