<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Swaraj Gosavi on Medium]]></title>
        <description><![CDATA[Stories by Swaraj Gosavi on Medium]]></description>
        <link>https://medium.com/@swarajgosavi20?source=rss-872266967ba4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*M9p-LaCGYmEnVtSYyjysUw.jpeg</url>
            <title>Stories by Swaraj Gosavi on Medium</title>
            <link>https://medium.com/@swarajgosavi20?source=rss-872266967ba4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:56:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@swarajgosavi20/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Creating a Basic Virtual Network Using Azure]]></title>
            <link>https://medium.com/@swarajgosavi20/creating-a-basic-virtual-network-using-azure-ef0f30f66cda?source=rss-872266967ba4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef0f30f66cda</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Swaraj Gosavi]]></dc:creator>
            <pubDate>Sun, 28 Jan 2024 06:51:18 GMT</pubDate>
            <atom:updated>2024-01-28T06:51:18.847Z</atom:updated>
            <content:encoded><![CDATA[<h4>Case Study: Microsoft Azure</h4><h4>Microsoft Azure is a cloud computing platform and infrastructure, created by Microsoft, for building, deploying and managing applications and services through a global network of Microsoft-managed data centers</h4><h3>Introduction</h3><p><strong>Microsoft Azure</strong> or simply Azure, is a web service offered by Microsoft. Azure offers services like <em>Software as a Service </em><strong><em>(SaaS)</em></strong>, <em>Platform as a Service </em><strong><em>(PaaS)</em></strong> and <em>Infrastructure as a Service </em><strong><em>(IaaS)</em></strong>. It supports many programming languages and tools, including Microsoft tools and other 3rd party software tools.</p><p>Azure is one of the leading cloud platforms and it provides various services for AI (Artificial Intelligence), IoT (Internet of Things), Blockchain, etc. Provides Virtual Machines as IaaS with multiple OS supported including Microsoft Windows and other Linux-based Operating Systems. Another service is Azure Kubernetes Service (AKS) allows users to deploy Kubernetes clusters on the cloud and various web services.</p><h4>Azure as SaaS (Software as a Service)</h4><p>Provides a comprehensive suite of software applications over the internet. Users can access, manage, and interact with these applications without worrying about underlying infrastructure, middleware, development tools, or data storage. Azure takes care of all these aspects, allowing users to focus solely on using the software to meet their needs. This eliminates the need for extensive hardware investments and reduces the burden of installation, maintenance, and upgrades. It’s a convenient, scalable, and flexible solution for businesses of all sizes.</p><h4>Azure as PaaS (Platform as a Service)</h4><p>As implied by its name, this platform offers clients a space to create and launch software. This allows clients to concentrate on developing their applications without the distraction of hardware and infrastructure concerns. Furthermore, it handles the majority of issues related to operating systems, servers, and networking.</p><h4>Azure as IaaS (Infrastructure as a Service)</h4><p>This is a managed computing service that grants application developers full control over the operating systems and the application platform stack. It empowers users to independently access, manage, and monitor data centers.</p><h4>Advantages of Microsoft Azure</h4><ul><li>Azure offers high availability.</li><li>Azure offers a strong Security profile.</li><li>It is cost-effective for the IT budget.</li><li>Supports many languages and frameworks.</li><li>Allows businesses to create a hybrid network.</li></ul><figure><img alt="Windows 11 Desktop Image" src="https://cdn-images-1.medium.com/max/1024/0*PPa-5f8G4Ob9dGqw" /><figcaption>Photo by <a href="https://unsplash.com/@sunriseking?utm_source=medium&amp;utm_medium=referral">Sunrise King</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let’s Quickly go through the steps to create a Virtual Network using Microsoft Azure.</p><blockquote>I will be following the Azure official documentation for creating a virtual network so for more information you can refer to <a href="https://learn.microsoft.com/en-us/azure/virtual-network/quick-create-portal">https://learn.microsoft.com/en-us/azure/virtual-network/quick-create-portal</a></blockquote><h3>Creating a Virtual Network using Azure Portal</h3><h4>Prerequisites</h4><p>You need an Azure account with an active subscription to access the Portal and begin this activity. You can <a href="https://azure.microsoft.com/free/?WT.mc_id=A261C142F">create a free account here</a>.</p><blockquote>I will be using my student account for this activity which provides 100$ credits and an active Azure Students Subscription for Learning purposes. You can also <a href="https://azure.microsoft.com/en-in/free/students">claim your student’s subscription here</a>.</blockquote><h4>Sign in to the Azure Portal</h4><p>You can sign up for the Azure portal by visiting this link <a href="https://portal.azure.com/">https://portal.azure.com/</a></p><h3>Create a Virtual Network</h3><p>Let us start by creating a Virtual Network</p><ol><li>Search for <strong>Virtual Networks</strong> in the search tab.</li><li>Select the <strong>+ </strong>icon to create a new virtual network.</li><li>Enter the details of the network.</li></ol><h4>Creating Virtual Network</h4><ol><li>Choose your active subscription. <em>(I am using Azure for Students)</em></li><li>Create a new test resource group with the name<strong> test-rg</strong></li><li>Name the Virtual Network as <strong>vnet-1</strong></li><li>Select the region suitable to you</li><li>Click <strong>Next</strong></li></ol><figure><img alt="Image showing the steps to creating virtual network" src="https://cdn-images-1.medium.com/max/888/1*L_ASWHpHBK5QWeKkgFK8BA.png" /><figcaption>Azure Portal: Create a Virtual Network</figcaption></figure><h4>Security Options</h4><p>We will be using Azure Bastion for communication with the VMs. You can see more information about <a href="https://learn.microsoft.com/en-us/azure/bastion/bastion-overview">Azure Bastion here</a>.</p><ol><li>Enter the Name for the Azure Bastion host as <strong>Bastion</strong></li><li>Create a public IP address as public-ip</li><li>Click <strong>Next</strong></li></ol><blockquote>You can ignore the error shown in the image</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*6ujJsH6waDUJuvwX_LMleA.png" /><figcaption>Azure Portal: Virtual Networks Security Tab</figcaption></figure><h4>IP address settings</h4><ol><li>Select the <strong>default</strong> option the address space provided.</li><li>Let the Subnet purpose be Default</li><li>Name subnet as<strong> subnet-1</strong></li><li>Leave everything else as default and click <strong>save</strong></li><li>Click <strong>Review + create</strong></li></ol><figure><img alt="Azure Portal: Virtual Network IP address tab" src="https://cdn-images-1.medium.com/max/1024/1*zKhH0yhm3Z2E__UCE38sog.png" /><figcaption>Azure Portal: Virtual Network IP address tab</figcaption></figure><h4>Review + create</h4><p>Once the validation completed click <strong>Create</strong> to create the virtual network. It will start the deployment process of the virtual network.</p><p>Well done 🎉 !!! We have <strong>Half Way</strong> of the Activity. Now lets procced to the interesting part of creating a <em>Virtual Machine</em>.</p><h3>Create a Virtual Machine</h3><ol><li>In the search tab search for <strong>Virtual Machine</strong></li><li>Click on<strong> +</strong> icon to create a new Virtual Machine</li><li>Enter the details of the VM</li></ol><h4>Creating Virtual Machines</h4><ol><li><strong>Project details</strong></li></ol><ul><li>Choose your active subscription. <em>(I am using Azure for Students)</em></li><li>Select the resource group with name<strong> test-rg</strong></li></ul><p><strong>2. Instance details</strong></p><ul><li>Name the VM instance as <strong>vm-1</strong></li><li>Select a suitable region</li><li>Select Availability option as <strong>No infrastructure redundancy required</strong></li><li>Security type as <strong>Standard</strong></li><li>Image as <strong>Ubuntu Server 22.04 LTS — x64 Gen2</strong></li></ul><figure><img alt="Azure Portal: Create VM-1 part 1" src="https://cdn-images-1.medium.com/max/878/1*EojUPnW9Nai35nclwXH0HQ.png" /><figcaption>Azure Portal: Create VM-1 part 1</figcaption></figure><ul><li>Let VM architecture be <strong>x64</strong></li><li>Choose a suitable size</li></ul><p><strong>3. Administrator account</strong></p><ul><li>Choose <strong>Password</strong> as Authentication type</li><li>Set username as <strong>azureuser</strong></li><li>Set a strong password and confirm it</li></ul><p><strong>4. Select Inbound ports as None.</strong></p><figure><img alt="Azure Portal: Create VM-1 part 2" src="https://cdn-images-1.medium.com/max/868/1*jdH_h7w13gb8EWMNQldivQ.png" /><figcaption>Azure Portal: Create VM-1 part 2</figcaption></figure><p>Proceed to the Networking tab</p><h4>Networking Settings</h4><ul><li>Use the Virtual Network we created in the 1st part of the activity. (<strong>vnet-1</strong>)</li><li>Similarly Subnet as <strong>subnet-1</strong></li><li>Set Public IP as <strong>None</strong></li><li>Select NIC network security group as <strong>Advanced</strong></li><li>Configure the security group by creating a new group as <strong>nsg-1</strong></li></ul><p>Click <strong>Review + Create</strong> to review the Configurations of the VM</p><figure><img alt="Azure Portal: Create a Virtual Machine Networking tab" src="https://cdn-images-1.medium.com/max/917/1*M6hxojTYn5TE00H3P2dFwQ.png" /><figcaption>Azure Portal: Create a Virtual Machine Networking tab</figcaption></figure><h4>Review + create</h4><p>Once the validation completed click <strong>Create</strong> to create the virtual network. It will start the deployment process of the virtual Machine <strong>(vm-1)</strong>.</p><h4>Creating Another Virtual Machine</h4><p>Follow the Same steps to create a second Virtual Machine</p><ul><li>Select the same resource group as <strong>test-rg</strong></li><li>Name this VM instance as <strong>vm-2</strong></li><li>Follow the same steps as we did for creating the <strong>vm-1</strong></li></ul><figure><img alt="Azure Portal: Creating virtual Machin vm-2" src="https://cdn-images-1.medium.com/max/886/1*Ngo7r9nm2CYPPgWPzs9jyQ.png" /><figcaption>Azure Portal: Creating virtual Machin vm-2</figcaption></figure><h4>Review + create</h4><p>Once all the steps are performed create <strong>vm-2</strong></p><p>Almost Done !!! After Successfully deploying our Virtual network and 2 VMs let us procced to the last section of the activity.</p><h3>Connecting to Virtual Machine</h3><p>Search Virtual Machine and go to the virtual machine page</p><ul><li>Now Select <strong>vm-1</strong> to open the details of the VM</li><li>Now select <strong>Connect Bastion</strong> from the Connect tab</li><li>Enter the username and password we set at the time of creating the VM</li><li>Click <strong>Connect</strong></li></ul><figure><img alt="Azure Portal: VM Bastion Connection" src="https://cdn-images-1.medium.com/max/1024/1*KEJCHSIsy-gmjzJzsOdelQ.png" /><figcaption>Azure Portal: VM Bastion Connection for vm-1</figcaption></figure><p>Now a bash terminal will be opened in the tab of the browser. Here you can interact with the VM.</p><p>Enter the command and try to connect with the second VM in the same virtual network</p><pre>ping -c 4 vm-2</pre><p>You will see the following message on the screen</p><figure><img alt="Bash: vm-1 ping to vm-2" src="https://cdn-images-1.medium.com/max/1024/1*KlpejAlqgL2efz4RkLZeOg.png" /><figcaption>Azure Bash: vm-1 ping to vm-2</figcaption></figure><p>Now follow the same for steps for vm-2 and try to connect with vm-1</p><pre>ping -c 4 vm-1</pre><figure><img alt="Azure Bash: vm-2 ping to vm-1" src="https://cdn-images-1.medium.com/max/1024/1*bJXLdtyMPRRCQkR5s5BUEA.png" /><figcaption>Azure Bash: vm-2 ping to vm-1</figcaption></figure><p><strong>Congratulations</strong> 🥳🥳!!! Now we have set up the Virtual Network with two VMs in it and also tested the communication between the VMs.</p><h3>Last But Not The Least</h3><blockquote><strong>Remember:</strong> As a Student, learner or developer never forget to clean up the resources once the task is completed.</blockquote><h4>Clean up resources</h4><p>Finish the activity by clearing up the resources</p><ul><li>Navigate to the Resource groups and select <strong>test-rg</strong></li><li>Select <strong>Delete resource group</strong></li><li>Type the resource group name to confirm the deletion and Click <strong>Delete</strong></li></ul><figure><img alt="Azure Portal: Resource Groups clean up resources" src="https://cdn-images-1.medium.com/max/1024/1*ypo5o-Z7cE8hs3rvbeH-2g.png" /><figcaption>Azure Portal: Resource Groups clean up resources</figcaption></figure><h3>Conclusion</h3><ul><li>Successfully completed the activity of creating a Virtual Network consisting of tow Virtual Machines and also simulated the communication between the VMs.</li><li>Studied about Microsoft Azure Cloud Platform</li></ul><h3>Resources</h3><ul><li><a href="https://portal.azure.com/">Azure Portal</a></li><li><a href="https://learn.microsoft.com/en-us/azure/?product=popular">Learn Microsoft Azure Documentation</a></li><li><a href="https://learn.microsoft.com/en-us/azure/virtual-network/quick-create-por">Quickstart: Use the Azure portal to create a virtual network</a></li></ul><h3>Thank You !!!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef0f30f66cda" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kroger & Industry 4.0]]></title>
            <link>https://medium.com/@swarajgosavi20/kroger-industry-4-0-599ac4c67bf9?source=rss-872266967ba4------2</link>
            <guid isPermaLink="false">https://medium.com/p/599ac4c67bf9</guid>
            <category><![CDATA[retail]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[industry]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Swaraj Gosavi]]></dc:creator>
            <pubDate>Tue, 19 Dec 2023 06:22:10 GMT</pubDate>
            <atom:updated>2023-12-19T06:22:10.650Z</atom:updated>
            <content:encoded><![CDATA[<h4>Case Study: Kroger Artificial Intelligence And Robotics In Grocery Store</h4><h4>How This U.S. Retail Giant Is Using AI And Robots To Prepare For The 4th Industrial Revolution</h4><h3>The Kroger Company</h3><p><strong>Kroger </strong>is a retail company that operates supermarkets throughout the United States. Founded by <em>Bernard Kroger</em> in 1883 in Ohio. It is also listed in the Fortune 500 rankings.</p><h4>Industry 4.0</h4><p>The 4th Industrial Revolution (4IR) or Industry 4.0 is this phase of industrial change that joins technologies like artificial intelligence and advanced robotics. This reduces the gap between the artificial and biological world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UgNwiOr-sszMRBAx" /><figcaption>Photo by <a href="https://unsplash.com/@askkell?utm_source=medium&amp;utm_medium=referral">Andy Kelly</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The major factor that differentiates this grocery store from others is the use of <strong>Artificial Intelligence</strong> and <strong>Robots</strong>. Kroger is prepared for the <em>4th Industrial Revolution</em> by utilizing AI and robotics in its futuristic “<strong>HIVE”. </strong>Kroger is opening automated warehouses across the United States with U.K.-based <strong>Ocado </strong>to build a larger and more profitable online grocery business. They have opened automated supermarket facilities in Ohio and Florida.</p><h3>The Hive</h3><p>The Hive is a large inventory grid of items ranging from milk, bananas, meats and other grocery products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VTtN9KP_QUIuyvpq" /><figcaption>Photo by <a href="https://unsplash.com/@peejayvisual?utm_source=medium&amp;utm_medium=referral">Pranav Kumar Jain</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Automated Order Fulfillment:</h4><p>Kroger’s “The Hive” is an advanced system where grid compartments are pre-stocked with a variety of grocery items. Upon receiving a customer’s order, Ocado robots glide across the grid’s surface, swiftly gathering the requested items. These robots, comparable in size to a standard dishwasher, can assemble a family’s entire order in just 5 to 10 minutes. After collection, the items are bagged and sent to the packing area. Notably, frozen products are stored separately from the grid in a dedicated freezer section. Finally, the orders are loaded onto delivery trucks, which have distinct compartments for frozen and non-frozen goods, ensuring they arrive at the customer’s doorstep in optimal condition.</p><blockquote>I found an amazing video on YouTube about the Hive <a href="https://youtu.be/fmVUIfAe6Ho?si=mic-oJS6NdKjUJxP">https://youtu.be/fmVUIfAe6Ho?si=mic-oJS6NdKjUJxP</a></blockquote><h4>Drone Delivery Service:</h4><p>Kroger offers a cutting-edge drone delivery option for customers within a 1-mile radius of their stores. Orders placed via the website or mobile app are swiftly gathered and prepared by store personnel. These parcels, capped at a 5 lbs (2.26 kg) limit, are then securely fastened to a drone. A skilled operator navigates the drone to the customer’s property, where it descends to release the package, ensuring a convenient and timely delivery right to the customer’s lawn. This innovative service exemplifies Kroger’s commitment to leveraging technology for enhanced shopping convenience.</p><h4>Opinions &amp; Conclusion</h4><ul><li>According to my opinion, industry 4.0 provides various opportunities by utilizing the power of artificial intelligence, machine learning and robotics.</li><li>Kroger has cleverly adapted to the technology evolution and implemented futuristic methods to enhance customer experience and profits.</li><li>The use of AI results in increasing overall efficiency and robots save a lot of important time.</li></ul><h3>References</h3><ul><li><a href="https://en.wikipedia.org/wiki/Kroger">Kroger — Wikipedia</a></li><li><a href="https://www.cnbc.com/2021/11/04/heres-how-kroger-is-using-robots-to-get-groceries-to-customers-doors.html">Here’s how Kroger is using robots to get groceries to customers’ doors (cnbc.com)</a></li><li><a href="https://www.forbes.com/sites/bernardmarr/2018/07/20/how-us-retail-giant-kroger-is-using-ai-and-robots-to-prepare-for-the-4th-industrial-revolution/?sh=79afd6d717d6">How U.S. Retail Giant Kroger Is Using AI And Robots To Prepare For The 4th Industrial Revolution (forbes.com)</a></li></ul><h4>YouTube Videos</h4><ul><li>Robotic shopping: Inside one of Kroger’s fulfillment centers in Florida <em>[Fox 360 Orlando]</em>: <a href="https://youtu.be/w2HnKpTo2So?si=xQrKGwswobe1CfO-">https://youtu.be/w2HnKpTo2So?si=xQrKGwswobe1CfO-</a></li><li>Kroger’s High-Tech ‘Hive’: An Exclusive Look At Future Of Grocery Shopping <em>[TODAY]</em>: <a href="https://youtu.be/fmVUIfAe6Ho?si=FT4GaO4bjT4xNqON">https://youtu.be/fmVUIfAe6Ho?si=FT4GaO4bjT4xNqON</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=599ac4c67bf9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Computing Model of IBM]]></title>
            <link>https://medium.com/@swarajgosavi20/cloud-computing-model-of-ibm-7d785ef0a980?source=rss-872266967ba4------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d785ef0a980</guid>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Swaraj Gosavi]]></dc:creator>
            <pubDate>Thu, 14 Dec 2023 07:00:04 GMT</pubDate>
            <atom:updated>2023-12-14T07:00:04.896Z</atom:updated>
            <content:encoded><![CDATA[<h4>Case Study: IBM Cloud</h4><h4>The cloud computing model of IBM, or <strong>IBM Cloud</strong>, is a suite of cloud services offered by IBM for businesses. It includes three main service models: <strong>IaaS</strong>, <strong>PaaS </strong>and <strong>Saas</strong>.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25y2gQ3W9GuOQpx5BLZAZg.png" /><figcaption>Image from Canva — @umnat-seebuaphans-images</figcaption></figure><h3>Cloud Computing</h3><h4>Firstly, what is cloud computing?</h4><p>☁️ Cloud Computing is using another machine located at some other location through the internet. It refers to a variety of services available over the Internet.</p><blockquote>Cloud Computing = Software as a Service + Platform as a Service + Infrastructure as a Service + Data as a Service</blockquote><h4>Characteristics of cloud computing</h4><ul><li>On-demand self-service</li><li>Ubiquitous network access</li><li>Location-independent resource pooling</li><li>Rapid elasticity</li><li>Pay per use</li></ul><h4>Cloud Service Models</h4><p>It describes the type of service the service provider is offering.</p><ul><li>SaaS (<em>Software as a Service)</em></li><li>PaaS (<em>Platform as a Service</em><strong><em>)</em></strong></li><li>IaaS (<em>Infrastructure as a Service</em><strong>)</strong></li></ul><h3>IBM Cloud</h3><p>IBM Cloud is a set of cloud computing services offered by IBM (<em>International Business Machines</em>) corporation.</p><h4>IBM Cloud includes three main service models:</h4><ol><li><strong>Infrastructure as a Service (IaaS)</strong>: This provides virtualized computing resources over the internet. It’s like having a virtual data center that’s available on demand without directly managing the underlying physical infrastructure.</li><li><strong>Platform as a Service (PaaS): </strong>This is a complete development and deployment environment in the cloud. It enables developers to create, test, and manage applications without having to worry about the underlying infrastructure.</li><li><strong>Software as a Service (SaaS):</strong> In this model, IBM hosts and manages the software application and underlying infrastructure, and handles any maintenance, like software upgrades and security patching. Users connect to the application over the Internet, usually with a web browser.</li></ol><h4>Types of Cloud Computing</h4><ol><li><strong>Public Cloud: </strong>The service provider makes all the services available to the user over the public internet.</li><li><strong>Private Cloud: </strong>All the resources and services are accessible by only one organization or customer.</li><li><strong>Hybrid Cloud: </strong>It is the combination of private and public cloud. Where an organization can connect its private cloud services and the public cloud.</li></ol><h3>References</h3><ul><li><a href="https://en.wikipedia.org/wiki/IBM_Cloud">IBM Cloud — Wikipedia</a></li><li><a href="https://www.ibm.com/cloud">IBM Cloud</a></li><li><a href="https://www.ibm.com/topics/iaas-paas-saas">IaaS vs. PaaS vs. SaaS | IBM</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d785ef0a980" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to deploy React app with client-side routing on GitHub Pages?]]></title>
            <link>https://medium.com/@swarajgosavi20/how-to-deploy-react-app-with-client-side-routing-on-github-pages-8a3fefe5b0d5?source=rss-872266967ba4------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a3fefe5b0d5</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Swaraj Gosavi]]></dc:creator>
            <pubDate>Wed, 19 Jul 2023 07:31:39 GMT</pubDate>
            <atom:updated>2023-07-19T14:57:57.314Z</atom:updated>
            <content:encoded><![CDATA[<h4>Enhance your react deployment skills with routing!</h4><h4>This article explains how to add routing to React app in GitHub Pages.</h4><figure><img alt="React Routing on Github Pages" src="https://cdn-images-1.medium.com/max/1024/1*uIVYud2-aAI8KZxC4Jlu8Q.png" /><figcaption>React + Routing x GitHub</figcaption></figure><h3>Introduction:</h3><p>In this article we are going to see how to deploy React applications with client-side routing on GitHub pages. Routing is an important part of website which enhances the user experience.</p><p>React Routers are used to make routes in react app. But Github pages doesn’t support normal BrowserRouting. It give an 404 error for it.</p><p>We can achieve routing on GitHub pages in 2 ways.</p><ol><li>Using HashRouter which allows to switch between pages using hash history.</li><li>Using a 404.html file, this approach in explained in detailed <a href="https://github.com/rafrex/spa-github-pages"><strong>in this guide</strong></a>.</li></ol><p>We will focus on the first approach which is simple and can be easily done. So let’s begin !</p><h3>Prerequisites:</h3><p>This is continuation of my previous article about <strong>How to Deploy React on GitHub Pages</strong>.</p><p><a href="https://medium.com/@swarajgosavi20/how-to-deploy-react-on-github-pages-33e427f0bd36">How to Deploy React on GitHub Pages?</a></p><blockquote>Before reading further first see the above article to understand the background. It includes the setup of GitHub pages and integration with react application.</blockquote><h3>Steps:</h3><h4>Step 1: Install React Router</h4><p>To install react router use the following command.</p><pre>npm install react-router-dom</pre><blockquote>GitHub pages doesn’t support BrowserRouter, hence we use HashRouter. You can get more information about this at <a href="https://create-react-app.dev/docs/deployment/#notes-on-client-side-routing"><strong>Official Docs</strong></a>.</blockquote><p>Now we will import HashRouter in <strong>index.js</strong> file.</p><pre>import React from &#39;react&#39;;<br>import ReactDOM from &#39;react-dom/client&#39;;<br>import &#39;./index.css&#39;;<br>import App from &#39;./App&#39;;<br>import reportWebVitals from &#39;./reportWebVitals&#39;;<br>import { HashRouter } from &quot;react-router-dom&quot;;<br><br>const root = ReactDOM.createRoot(document.getElementById(&#39;root&#39;));<br>root.render(<br>  &lt;HashRouter&gt;<br>    &lt;App /&gt;<br>  &lt;/HashRouter&gt;<br>);<br><br>// If you want to start measuring performance in your app, pass a function<br>// to log results (for example: reportWebVitals(console.log))<br>// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals<br>reportWebVitals();</pre><h4>Step 2: Creating Navbar Component</h4><p>Create <strong>Navbar.js</strong> in <strong>src</strong> folder. This is used to navigate between the pages.</p><pre>import { Link } from &quot;react-router-dom&quot;;<br>import &#39;./App.css&#39;;<br><br>export default function Navbar() {<br>    return (<br>        &lt;div className=&quot;App&quot;&gt;<br>            &lt;center&gt;<br>                &lt;ul&gt;<br>                    &lt;li&gt;&lt;Link to=&quot;/&quot;&gt;Home&lt;/Link&gt;&lt;/li&gt;<br>                    &lt;li&gt;&lt;Link to=&quot;/about&quot;&gt;About&lt;/Link&gt;&lt;/li&gt;<br>                    &lt;li&gt;&lt;Link to=&quot;/contact&quot;&gt;Contact&lt;/Link&gt;&lt;/li&gt;<br>                &lt;/ul&gt;<br>            &lt;/center&gt;<br>        &lt;/div&gt;<br>    )<br>}</pre><h4>Step 3: Creating templates</h4><p>To add routing, we need multiple pages. Create a templates directory and add multiple components in it. Here we will consider <strong>Home</strong>, <strong>About</strong> and <strong>Contact</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/215/1*eGVMhtjj1djLomO-ShxisA.png" /><figcaption>Templates</figcaption></figure><blockquote>Note: These are just sample components you can use your own components.</blockquote><h4>Home.js</h4><pre>import logo from &#39;../logo.svg&#39;;<br>import &#39;../App.css&#39;;<br><br>export default function Home() {<br>    return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;header className=&quot;App-header&quot;&gt;<br>        &lt;img src={logo} className=&quot;App-logo&quot; alt=&quot;logo&quot; /&gt;<br>        &lt;p&gt;<br>          Edit &lt;code&gt;src/App.js&lt;/code&gt; and save to reload.<br>        &lt;/p&gt;<br>        &lt;a<br>          className=&quot;App-link&quot;<br>          href=&quot;https://reactjs.org&quot;<br>          target=&quot;_blank&quot;<br>          rel=&quot;noopener noreferrer&quot;<br>        &gt;<br>          Learn React With Swaraj<br>        &lt;/a&gt;<br>      &lt;/header&gt;<br>    &lt;/div&gt;<br>    )<br>}</pre><h4>About.js</h4><pre>export default function About() {<br>    return (<br>    &lt;div&gt;<br>      &lt;h1&gt;<br>        &lt;center&gt;<br>        &lt;p&gt;<br>          This is About.<br>        &lt;/p&gt;<br>        &lt;a<br>          href=&quot;https://github.com/swarajgosavi/swarajgosavi&quot;<br>          target=&quot;_blank&quot;<br>          rel=&quot;noopener noreferrer&quot;<br>        &gt;<br>          About Me.<br>        &lt;/a&gt;<br>      &lt;/center&gt;<br>      &lt;/h1&gt;<br>    &lt;/div&gt;<br>    )<br>}</pre><h4>Contact.js</h4><pre>export default function Contact() {<br>    return (<br>    &lt;div&gt;<br>      &lt;h1&gt;<br>      &lt;center&gt;<br>        &lt;p&gt;<br>          Contact Me.<br>        &lt;/p&gt;<br>        &lt;a<br>          href=&quot;https://github.com/swarajgosavi&quot;<br>          target=&quot;_blank&quot;<br>          rel=&quot;noopener noreferrer&quot;<br>        &gt;<br>          Swaraj Gosavi (GitHub) [@swarajgosavi]<br>        &lt;/a&gt;<br>      &lt;/center&gt;<br>      &lt;/h1&gt;<br>    &lt;/div&gt;<br>    )<br>}</pre><h4>Step 4: Modify App.js</h4><p>Modify the code in App.js by adding Navbar and Routes</p><pre>import { Routes, Route } from &quot;react-router-dom&quot;;<br>import Home from &quot;./templates/Home&quot;;<br>import About from &quot;./templates/About&quot;;<br>import Contact from &quot;./templates/Contact&quot;;<br>import Navbar from &quot;./Navbar&quot;;<br><br>function App() {<br>  return (<br>    &lt;&gt;<br>      &lt;Navbar /&gt;<br>      &lt;Routes&gt;<br>        &lt;Route path=&quot;/&quot; element={&lt;Home /&gt;} /&gt;<br>        &lt;Route path=&quot;/about&quot; element={&lt;About /&gt;} /&gt;<br>        &lt;Route path=&quot;/contact&quot; element={&lt;Contact /&gt;} /&gt;<br>      &lt;/Routes&gt;<br>    &lt;/&gt;<br>  );<br>}<br><br>export default App;</pre><h4><strong>Step 5: Deployment</strong></h4><p>Now it&#39;s time to deploy our React app with <strong>client-side routing</strong> to GitHub pages. Run the following command in terminal to push the current changes to GitHub.</p><pre>git add .<br>git commit -m &quot;Routing added&quot;<br>git push</pre><p>Now use the deploy command to deploy our React app.</p><pre>npm run deploy</pre><p>Now let’s visit our site at (change <em>myusername</em> with your <em>github username</em>)</p><pre>https://myusername.github.io/my-app</pre><p>Here in my case, it will be.</p><pre>https://swarajgosavi.github.io/my-app</pre><p>You can visit it right now by going to the site. Just click on the below link.</p><p><a href="https://swarajgosavi.github.io/my-app-test/"><strong>React App (swarajgosavi.github.io)</strong></a></p><h3>Congratulations you successfully deployed a React app with client-side routing on GitHub Pages!!!</h3><h3>Conclusion:</h3><ol><li>Creating route in React app.</li><li>Deployed the React app with routing to GitHub.</li></ol><h3>References:</h3><ol><li><a href="https://create-react-app.dev/docs/deployment/#notes-on-client-side-routing">Official React Documentation</a></li><li><a href="https://www.freecodecamp.org/news/deploy-a-react-app-to-github-pages/">How to Deploy a Routed React App to GitHub Pages (freecodecamp.org)</a></li><li><a href="https://blog.logrocket.com/deploying-react-apps-github-pages/">Deploying React apps to GitHub Pages — LogRocket Blog</a></li></ol><h3>Thank You!</h3><figure><img alt="React will return" src="https://cdn-images-1.medium.com/max/1024/1*lqXybRwj4QdLy3ub5oSMpQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a3fefe5b0d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Deploy React on GitHub Pages?]]></title>
            <link>https://medium.com/@swarajgosavi20/how-to-deploy-react-on-github-pages-33e427f0bd36?source=rss-872266967ba4------2</link>
            <guid isPermaLink="false">https://medium.com/p/33e427f0bd36</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Swaraj Gosavi]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 07:32:17 GMT</pubDate>
            <atom:updated>2023-07-19T14:56:42.514Z</atom:updated>
            <content:encoded><![CDATA[<h4>Showcase your react skills to everyone!</h4><h4>This article will help you to deploy your React apps on GitHub pages.</h4><figure><img alt="Deploy react on github pages" src="https://cdn-images-1.medium.com/max/1024/1*NPPUQf__Nfv03OqJ81mWCg.png" /><figcaption>React x GitHub</figcaption></figure><h3>Introduction:</h3><p>In this article we are going to see how to deploy React applications on GitHub pages. It will guide you through the process from creating a react project to deploying it on GitHub.</p><p>GitHub pages provide hosting for static websites, and it will be very easy to host single page react application. As you all know React is a JavaScript library used to make frontend UI. We can showcase our react skills to everyone on internet using GitHub pages.</p><blockquote><strong>Note:</strong> This Blog assumes that you have basic knowledge of React and Git.</blockquote><p>I tried to keep it simple so anyone can try out the process and host your own website. Hope you will find this artical useful.</p><h3><strong>Prerequisites</strong>:</h3><p>Need to have Node and npm installed on your device. You can check this by typing npm -v and node -v.</p><p>If not use the following links to install requirements</p><ol><li><a href="http://nodejs.org/"><strong>Node.js</strong></a></li><li><a href="http://git-scm.com/"><strong>Git</strong></a></li></ol><h3>Follow the steps:</h3><h4>Step 1: Create a react app</h4><pre>npx create-react-app &lt;app_name&gt;</pre><p>For this article we will call the &lt;<em>app_name&gt;</em> as <strong>my-app. </strong>Note this name as we will need it while creating GitHub repository.</p><pre>npx create-react-app my-app</pre><p>This will create a react app. This also initialize a git repository. If not, then you can do it with git init</p><figure><img alt="Image showing file structure after successful creation of react app." src="https://cdn-images-1.medium.com/max/233/1*HuiXhzdOqrkhj9oSnNsMOg.png" /><figcaption>File structure for react project.</figcaption></figure><p>Open my-app directory which we created just now and use terminal in this directory for further process. You will see the above file structure after successfully creating the react app. Now you can test the app by writing following command in terminal.</p><pre>npm start</pre><p>This will start a node local server at <a href="http://localhost:3000/"><strong>http://localhost:3000</strong></a><strong>. </strong>Open this link in the browser and you will be able to see the react screen.</p><figure><img alt="React Page" src="https://cdn-images-1.medium.com/max/863/0*IBJrgG68qL9Iz4y_.gif" /><figcaption>React Screen on<a href="http://localhost:3000/"><strong> http://localhost:3000</strong></a></figcaption></figure><p><strong>Congratulations </strong>we just made a basic working react project.</p><p>Now it&#39;s time to deploy on GitHub Pages.</p><h4>Step 2: Install gh-pages</h4><p>Install gh-pages using npm.</p><pre>npm install --save gh-pages</pre><p>This will install required packages to deploy our react app.</p><h4><strong>Step 3: Edit package.json</strong></h4><p><strong>Add </strong><strong>homepage to package.json</strong></p><blockquote><strong>This is an important step. Please don’t skip this!!!</strong></blockquote><p>Firstly, add homepage field in package.json</p><pre>  &quot;homepage&quot;: &quot;https://myusername.github.io/my-app&quot;,</pre><p>This determines the root URL. In my case it will be</p><pre>&quot;homepage&quot;: &quot;https://swarajgosavi.github.io/my-app&quot;,</pre><p>Use your GitHub username in place of <em>myusername.</em></p><p><strong>Add </strong><strong>deploy in </strong><strong>scripts to package.json</strong></p><p>Now we will modify the scripts section inside the package.json by adding predeploy and deploy fields.</p><pre>&quot;scripts&quot;: {<br>  &quot;predeploy&quot;: &quot;npm run build&quot;,<br>  &quot;deploy&quot;: &quot;gh-pages -d build&quot;,<br>  ...<br>}</pre><p>This will run the predeploy script everytime before the deploy</p><h4>Step 4: Create a new repository on GitHub</h4><p>Now we will head to GitHub and create a new repository with the same name as my-app</p><figure><img alt="GitHub create new repository image." src="https://cdn-images-1.medium.com/max/999/1*UIJqaV4HUEqqEO6P7wpokg.png" /><figcaption>Create a repo with same name as my-app and keep it public.</figcaption></figure><p>Set the repository as public this will allow us to use GitHub pages.</p><p>Let&#39;s link our local folder with GitHub by running the following commands in the terminal. Replace <em>myusername </em>with your GitHub username<em>.</em></p><pre>git commit -m &quot;initial commit&quot;<br>git remote add origin https://github.com/&lt;myusername&gt;/my-app.git<br>git branch -M main<br>git push -u origin main</pre><p>Now we are set to deploy our first react application.</p><h4>Step 5: Deploy site</h4><p>Finally run the npm run deploy code in the terminal to deploy the react application.</p><pre>npm run deploy</pre><h4>Step 6: Steup GitHub pages</h4><p>Make sure you select <strong>gh-pages</strong> branch in <strong>settings &gt; pages</strong></p><figure><img alt="Branch showing selection of branch for github pages." src="https://cdn-images-1.medium.com/max/853/1*DXcr6JKe5CTLUU6SXmIc-Q.png" /><figcaption>Set gh-pages branch as root</figcaption></figure><figure><img alt="Success Message" src="https://cdn-images-1.medium.com/max/988/1*DQZFDINFOI2hJ0b8G04GKw.png" /><figcaption>Successful deploy message</figcaption></figure><p>Now let&#39;s visit our site at (change myusername with your github username)</p><pre>https://myusername.github.io/my-app</pre><p>Here in my case, it will be</p><pre>https://swarajgosavi.github.io/my-app</pre><p>You can visit it right now by going to the site. Just click on the below link.</p><p><a href="https://swarajgosavi.github.io/my-app/"><strong>React App (swarajgosavi.github.io)</strong></a></p><h3>Congratulations you successfully deployed a React app on GitHub Pages!!!</h3><h4>Conclusion:</h4><p>GitHub pages allows developers to host static web sites for free. In this article we learned how to deploy a React app on GitHub pages in a simple way.</p><h4>References:</h4><ol><li><a href="https://create-react-app.dev/docs/deployment/#github-pages">Official React Documentation</a></li><li><a href="https://www.freecodecamp.org/news/deploy-a-react-app-to-github-pages/">How to Deploy a Routed React App to GitHub Pages (freecodecamp.org)</a></li><li><a href="https://blog.logrocket.com/deploying-react-apps-github-pages/">Deploying React apps to GitHub Pages — LogRocket Blog</a></li></ol><h3>Thank You!</h3><h3>Up Next</h3><h4>How to deploy React app with client-side routing on GitHub Pages?</h4><p><a href="https://medium.com/@swarajgosavi20/how-to-deploy-react-app-with-client-side-routing-on-github-pages-8a3fefe5b0d5">How to deploy React app with client-side routing on GitHub Pages?</a></p><p>Stay tuned…</p><figure><img alt="React will return" src="https://cdn-images-1.medium.com/max/1024/1*lqXybRwj4QdLy3ub5oSMpQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33e427f0bd36" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>