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
Radoslav Stankov 05/06/2018
View Slide
Radoslav Stankov@rstankovblog.rstankov.comgithub.com/rstankov twitter.com/rstankov
https://speakerdeck.com/rstankov/phoenix-lecture
! Take 1" What is Phoenix# Router$ Controller% Views✈ Take 2' Contexts ( RESTful ) ChannelsAgenda
http://phoenixframework.org/
Erlang VM (Beam)OTPElixirPhoenixPlug Ecto **
EndpointRouterControllerControllerView ViewModel Modelconn
mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez https://hexdocs.pm/phoenix/installation.html Installation
*
+
https://hexdocs.pm/phoenix/overview.html
https://hexdocs.pm/phoenix_html/Phoenix.HTML.html
EndpointRouterControllerControllerView ViewContext Contextconn
EndpointRouterControllerControllerView ViewContext ContextconnModel(s) Model(s)
Web (Frontend)ContextBackgroundWeb (Backoffice)
RESTfulmethod path controller actionGET /posts posts indexGET /posts/new posts newPOST /posts posts createGET /posts/:id posts showGET /posts/:id/edit posts editPATCH /posts/:id posts updateDELETE /posts/:id posts delete
socket.connectTransportDispatchChannelsocket.join (topic)PubSubChannelsocket.join (topic)Channelsocket.join (topic)
Thanks ,