<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Adetuwo Ezekiel Mofiyinfoluwa</title>
    <description>The latest articles on DEV Community by Adetuwo Ezekiel Mofiyinfoluwa (@zhikky).</description>
    <link>https://dev.to/zhikky</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1004486%2Fce474bfa-063d-4077-abda-342b4f7b7ecc.jpeg</url>
      <title>DEV Community: Adetuwo Ezekiel Mofiyinfoluwa</title>
      <link>https://dev.to/zhikky</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zhikky"/>
    <language>en</language>
    <item>
      <title>Creating a Portfolio Page with GitHub Projects for AltSchool Second Semester Exams</title>
      <dc:creator>Adetuwo Ezekiel Mofiyinfoluwa</dc:creator>
      <pubDate>Mon, 09 Jan 2023 11:20:12 +0000</pubDate>
      <link>https://dev.to/zhikky/creating-a-portfolio-page-with-github-projects-for-altschool-second-semester-exams-1gfc</link>
      <guid>https://dev.to/zhikky/creating-a-portfolio-page-with-github-projects-for-altschool-second-semester-exams-1gfc</guid>
      <description>&lt;p&gt;Are you a new developer looking for an effective way to showcase your projects to the world? Creating a portfolio page with GitHub projects is the perfect way to do just that! GitHub is an open-source platform that allows anyone to host and share their programming projects and code. With the GitHub repository source file, you can easily create a portfolio page to showcase all of your projects and great repositories. In this guide, we'll walk you through the process of creating a portfolio page with GitHub projects, so you can showcase your talent and dazzle potential employers!&lt;/p&gt;

&lt;h2&gt;
  
  
  Content
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Overview of React JS&lt;/li&gt;
&lt;li&gt;Setting up React Router&lt;/li&gt;
&lt;li&gt;Setting up the App Components&lt;/li&gt;
&lt;li&gt;Importing Repository data from GitHub&lt;/li&gt;
&lt;li&gt;Hosting the app on Firebase.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Overview of React JS
&lt;/h2&gt;

&lt;p&gt;React.js is a JavaScript library for building user interfaces. It is maintained by Facebook and a community of individual developers and companies. React allows developers to create large web applications that use data and can change over time without reloading the page. It aims primarily to provide speed, simplicity, and scalability.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr8gk9ake6lclgxj12qj5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr8gk9ake6lclgxj12qj5.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;React components are written using a combination of JavaScript and HTML-like syntax called JSX. This is then compiled to plain JavaScript that can be understood by most browsers. React components are reusable and can be used to create complex user interfaces. When a user interacts with the application, the state of the components is updated and rendered to the user.&lt;/p&gt;




&lt;h2&gt;
  
  
  Setting up React Router
&lt;/h2&gt;

&lt;p&gt;React Router is a popular library used to handle routing in React applications. It allows you to set up multiple routes, which can be accessed by users when navigating your site. Setting up React Router is relatively straightforward and can be done in just a few steps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install React Router:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The first step is to install React Router using the command line. To do this, you'll need to have Node.js and npm installed on your machine. Once you have those, you can install React Router using the command:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;npm install react-router-dom&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create a Router Component:&lt;/strong&gt;&lt;br&gt;
Once React Router has been installed, you'll need to create a Router component. This component will act as the starting point for all of the routes in your application. You can create a Router component like this:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;import { BrowserRouter as Router, Route } from 'react-router-dom';&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;



&lt;p&gt;&lt;code&gt;const AppRouter = () =&amp;gt; (&lt;br&gt;
  &amp;lt;Router&amp;gt;&lt;br&gt;
    &amp;lt;Route path="/" component={Home} /&amp;gt;&lt;br&gt;
  &amp;lt;/Router&amp;gt;&lt;br&gt;
);&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fblq2i8kzo1pc73kpph5l.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fblq2i8kzo1pc73kpph5l.jpg" alt="Image description" width="800" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Add Routes:&lt;/strong&gt;&lt;br&gt;
 After you define your routes, you can use the &lt;code&gt;&amp;lt;Link&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;NavLink&amp;gt;&lt;/code&gt; components to navigate between them. the &lt;code&gt;&amp;lt;Link&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;NavLink&amp;gt;&lt;/code&gt; taking in a "to" attribute which dictates the link or path to which the link would lead to. &lt;/p&gt;


&lt;h2&gt;
  
  
  Setting up Components
&lt;/h2&gt;

&lt;p&gt;Functional components are a great way to make your React projects more efficient, organized, and maintainable. To set up functional components, you need to create a new file for each component, import React and ReactDOM, and then write a basic function that returns JSX. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg3epa8hy013hn8pabno6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg3epa8hy013hn8pabno6.png" alt="Image description" width="800" height="347"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each component should have a descriptive name. You can also use props to pass data to your components, and use state to store and update data within the component. Make sure to export your components so they can be imported into other components. Finally, you can use the ReactDOM.render() method to render your React components to the DOM.&lt;/p&gt;


&lt;h2&gt;
  
  
  Importing repository data from Github
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Fetching your repositories&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fetch(`https://api.github.com/users/${github_username}/repos?${repo_endpoint_parameter}`)
.then(response =&amp;gt; response.json())
.then(result =&amp;gt; this.setState({ repos: result }));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://api.github.com/users/your_github_username" rel="noopener noreferrer"&gt;https://api.github.com/users/your_github_username&lt;/a&gt; is the REST API endpoint provided by GitHub, this is actually what we are fetching. The response from the fetch call is then called all through our app when reassigned designated values.&lt;/p&gt;




&lt;h2&gt;
  
  
  Hosting the App of Firebase
&lt;/h2&gt;

&lt;p&gt;Note: There are several free hosting sites that you can check out but I will be discussing the process for hosting on Firebase.&lt;/p&gt;

&lt;p&gt;To host your created app on Fire base, follow the following steps&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Create an Account with Firebase&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First, create a new account with Firebase by visiting the Firebase website and signing up. You will need to provide your account details and payment information to complete the setup process.&lt;br&gt;
To sign up, go to &lt;a href="https://firebase.google.com/" rel="noopener noreferrer"&gt;https://firebase.google.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Install the Firebase Command Line Tools&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once you have an account, you will need to install the Firebase command line tools. To do so, you will need to download the Firebase CLI, which is available for both Windows and Mac operating systems.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwmt9tlmw7vs70h10ecy2.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwmt9tlmw7vs70h10ecy2.jpeg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Initialize a Firebase Project&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once the Firebase CLI is installed, you will need to create a new project. To do this, you will use the command line to run the firebase init command. This will create a new Firebase project and initialize it with the default settings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Configure the Firebase Project&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before you can deploy your app, you will need to configure your Firebase project. To do this, you will need to set up the project settings, such as the project name, database rules, and authentication settings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Deploy the App&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In conclusion, creating a React portfolio app and hosting it on Firebase may seem daunting, but with the right understanding of the development process, it can be done with relative ease. There is a wide range of technologies available and the combination of React, Firebase, and other services are a great way to create a powerful and robust portfolio. With a bit of patience and the right guidance, anyone can create a portfolio app and host it on Firebase.&lt;/p&gt;

</description>
      <category>watercooler</category>
      <category>productivity</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
