Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.61 KB

File metadata and controls

32 lines (24 loc) · 1.61 KB

Homework week 6

Finish homework week 5: https://github.com/HackYourFuture/JavaScript/blob/master/Week5/MAKEME.md and hand in the link to your Github Repository in Trello

Read through the JavaScript Fundamentals README and make the exercises hand in your answers in Trello.

ASK A QUESTION ON SLACK!!!!

Homework from class

Create a repo that makes this code work, implies an html file and a js file.

fetchReposFromOrganization('hackyourfuture')
  .then(renderListOfRepositories)
  .then(fetchContributors)
  .then(renderContributors);

Make sure you authenticate the request with a token, Create a new token. You should be able to achieve with something like:

request.setRequestHeader("Authorization", "token " + TOKEN);

IMPORTANT REQUIREMENT We're assuming that you know that TOKEN is a precious piece of data. You've to make sure that you never publish your TOKEN openly!

Tip: A way of solving, could be, creating an input where I to fill the personal token. Maybe use Local Storage so when we come back is already set. You can find also start to look at stuff like: How to get value from input.. etc...

rewatch the Hangouts lecture here: https://www.youtube.com/watch?v=bC7Ih5nxBCk