It's always better to make separate files for functions you might use more than once, in https://github.com/FACG2/getGitHub/blob/master/public/js/index.js#L41 you are making a post http request from the same file you are manipulating the dom.
Maybe it's better to make a request.js file with a function that has 2 arguments for the url and the method.
It's always better to make separate files for functions you might use more than once, in https://github.com/FACG2/getGitHub/blob/master/public/js/index.js#L41 you are making a post http request from the same file you are manipulating the dom.
Maybe it's better to make a request.js file with a function that has 2 arguments for the url and the method.