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?
"Damn it's good content. I am happy that I found VueScreencasts."
—Shamim Hossain
"Dude, it's an excellent video. Soothing voice, extensive and crystal clear explanations, troubleshooting common issues... You do it and you do it well. Keep up the good work & congratulations :-) Subscribed without the slightest hesitation"
—BillyBobBonnet
"Hi! Your videos are very useful, please go on make it!"
—Сергей Миртов