TODO: Add description
The package can be installed by adding vase
to your list of dependencies in mix.exs
:
def deps do
[
{:vase, "~> 0.1.0"}
]
end
Docs can be found at https://hexdocs.pm/vase.
defmodule Vase.HelloWorld do
import Vase.Shortcuts
use Vase.Router
get "/" do
render(conn, "foo.eex", name: "Vase")
end
get "/users" do
users = [
%{id: 1, name: "João Silverino"},
%{id: 2, name: "Felipe Esmite"}
]
jsonify(conn, users)
end
end
$ git clone git@github.com:alephmelo/vase.git
$ cd vase
$ mix deps.get
$ mix run --no-halt
This will run the server with hotreload on and you can access it at http://localhost:8080.