>>> WARNING THIS IS WIP <<<
This is a walkthrough of whats going on when you do
mix nerves.new dummy
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
</head> | |
<body> | |
<.select> | |
<:opt label="label1">opt-inner-1</:opt> | |
<:opt label="label2" selected>opt-inner-2</:opt> | |
<:opt label="label3" /> |
mix phx.new hello --no-ecto
add lib/hello_web/live/hello_live.ex
defmodule HelloWeb.HelloLive do
use Phoenix.LiveView, layout: {HelloWeb.LayoutView, "live.html"}
def mount(_, _, socket) do
{:ok, assign(socket, :attrs, %{})}
defmodule UDPServer do | |
@moduledoc """ | |
startup iex | |
``` | |
$ iex -S mix | |
iex(1)> UDPServer.start_link | |
{:ok, #PID<0.220.0>} | |
``` |