Skip to content
Another URL shortener written in Elixir.
Elixir JavaScript HTML CSS Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
apps
config
rel
.dockerignore
.formatter.exs
.gitignore
Dockerfile
README.md
mix.exs
mix.lock

README.md

Shortify

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

Building and deploying release with Docker

Building image
docker build -t shortify .
Running container
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://curl.ist" \
    -it shortify
  • 4000 port listening for web and 4001 for API by default.


License : MIT

You can’t perform that action at this time.