Example LiveView application to show simple authentication plug
To start your Phoenix server:
mix setup
mix phx.server
nvm install v12
visit localhost:4000/shop
Unauthenticated users will be redirected to the login page.
Click the Sign Up link to create a new account.
This will redirect you to the restricted shop page.
visit localhost:4000/logout
to logout