dwyl / elixir-auth-github

:octocat: Minimalist GitHub OAuth Authentication for Elixir Apps. Tested, Documented & Maintained. Setup in 5 mins. 🚀
GNU General Public License v2.0
38 stars 4 forks source link

Update Docs and Re-publish #32

Closed nelsonic closed 4 years ago

nelsonic commented 4 years ago

The code in this package/repo works. ✅ 🎉 But there is nowhere near enough documentation for someone else to use the package without reading the code in /lib ... as a result only we (@dwyl) are using it and nobody else is benefiting from it.

We need to comprehensively document the package (a) because it makes it easier to maintain, (b) it makes it easier (possible) for other people to use it and get their GitHub Auth enabled projects off the ground and (c) other people in the elixir/dwyl community can contribute improvements. Similar to https://github.com/dwyl/elixir-auth-google/issues/10 and PR: https://github.com/dwyl/elixir-auth-google/pull/11

Thankfully this package's /lib/elixir_auth_github.ex already has pretty decent @doc comments 👍 So all that is missing is are the detailed instructions for getting it setup.

Compare the difference: before: https://github.com/dwyl/elixir-auth-google/tree/2b1f9b09433fb7845dff00f593edd8fa29825f5f after: https://github.com/dwyl/elixir-auth-google/tree/71c022afee27e2cc377936c686538afa8e08d13e

Todo

before: https://github.com/dwyl/elixir-auth-github/tree/44021233add025348f261f5bf0b9b32fe6c5711a after: 🔜 https://github.com/dwyl/elixir-auth-github/tree/update-docs-issue%2332

nelsonic commented 4 years ago

Continue: https://github.com/dwyl/elixir-auth-github-demo#-continue-here

nelsonic commented 4 years ago

Demo App working ...

http://localhost:4000/ image

image If you are a member of a few orgs, keep scrolling until you see the Authorize nelsonic button: image

Once you authorize the app, you will be redirected back to the Phoenix App and will see: image

🚀

nelsonic commented 4 years ago

image Auth Step: image Success: image

That was a good day! :shipit: