0% done with Advanced Components: Slots II (Dynamic Slots)
2:36
|
Published on
2/22/2020
|
|
Chapter 2 of 5 in Advanced Components: Slots
Exercise 0 - Raising Github API Rate Limit (updated)
The Github API has a rate limit of 60 requests/hour if you're not authenticated.
You can raise that to 5,000 requests/hour by logging in or authenticating your code.
Logging in via the command line like this may work for some.
$ curl -u "yourusername" https://api.github.com
Others will need to install dotenv and update their findData
method as follows:
async findData(){
let url = `https://api.github.com/orgs/${this.username}/repos`;
let results = await this.axios.get(url, {
headers: {
'Authentication': `token ${process.env.VUE_APP_GITHUB_AUTH}`
}
});
this.projects = results.data;
},
What do others think of VueScreencasts?
"Very nice thanks"
—Henryque
"Great as always, thanks Jeffrey."
—אלכסיי לוינזון
"Damn it's good content. I am happy that I found VueScreencasts."
—Shamim Hossain
"Awesome video!"
—Doïc de Maleprade