<?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: Muhammad Ibrahim Umar</title>
    <description>The latest articles on DEV Community by Muhammad Ibrahim Umar (@muhammadui).</description>
    <link>https://dev.to/muhammadui</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%2F177203%2Fa85ef787-476c-41d5-adba-aaf528abe060.png</url>
      <title>DEV Community: Muhammad Ibrahim Umar</title>
      <link>https://dev.to/muhammadui</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/muhammadui"/>
    <language>en</language>
    <item>
      <title>Deploying your React App to Firebase Hosting</title>
      <dc:creator>Muhammad Ibrahim Umar</dc:creator>
      <pubDate>Thu, 30 Mar 2023 17:22:13 +0000</pubDate>
      <link>https://dev.to/muhammadui/deploying-your-react-app-to-firebase-hosting-4jkn</link>
      <guid>https://dev.to/muhammadui/deploying-your-react-app-to-firebase-hosting-4jkn</guid>
      <description>&lt;p&gt;Deploying a &lt;strong&gt;React&lt;/strong&gt; app to Firebase Hosting can be a straightforward process. &lt;strong&gt;Firebase&lt;/strong&gt; is a mobile and web application development platform that provides a range of services, including hosting, database, authentication, storage, and analytics. &lt;br&gt;
&lt;strong&gt;Firebase Hosting&lt;/strong&gt; is a fast and reliable hosting solution that allows developers to deploy web applications quickly and easily.&lt;/p&gt;

&lt;p&gt;In this tutorial, we will cover the steps required to deploy a React app on Firebase Hosting. We will assume that you have a basic understanding of React and Command Line.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;br&gt;
Before we get started, you will need the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Firebase account&lt;/li&gt;
&lt;li&gt;React application&lt;/li&gt;
&lt;li&gt;Firebase CLI installed on your machine&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Create a Firebase Project&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To get started, &lt;a href="https://console.firebase.google.com/" rel="noopener noreferrer"&gt;log in&lt;/a&gt; to your Firebase console and create a new project. Give your project a name and select your preferred region. Once your project is created, navigate to the project dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fyljiho37ktmxt4yyrml4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fyljiho37ktmxt4yyrml4.png" alt="Creating firebase project screenshot"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, choose the platform for your app. In this case, we will choose "Web". Provide a name for your app and click on the "Register app" button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fghdsv0hcsq87ksn1s5fo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fghdsv0hcsq87ksn1s5fo.png" alt="Select a web project"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Firebase will generate a set of configuration keys for your app. Copy these keys to your clipboard, as we will use them later in the tutorial.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fwkwsxocba2kqwzeall71.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fwkwsxocba2kqwzeall71.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fqefukd4f8vfyhyid9li1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fqefukd4f8vfyhyid9li1.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Install Firebase CLI&lt;/strong&gt;&lt;br&gt;
Next, we need to install the Firebase CLI on our machine. The Firebase CLI is a command-line interface that allows us to interact with Firebase from our terminal.&lt;/p&gt;

&lt;p&gt;To install Firebase CLI, open your terminal and run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; firebase-tools
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once the installation is complete, log in to Firebase CLI by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;firebase login
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will open a browser window and ask you to log in to your Firebase account. Once you are logged in, you can close the browser window and return to your terminal.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Initialize Firebase in Your React App&lt;/strong&gt;&lt;br&gt;
Now that we have installed Firebase CLI, we can initialize Firebase in our React app. Navigate to your project directory in your terminal and run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;firebase init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will initialize Firebase in your project and create a firebase.json file in your project root directory.&lt;/p&gt;

&lt;p&gt;Next, we need to configure Firebase Hosting. In the Firebase CLI prompt, select "Hosting" and press Enter. Then, select the project you created in Step 1.&lt;/p&gt;

&lt;p&gt;Firebase will ask you to configure your hosting settings. Use the following configuration:&lt;/p&gt;

&lt;p&gt;What do you want to use as your public directory? dist&lt;br&gt;
Configure as a single-page app (rewrite all urls to /index.html)? Yes&lt;br&gt;
File dist/index.html already exists. Overwrite? Yes&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fsp6vbtsyppm5hy4zf1q4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fsp6vbtsyppm5hy4zf1q4.png" alt="Firebase Initialization"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Build Your React App&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before we can deploy our app to Firebase Hosting, we need to build our React app. To do this, run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will create a production-ready build of your React app in the dist directory.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2F4ys8cnt7ce854z1gme19.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2F4ys8cnt7ce854z1gme19.png" alt="Firebase Deploy"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Deploy Your React App to Firebase Hosting&lt;/strong&gt;&lt;br&gt;
Finally, we are ready to deploy our React app to Firebase Hosting. To do this, run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;firebase deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Congratulations! You have successfully deployed your React app to Firebase Hosting.&lt;/p&gt;

&lt;p&gt;App is Live, preview it &lt;a href="https://react-app-d250f.web.app/" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this tutorial, we covered the steps required to deploy a React app on Firebase Hosting. We started by creating a Firebase project and configuring Firebase CLI on our machine. Then, we initialized Firebase in our React app and configured Firebase Hosting. Finally, we built our React app and deployed it to Firebase Hosting.&lt;/p&gt;

&lt;p&gt;Firebase Hosting is a fast and reliable hosting solution that allows developers to deploy web applications quickly and easily. It is an excellent option for hosting your React app, as it provides a range of features and integrations that can help streamline your development workflow.&lt;/p&gt;

&lt;p&gt;If you encounter any issues during the deployment process, be sure to consult the Firebase documentation or reach out to their support team for assistance. Happy coding!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>firebase</category>
      <category>react</category>
    </item>
    <item>
      <title>Installing Fira Code on Github Codespaces.</title>
      <dc:creator>Muhammad Ibrahim Umar</dc:creator>
      <pubDate>Thu, 26 May 2022 06:58:54 +0000</pubDate>
      <link>https://dev.to/muhammadui/installing-fira-code-on-github-codespaces-5h1o</link>
      <guid>https://dev.to/muhammadui/installing-fira-code-on-github-codespaces-5h1o</guid>
      <description>&lt;p&gt;Before you get confuse about what fira code is, let me explain.&lt;br&gt;
Fira Code is a free monospaced font containing ligatures for common programming multi-character combinations.&lt;br&gt;
If you are still not okay with this explanation, you can check out Fira Code on &lt;a href="https://github.com/tonsky/FiraCode" rel="noopener noreferrer"&gt;Github&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 0 - Installing the font.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open your terminal and paste this command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;fonts-firacode
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.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%2F4vegxukbe0fvnzke0ivy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2F4vegxukbe0fvnzke0ivy.png" alt="command oputput"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1 - Font Configuration. [&lt;em&gt;Making it active&lt;/em&gt;]&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;click on the gear icon at the bottom left corner.&lt;/li&gt;
&lt;li&gt;Click Settings&lt;/li&gt;
&lt;li&gt;Search for ligatures on the search bar&lt;/li&gt;
&lt;li&gt;Click edit settings.json.
then finally, copy and paste this in your settings.json file
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"editor.fontFamily"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Fira Code"&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nl"&gt;"editor.fontLigatures"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.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%2Fx5quglmcctuerkjdhhyq.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fx5quglmcctuerkjdhhyq.gif" alt="Short Gif"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that's it.&lt;br&gt;
Congratulations for making it to the end👏👏🎉🎊&lt;/p&gt;

</description>
      <category>github</category>
      <category>webdev</category>
      <category>programming</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
