In this video we implement our first web server in Elixir, using Plug and Plug Cowboy. We also explore some core web server concepts, as well as implement a more complex example that can serve multiple urls or entrypoints.
Sections
00:00 Intro
00:16 Episode explanation
01:56 Webservers 101
06:41 Implementation of a web server
12:37 Piping in Elixir
20:42 A simple router
25:27 Logging requests
28:48 Outro
Links
- Plug github page: https://github.com/elixir-plug/plug
- Background information about the internet today: https://ninenines.eu/docs/en/cowboy/2.6/guide/modern_web/
- Rationale for cowboy in the modern internet: https://ninenines.eu/docs/en/cowboy/2.6/guide/erlang_web/