Giter Club home page Giter Club logo

angular-github-adapter's Introduction

black

angular-github-adapter's People

Contributors

0x-r4bbit avatar gregwym avatar m0dd3r avatar mdurn avatar scottnath avatar stephanhoyer avatar zgohr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

angular-github-adapter's Issues

How to know if I'm successfully authenticated?

Hi! I'm testing this adapter and it's amazing. Now I'm trying to build a simple login app using it, and once the user is logged in, list all the repositories that the user (in this case, me) has, including the privated ones.
But I don't know how to be sure if I'm successfully authenticated or when my username or password are wrong, to return a message to html. There is a way to know it?

I'm currently using the "setCreds('myUsername', 'myPassword', 'basic')" method and a service for auth purposes. The code for that method, creates a Github() instance but never returns it neither a boolean value to confirm that everything is ok or not.

Thanks in advance :)

Integration feedback

Hi, and thanks for the adapter. I've incorporated into one of my projects and thought I would give a little feedback.

  1. For some reason it wasn't quite clear to me that this actually depends on github.js. I was mistakenly under the impression that it replaced it (until I got errors and actually read the code a bit closer ๐Ÿ˜‰). A couple suggestions on this:
  • You're including the angular.js lib when you install this via bower, so perhaps also make github.js a dependency as well and install that alongside (which is also available through bower).
  • Clearly state in the README that github.js should be installed and included in your app.

Let me know which approach you'd like to take here and I'll be happy to open a pull request.

  1. The README has a slight conflict in it's instructions in that it first states to use the variable $githubProvider and then later says you can now access $github within your controller and services. Using angular.module('myApp').config(function ($githubProvider) { doesn't actually work. You get an Error: Unknown provider: $githubProviderProvider <- $githubProvider if you try. So I would suggest a change to the README for that. I'll open a pull request for you on that and try to follow your guidelines. (see #3)

New release

Please create new release as there's new code available :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.