alephmelo / vase

Vase is an attempt to create an Elixir micro web framework. [early wip]

Home Page:https://hexdocs.pm/vase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vase

Elixir CI codecov

TODO: Add description

Installation

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.

Quick Start

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

Development

$ 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.

About

Vase is an attempt to create an Elixir micro web framework. [early wip]

https://hexdocs.pm/vase

License:MIT License


Languages

Language:Elixir 99.8%Language:HTML 0.2%