Save 37% off PRO during our Black Friday Sale! »

Build Elixir Phoenix

Build Elixir Phoenix

1433d0176e764f9ce48f70673baa72e8?s=128

Jay Hayes

July 19, 2018
Tweet

Transcript

  1. @iamvery BUILD PHOENIX ELIXIR

  2. @iamvery 80 LOC B A S I C F U

    N C T I O N A L I T Y
  3. @iamvery https://iamvery.com — @iamvery Jay Hayes

  4. @iamvery

  5. @iamvery

  6. @iamvery JAVASCRIPT GOT ME LIKE

  7. @iamvery PHP GOT ME LIKE

  8. @iamvery ____ GOT ME LIKE

  9. We’re hiring!

  10. @iamvery KIDS! https://stitchfix.com/kids

  11. @iamvery

  12. @iamvery https://www.flickr.com/photos/memoriesbymike/23561731174/ INTERNET

  13. @iamvery https://www.flickr.com/photos/memoriesbymike/23561731174/ ⚡ INTERNET

  14. @iamvery PIPES

  15. @iamvery Pipeline

  16. @iamvery 3

  17. @iamvery ENDPOINT

  18. @iamvery defmodule YourApp.Endpoint do use Phoenix.Endpoint, … plug(YourApp.Router) end

  19. @iamvery ROUTER

  20. @iamvery defmodule YourApp.Router do use Phoenix.Router… get “/cats”, YouApp.Controller, :index

    get “/cats/felix”, YouApp.Controller, :show post “/cats”, YouApp.Controller, :create end
  21. @iamvery CO TROLLER

  22. @iamvery defmodule YourApp.Controller do use Phoenix.Controller… def index(conn, _params) do

    send_resp(conn, 200, “meows”) end end
  23. @iamvery

  24. @iamvery PLUG

  25. @iamvery

  26. @iamvery 1. Build it

  27. @iamvery 1. Build it 2. Extract it

  28. @iamvery LET’S DO THIS

  29. @iamvery

  30. @iamvery

  31. gitlab.com/iamvery/feenix

  32. With love,

  33. Questions? @iamvery

  34. @iamvery bit.ly/2NBBnHO Elixir Metaprogramming