8. PhxGenAuth
• 認証システム生成機能
• User Authentication for Browser
• phx.gen.auth Accounts User usersで一発
• Token Authentication for API
• phx.gen.authでできたファイルに以下を実装
• pipeline1つ
• トークン取得APIを1つ
9. LiveView
LiveView provides rich, real-time user experiences
with server-rendered HTML
•push_event
•ElixirからJS hookの関数を発火
•pushEvent
•JS から handle_infoで待受ている関数を発火
•handleEvent
•push_eventで実行される関数を定義
11. Presence
Phoenix Presence is a feature
Witch allows you to register process information on a topic
And Replicate it transparently across a cluster
Such as
• List users who are currently onlin
e
• Show message like “Haigo typing…..“
44. Mount process
1.Presence track
1.Get Map related Point
2.Grouped by device_id
2.Location data create for
GoogleMap
3.Assign Presence list data
4.push event to JS side with
location data