Search for users and Display their Details
Table of Contents
About The Project
This project helps in fetching the data of the users using the Github API and displaying them.
Built With
Getting Started
This website is build using HTML, CSS and Javascript. No other libraries are required or suggested. To get a local copy up and running follow these simple steps.
Prerequisites
- Code editor such as VScode.
Installation
- Clone the repo
git clone https://github.com/shahaab/MLH.git
- Enter your name in
script.js
getUser("ENTER YOUR NAME");
API DOCS
-
Ready to go url's
Initial Setup
- select form, input, results
- listen for submit events
- If empty value, display default
- create getUser()
- pass valid input value into the createUserCard()
Render Results
- iterate over the data fetched by API
- pull out name, bio, followers, following, no. of repos
- setup a card and put the above data into div with id 'user-info'
- pull out repo details such as name, url based on their stars
- put the repo details based on lexicographical order into div with id 'repos'
- set the result and display it