Tokumei
Tiny but MIGHTY Elixir webframework
defmodule MyApp.WWW do
Use Tokumei
@static "./public"
route ["greeting", name] do
:GET ->
ok("Hello, #{name}!")
end
error %NotFoundError do
not_found("Could not find what you were looking for!")
end
end
Dive in
N.B. Generator outdated setups up 0.3.0 project
mix archive.install https://github.com/crowdhailer/tokumei/raw/master/tokumei_new.ez
mix tokumei.new my_app
cd my_app
iex -S mix
visit localhost:8080
Usage
- Explore the water cooler example in this repository.
Documentation is available, on hexdocs, for all middleware modules.