Phoenix Lecture

Phoenix Lecture

Guest lecture at FMI of Sofia University's Elixir course.

Demo code:

https://github.com/RStankov/talks-code/tree/master/2018.06.05%20-%20Phoenix%20Lecture

7a0e72a6f55811246bb5d9a946fd2e49?s=128

Radoslav Stankov

June 05, 2018
Tweet

Transcript

  1. Radoslav Stankov 05/06/2018

  2. Radoslav Stankov @rstankov blog.rstankov.com github.com/rstankov
 twitter.com/rstankov

  3. None
  4. https://speakerdeck.com/rstankov/phoenix-lecture

  5. None
  6. None
  7. None
  8. None
  9. ! Take 1 " What is Phoenix # Router $

    Controller % Views ✈ Take 2 ' Contexts
 
 ( RESTful
 
 ) Channels Agenda
  10. None
  11. 
 http://phoenixframework.org/


  12. Erlang VM (Beam) OTP Elixir Phoenix Plug Ecto **

  13. Erlang VM (Beam) OTP Elixir Phoenix Plug Ecto **

  14. Endpoint Router Controller Controller View View Model Model conn

  15. mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez 
 https://hexdocs.pm/phoenix/installation.html
 Installation

  16. None
  17. None
  18. None
  19. None
  20. None
  21. None
  22. None
  23. None
  24. None
  25. None
  26. None
  27. None
  28. None
  29. None
  30. None
  31. None
  32. None
  33. None
  34. None
  35. None
  36. None
  37. None
  38. None
  39. None
  40. None
  41. None
  42. None
  43. None
  44. *

  45. None
  46. +

  47. 
 https://hexdocs.pm/phoenix/overview.html


  48. None
  49. None
  50. None
  51. None
  52. None
  53. None
  54. 
 https://hexdocs.pm/phoenix_html/Phoenix.HTML.html


  55. None
  56. Endpoint Router Controller Controller View View Context Context conn

  57. Endpoint Router Controller Controller View View Context Context conn

  58. Endpoint Router Controller Controller View View Context Context conn Model(s)

    Model(s)
  59. None
  60. None
  61. None
  62. None
  63. None
  64. None
  65. Web (Frontend) Context Background Web (Backoffice)

  66. None
  67. None
  68. None
  69. None
  70. None
  71. None
  72. None
  73. None
  74. RESTful method path controller action GET /posts posts index GET

    /posts/new posts new POST /posts posts create GET /posts/:id posts show GET /posts/:id/edit posts edit PATCH /posts/:id posts update DELETE /posts/:id posts delete
  75. None
  76. None
  77. None
  78. None
  79. None
  80. None
  81. None
  82. None
  83. None
  84. None
  85. None
  86. None
  87. None
  88. None
  89. None
  90. socket .connect Transport Dispatch Channel socket.join
 (topic) PubSub Channel socket.join


    (topic) Channel socket.join
 (topic)
  91. None
  92. None
  93. None
  94. None
  95. None
  96. None
  97. None
  98. None
  99. Thanks ,

  100. https://speakerdeck.com/rstankov/phoenix-lecture