Packages

A wrapper around Ngrok providing a secure tunnel to localhost for demoing your Elixir/Phoenix web application or testing webhook integrations.

Current section

Files

Jump to
ex_ngrok mix.exs
Raw

mix.exs

defmodule Ngrok.Mixfile do
use Mix.Project
def project do
[app: :ex_ngrok,
version: "0.3.2",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
package: package(),
description: description(),
dialyzer: [plt_add_deps: :transitive]]
end
def application do
[applications: [:logger, :httpoison],
env: [
api_url: "http://localhost:4040/api/tunnels",
executable: "ngrok",
protocol: "http",
port: "4000",
sleep_between_attempts: 200,
options: "",
],
mod: {Ngrok, []}]
end
defp deps do
[
{:ex_doc, "~> 0.14", only: :dev},
{:credo, "~> 0.5", only: [:dev, :test]},
{:dialyxir, "~> 0.4", only: [:dev]},
{:httpoison, "~> 0.10"},
{:poison, "~> 2.0"}
]
end
defp description do
"""
A wrapper around Ngrok providing a secure tunnel to
localhost for demoing your Elixir/Phoenix web application or testing
webhook integrations.
"""
end
defp package do
[maintainers: ["Joshua Fleck"],
files: ["bin/wrap", "lib", "mix.exs", "README.md", "LICENSE"],
licenses: ["MIT"],
links: %{"Github" => "https://github.com/joshuafleck/ex_ngrok"}]
end
end