example: Add simple router example (#12)

This commit is contained in:
Eishun Kondoh 2018-10-09 18:55:41 +09:00 committed by GitHub
parent 07821494dd
commit 5049e0643a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 621 additions and 0 deletions

View file

@ -0,0 +1,27 @@
defmodule SimpleRouter.MixProject do
use Mix.Project
def project do
[
app: :simple_router,
version: "0.1.0",
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
extra_applications: [:logger, :tres, :pkt],
mod: {SimpleRouter.Application, []}
]
end
defp deps do
[
{:tres, path: "../../../tres"},
{:pkt, github: "msantos/pkt"}
]
end
end