December 2019
Intermediate to advanced
474 pages
10h 3m
English
The project we're building in this chapter is a GitHub portfolio page; it will show our public information and a list of public repositories. Therefore, we need to fetch the official GitHub REST API (v3) and pull information from two endpoints. Fetching data is something we did in the first chapter, but this time, the information won't come from a local JSON file. The method to retrieve the information is almost the same. We'll use the fetch API to do this.
We can retrieve our public GitHub information from GitHub by executing the following command. Replace the username at the end of the bold section of code with your own username:
curl 'https://api.github.com/users/username'