An example of using Pow with PowAssent to provide Login with GitHub for a Phoenix app.
It's really easy to setup, is fully featured and can be customised as you need which makes it perefect for getting up and running quickly without getting in your way later on.
To get started:
- Install dependencies with
mix deps.get
- Get GitHub OAuth details and populate a .env file with the details (see .env.example)
- Create and migrate your database with
mix ecto.setup
- Start Phoenix endpoint with
source .env && mix phx.server
Now you can visit localhost:4000
from your browser.
I'm Seth and I have a blog about web development with some Elixir posts.