I am new to elixir and phoenix, and using phoenix guides. In getting started guide they just say http://puu.sh/klblD/e50082298d.png but they didn't explain what is endpoint and whats is tasks. Can somebody explain whats it does?
Asked
Active
Viewed 923 times
5
-
4There is a description in the documentation for the module: http://hexdocs.pm/phoenix/Phoenix.Endpoint.html – Gazler Sep 23 '15 at 10:19
-
2You should quote the docs as an answer :D – José Valim Sep 23 '15 at 11:50
-
1I added @Gazler 's link as an answer for others who may find this question in the future. – Onorio Catenacci Sep 23 '15 at 12:08
-
@JoséValim you are right guides should also have a summary. – Murtza Sep 23 '15 at 13:02
1 Answers
7
Not to take anything away from @Gazier but I agree with @JoseValim; his response should be an answer so others who might look for this can find it easily.
The endpoint is the boundary where all requests to your web application start. It is also the interface your application provides to the underlying web servers.
Overall, an endpoint has three responsibilities:
to provide a wrapper for starting and stopping the endpoint as part of a supervision tree;
to define an initial plug pipeline where requests are sent through;
to host web specific configuration for your application.
The documentation is here.

Onorio Catenacci
- 14,928
- 14
- 81
- 132