roostercrab

roostercrab

Trying to trace a request through each function

I’m watching Chris McCord’s original video on his design for Phoenix and I’m trying to follow along with the files that he is looking at because I really want to be able to follow a request from beginning to end, but I assume a lot of the files have changed their names and/or locations and/or purpose; or I’m just looking in completely the wrong place!

Just as an example, he mentions a file called mapper.ex that I can’t find in my generated app. Is it somewhere inside the actual phoenix installation? If so…then where is that?

Most Liked

sabiwara

sabiwara

Elixir Core Team

This video is fairly old, I believe that Phoenix project structure has indeed evolved quite a bit since 2014 :wink:
So if you used the latest version of the generator, you probably won’t be able to follow it, I’d suggest either some more up-to-date material, or if you really want to follow this video to use the same version?

I tried to find the equivalent of mapper.ex in today’s phoenix, I think it now lives under Phoenix.Router and is not part of the generated code anymore: phoenix/lib/phoenix/router.ex at main · phoenixframework/phoenix · GitHub

Where Next?

Popular in Questions Top

hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31525 112
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

We're in Beta

About us Mission Statement