In the previous article, we have implemented authentication solution.
But we still have some spots to cover.
Our users still can access every page even though they are not logged in.
Today we will introduce some improvements in our authentication solution and do it by using the Plugs.
Let’s get started.
Authentication solutions are broad. They contain registration and login functionality, as well as Email confirmation, password recovery, update user’s profile etc.
We are going to cover the most valuable part and implement registration and login functionality.
You can find some existing libraries for that. Addict for example.
But we are learning, right? It would be better for us to understand how everything works under the hood.
So let’s get started.
Bootstrap 4 has been out recently.
Let’s use the advantage of that and learn how to integrate front-end libraries into Phoenix projects.
Last time we have covered the models and we have created a rooms model to keep information about them.
Even though those rooms are in the database now, we are not able to manage them.
Let’s do that by implementing all available CRUD operations.
In the previous article, we have learned about MVC and covered a little bit more how to work with Controllers and Views.
One piece is still missing. The models. Let’s talk about them now.