example: Add simple router example (#12)
This commit is contained in:
parent
07821494dd
commit
5049e0643a
17 changed files with 621 additions and 0 deletions
27
examples/simple_router/mix.exs
Normal file
27
examples/simple_router/mix.exs
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue