cookie-authentication-phoenix-liveview-example
cookie-authentication-phoenix-liveview-example copied to clipboard
Example LiveView application to show simple authentication plug
Shop
To start your Phoenix server:
- Setup the project with
mix setup - Start Phoenix endpoint with
mix phx.server - Install nodeJS v12+
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