yogeshtakeo / BFD36_files

0 stars 0 forks source link

Task 19: Github profile #22

Open yogeshtakeo opened 9 months ago

yogeshtakeo commented 9 months ago

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.

Youngbikalp commented 8 months ago

Name: Bikalp Timalsina Task 19: Github profile GitHub Url: https://github.com/Youngbikalp/Task-19-Github-profile image

shantibasnet commented 8 months ago

Shanti Basnet Task 19: Github profile URL: https://github.com/shantibasnet/GitProfile

image
Narayanadhikari9 commented 8 months ago

Name: Narayan Adhikari Task 19: GitHub Profile GitHub URL: https://github.com/Narayanadhikari9/GitHub-profile

task 19

mbasnet123456 commented 8 months ago

Name- Manoj Basnet task-Task 19: Github profile git url- https://github.com/mbasnet123456/Task-19-Github-profile-.git

image
ghost commented 8 months ago

Name: Prakash Karki Task 19: Github Profile URL: https://github.com/karki37/task19-github-profile.git Screenshot (20) Screenshot (21) Screenshot (22) Screenshot (23)

aniltimalsina commented 7 months ago

Name: Anil Timalsina Task 19: Github profile GtiHub Link: https://github.com/aniltimalsina/github-profile.git

Screenshot 2023-11-16 at 1 39 08 PM Screenshot 2023-11-16 at 1 39 52 PM Screenshot 2023-11-16 at 1 40 05 PM Screenshot 2023-11-16 at 1 40 20 PM Screenshot 2023-11-16 at 1 40 46 PM