init github rest api thanx to directives and services