# OAuth2/Phoenix Example Application

> This is an example application showing how one can integrate with the
> [OAuth2](https://github.com/scrogson/oauth2) library and
> the [Phoenix](https://github.com/phoenixframework/phoenix) framework.

![Alt text](https://monosnap.com/file/PahR5zCiU9EapeRyuvAKn1AyTitp1p.png)

To start the application:

1. Register a new application on [GitHub](https://github.com/settings/applications/new)
2. Set `CLIENT_ID` and `CLIENT_SECRET` environment variables
3. Install dependencies with `mix deps.get`
4. Start Phoenix router with `mix phoenix.server`

Now you can visit `lvh.me:4000` from your browser and click "Sign in with
GitHub".

# OAuth2/Phoenix Example Application

> This is an example application showing how one can integrate with the
> [OAuth2](https://github.com/scrogson/oauth2) library and
> the [Phoenix](https://github.com/phoenixframework/phoenix) framework.

![Alt text](https://monosnap.com/file/PahR5zCiU9EapeRyuvAKn1AyTitp1p.png)

To start the application:

1. Register a new application on [GitHub](https://github.com/settings/applications/new)
    - Enter http://lvh.me:4000/auth/callback for the Authorization callback URL
2. Set `CLIENT_ID` and `CLIENT_SECRET` environment variables
3. Install Elixir dependencies with `mix deps.get`
4. Install NodeJS dependencies with `npm install`
5. Start Phoenix router with `mix phoenix.server`

Now you can visit `lvh.me:4000` from your browser and click "Sign in with
GitHub".

Include callback url and npm install in readme
Include callback url and npm install in readme