Requirements:
- Erlang 18 or later
- Elixir 1.4 or later
- Phoenix 1.3
- Node.js 6.4.0 or later
Links:
Requirements:
Links:
This is part of building a chat app with Phoenix Channels workshop. In this part we will use Elixir to build a chat bot.
Remember in part 1 we generated root for the umbrella application? Generate new application for chat bot:
$ cd chatter/apps
$ mix new bot
Using umbrella applications provided by Elixir we can desing for deletability
, one of the great ideas Greg Young
was talking about. Let's stop here for a second and think about boundaries, microservices and how to get it right.
I have a challenge of transforming the data from 1 state to another. I have written my implementation, but I know it could be done, just could’t figure it out. I was looking into using Streams, but struggling to implement it. Any suggestions? | |
input = [["foo", 56, "0", "1"], | |
["bar", 34, "2", "3"], | |
["bla", 90, "2", "1"], | |
["hey", 10, "4", "1"]] | |
output = [%{"0" => [56]}, | |
%{"2" => [90, 34]}, | |
%{"4" => [10]} |
I hereby claim:
To claim this, I am signing this object: