yogeshtakeo / task_BFD30

Task repo for BFD30
0 stars 0 forks source link

Task 10: GitHub Profile Fetcher #2

Open yogeshtakeo opened 1 year ago

yogeshtakeo commented 1 year ago

Task 10: Retrieve and Display GitHub Profile Using GitHub API and JSX Components

Objective: Retrieve a student's GitHub profile data using the GitHub API URL and display it using JSX components in a React project.

Task Overview

  1. Understand how to retrieve data from an API using the fetch function in JavaScript.
  2. Use JSX components to display the retrieved GitHub profile data in a React project.

Task Details

Create a React Project:

  1. Set up a new React project using Vite or any other preferred tool.
  2. Create the necessary file structure and components for the task.

Retrieve GitHub Profile Data:

  1. In a React component (e.g., GitHubProfile.js), use the fetch function to make a GET request to the GitHub API URL for the student's profile.

API example: https://api.github.com/users/<your_username>

  1. Handle the promise returned by fetch using the then and catch methods.
  2. Extract the response data (JSON) from the resolved promise using the JSON method.
  3. Store the relevant profile data in the component's state.

Display GitHub Profile Using JSX Components:

  1. Create JSX components (e.g., ProfileCard.js, RepositoryList.js, etc.) to render and display the different aspects of the GitHub profile.
  2. Pass the retrieved profile data from the GitHub Profile component to the child components as props or you can use the single file to show the output.
  3. Use the received data within the child components to render the profile information, repositories, followers, etc.
  4. Style the components using CSS to enhance the visual presentation.

Test and Refine:

  1. Start the development server and run the React project.
  2. Verify that the GitHub profile data is successfully retrieved and displayed using the JSX components.
  3. Ensure the layout and styling are visually appealing and well-presented.
  4. Test with different student GitHub profiles to ensure the data is fetched and displayed accurately.

Task Submission

Take a screenshot of the web browser displaying the rendered React component . Share the screenshot Optionally, submit the code files (App.js and any other relevant files) for review with the GitHub Repository.

Namsla commented 1 year ago

Namkhang Tsamchoe

Screen Shot 2023-06-02 at 2 08 27 PM Screen Shot 2023-06-02 at 2 08 46 PM Screen Shot 2023-06-02 at 2 40 32 PM
Jharanatmg commented 1 year ago

Jharana

Image

Image

Image

sandessth commented 1 year ago

Name: Sandesh Shrestha Git URL: https://github.com/yogeshtakeo/task_BFD30/tree/Sandesh/retrieve-and-display-github-profile/react-app code frontpage git

KabinaThapa commented 1 year ago

Kabina Thapa https://github.com/yogeshtakeo/task_BFD30/tree/kabinathapa/github-profile-fetcher

Image Image Image Image Image Image Image

junuthapa011 commented 1 year ago

Name: Junu Thapa Github URL: https://github.com/yogeshtakeo/task_BFD30/tree/junu

Image

Image

Image

ashmaupret100 commented 1 year ago

Name: Ashma Upreti Github_url: https://github.com/yogeshtakeo/task_BFD30/tree/ashma/Github_Profile_Fetcher

Image

Image

Image

Image

babisha commented 1 year ago

Babisha : https://github.com/yogeshtakeo/task_BFD30.git

Image

sdhital12 commented 1 year ago

Screen Shot 2023-07-26 at 1 35 59 PM Screen Shot 2023-07-26 at 1 36 04 PM Screen Shot 2023-07-26 at 1 36 10 PM Screen Shot 2023-07-26 at 1 35 26 PM
sdhital12 commented 1 year ago

Name: Sita Dhital GitUrl task-10 : https://github.com/sdhital12/task-10.git