Explore Accounts from IEx
Explore the Phoenix Accounts context through IEx by examining its public functions, including user creation, confirmation, and session management. Understand how to create, validate, and handle errors when managing users within the application environment to secure authentication.
We'll cover the following...
When we’re working with big applications with huge available libraries, it pays to have a few tools in your toolbox for exploration. Reading code is one technique we can use, and another is looking at the public functions in IEx. To do so we’ll use a function called exports.
Most experienced programmers strive to separate complex code into layers. We’ll have plenty of opportunities to explore these layers from the inside in the upcoming lessons. Right now, rather than focusing on how the code works, we’ll look at the various things that it can do—starting in this section with the Accounts context. The generated Accounts context is the layer that we’ll use to create, read, update, and delete users in the database. It provides an API ...