A Walk Through of a Phoenix Web Application

Andrew Schutt

Hi, I am Andrew

What is Phoenix?

What is Phoenix?

  • A city in Arizona

What is Phoenix?

  • A city in Arizona
  • A French band

What is Phoenix?

  • A city in Arizona
  • A French band
  • A mythical creature

What is Phoenix?

  • A city in Arizona
  • A French band
  • A mythical creature
  • A web development framework!

Phoenix Web Framework

  • Built with Elixir
  • Makes use of MVC pattern
  • Great for realtime
  • Incredible performance

Elixir

  • Functional Language
  • Built on top of Erlang VM
  • Highly Scalable
  • Concurrent
  • Syntax

Erlang

-module(hello_module).
-export([some_fun/0, some_fun/1]).

% A "Hello world" function
some_fun() ->
  io:format('~s~n', ['Hello world!']).

% This one works only with lists
some_fun(List) when is_list(List) ->
  io:format('~s~n', List).

% Non-exported functions are private
priv() ->
  secret_info.

Elixir

defmodule HelloModule do
  # A "Hello world" function
  def some_fun do
    IO.puts "Hello world!"
  end

  # This one works only with lists
  def some_fun(list) when is_list(list) do
    IO.inspect list
  end

  # A private function
  defp priv do
    :secret_info
  end
end

Back to Phoenix

  • Plug
  • Ecto
  • Cowboy

Plug

Ecto

Cowboy

To the code

A Walk Through of a Phoenix Web Application

By Andrew Schutt

A Walk Through of a Phoenix Web Application

A presentation I gave for Des Moines Web Geeks regarding the Phoenix Web Framework that I used for creating a raffle app for the event

  • 89
Loading comments...

More from Andrew Schutt