Packages

Ewebmachine contains macros and plugs to allow you to compose HTTP decision handlers and run the HTTP decision tree to get your HTTP response. This project is a rewrite for Elixir and Plug of basho webmachine.

Current section

Files

Jump to
ewebmachine examples hello mix.exs
Raw

examples/hello/mix.exs

defmodule Hello.Mixfile do
use Mix.Project
def project do
[app: :hello,
version: "0.1.0",
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
def application do
[
applications: [:logger, :ewebmachine, :cowboy, :poison],
mod: {Hello.App, []}
]
end
defp deps do
[
{:ewebmachine, path: "../.."},
{:cowboy, ">= 1.0.4"},
{:poison, "~> 3.0.0"}
]
end
end