a small incremental UI library for the web
javascript web ui
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Run dev server

garrison 502574a4 7add1a89

+11
+1
lib/noir/application.ex
··· 3 3 4 4 def start(_type, _args) do 5 5 children = [ 6 + {Bandit, [plug: Noir.DevServer, ip: :loopback, port: 2000]}, 6 7 ] 7 8 Supervisor.start_link(children, strategy: :one_for_one) 8 9 end
+3
lib/noir/dev_server.ex
··· 1 1 defmodule Noir.DevServer do 2 + import Plug.Conn 3 + 2 4 def init(options) do 3 5 options 4 6 end 5 7 6 8 def call(conn, _opts) do 7 9 conn 10 + |> send_resp(200, "Noir") 8 11 end 9 12 end
+7
mix.exs
··· 8 8 elixir: "~> 1.19", 9 9 start_permanent: Mix.env() == :prod, 10 10 deps: deps(), 11 + aliases: aliases(), 11 12 ] 12 13 end 13 14 ··· 23 24 defp deps do 24 25 [ 25 26 {:bandit, "~> 1.10", only: [:dev, :test]}, 27 + ] 28 + end 29 + 30 + defp aliases do 31 + [ 32 + server: "run --no-halt", 26 33 ] 27 34 end 28 35 end