<?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: Harshit Aditya</title>
    <description>The latest articles on DEV Community by Harshit Aditya (@harshitaditya1).</description>
    <link>https://dev.to/harshitaditya1</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%2F620483%2F2b3ed304-c2a5-4284-9873-7e5b3a9fd149.jpg</url>
      <title>DEV Community: Harshit Aditya</title>
      <link>https://dev.to/harshitaditya1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harshitaditya1"/>
    <language>en</language>
    <item>
      <title>Setting up React Native environment on Windows</title>
      <dc:creator>Harshit Aditya</dc:creator>
      <pubDate>Thu, 29 Jun 2023 06:03:29 +0000</pubDate>
      <link>https://dev.to/harshitaditya1/setting-up-react-native-environment-on-windows-n09</link>
      <guid>https://dev.to/harshitaditya1/setting-up-react-native-environment-on-windows-n09</guid>
      <description>&lt;p&gt;You wanted to get started with &lt;strong&gt;React Native&lt;/strong&gt; but stuck during the installation phase. Don't worry this blog will cover all the steps from installing necessary tools to running your first &lt;strong&gt;React Native&lt;/strong&gt; application so that you get started with your &lt;strong&gt;mobile development&lt;/strong&gt; journey ✨. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/tptFQ8QAJYYvu/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/tptFQ8QAJYYvu/giphy.gif" alt="DN1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is React Native?
&lt;/h2&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%2Frs0begrilstuqbepyusv.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%2Frs0begrilstuqbepyusv.gif" alt="Dog"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If you are reading this blog then you must be knowing what &lt;strong&gt;React Native&lt;/strong&gt; is, but if you don't know, then nothing to worry we have covered a simple definition of React Native in the next paragraph.&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://reactnative.dev/" rel="noopener noreferrer"&gt;&lt;strong&gt;React Native&lt;/strong&gt;&lt;/a&gt; is a UI library based on the React.js library for creating cross-platform mobile applications. It is a perfect choice for mobile developers already familiar with &lt;strong&gt;React.js&lt;/strong&gt;. Setting up &lt;strong&gt;React Native&lt;/strong&gt; environment becomes tricky if not done correctly.  &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%2F0wxofoa33f7am05spuxv.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%2F0wxofoa33f7am05spuxv.png" alt="RN1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are two ways through which we can create React Native applications: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Expo CLI&lt;/strong&gt;: Expo CLI provides &lt;em&gt;predefined components&lt;/em&gt; which makes the whole developing process convenient. We can create React Native applications with expo within minutes. It's very fast compared to React Native CLI. &lt;/li&gt;
&lt;/ul&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%2Fw294v2mixrqkioaezwvn.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%2Fw294v2mixrqkioaezwvn.png" alt="Expo"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;React Native CLI&lt;/strong&gt;: React Native CLI is the &lt;em&gt;pure way&lt;/em&gt; of creating React Native applications provided by the React Native team. It does not come with predefined components, we have to build all the components by our own. React Native CLI provides easier integration of source code with native source code. &lt;em&gt;However creating React Native applications with React Native CLI is not as simple as creating applications in Expo&lt;/em&gt;. 
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fuser-images.githubusercontent.com%2F5407471%2F97928088-2363d600-1d1b-11eb-93a8-3b61997224ae.gif" alt="RNCLI"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this blog, I have shared my experience on setting up React Native environment on my local machine using &lt;strong&gt;React Native CLI&lt;/strong&gt; where I have also shared some errors which got me stuck for a while.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;So lets get started !&lt;/em&gt; ⚔️ &lt;br&gt;
&lt;a href="https://i.giphy.com/media/tEcIyVc6ukQV2eb86t/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/tEcIyVc6ukQV2eb86t/giphy.gif" alt="DS1"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  1. Installing Node.js
&lt;/h2&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%2Frailsware.com%2Fblog%2Fwp-content%2Fuploads%2F2018%2F09%2F2400%25D1%25851260-rw-blog-node-js.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%2Frailsware.com%2Fblog%2Fwp-content%2Fuploads%2F2018%2F09%2F2400%25D1%25851260-rw-blog-node-js.png" alt="Node"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Node.js&lt;/strong&gt; is an open-source, cross-platform JavaScript runtime environment which is used for accessing server for JavaScript applications. &lt;/p&gt;

&lt;p&gt;Steps to install Node.js: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Visit &lt;a href="https://nodejs.org/en" rel="noopener noreferrer"&gt;Node.js&lt;/a&gt; website. There are two versions, &lt;em&gt;"Recommended for Most Users"&lt;/em&gt;  and &lt;em&gt;"Latest features"&lt;/em&gt;. You can download any of these versions but I will recommend you to go with the &lt;em&gt;"Recommended for Most Users"&lt;/em&gt; version as it's the most stable version. &lt;br&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%2Fo55gr224f6texmiq2hsq.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%2Fo55gr224f6texmiq2hsq.png" alt="Node.js website"&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;After downloading, open .msi file (downloaded node.js installer) and just click on &lt;em&gt;next&lt;/em&gt; button. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&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%2F0bu1e1q5j1jedzpgqj7o.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%2F0bu1e1q5j1jedzpgqj7o.png" alt="Node.js installer"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To check whether Node.js is correctly installed or not, open Command Prompt and type: &lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

node --version


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;after executing this command if it shows the version then Node.js is successfully installed on your computer.&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%2F0dxgbikp3ftv6q9zx209.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%2F0dxgbikp3ftv6q9zx209.png" alt="Node Version"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  2. Installing Java Development Kit (JDK)
&lt;/h2&gt;

&lt;p&gt;Steps for installing JDK: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open &lt;a href="https://www.oracle.com/in/java/technologies/downloads/#jdk20-windows" rel="noopener noreferrer"&gt;JDK download website&lt;/a&gt; and download the &lt;em&gt;MSI Installer&lt;/em&gt; version. &lt;/li&gt;
&lt;/ul&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%2Fn38cp86dm03dswbljcg1.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%2Fn38cp86dm03dswbljcg1.png" alt="JDK Website"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open the installer and click on the &lt;em&gt;Next&lt;/em&gt; button wherever it appeared. &lt;/li&gt;
&lt;/ul&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%2F4iail932iwpm6mt9akbh.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%2F4iail932iwpm6mt9akbh.png" alt="Msi d"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JDK is now successfully installed on your computer. &lt;em&gt;Now copy or save the path where JDK is installed, we will need this later in setting up the environment variables&lt;/em&gt;. For example path can look like: &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;C:\Program Files\Java\jdk-19&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Installing and setting up Android Studio
&lt;/h2&gt;

&lt;p&gt;Android Studio is a very important software for running React Native applications as it will provide emulator for testing and checking the progress of our application. &lt;/p&gt;

&lt;h3&gt;Installing Android Studio&lt;/h3&gt; 

&lt;p&gt;Steps for installing Android Studio: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Visit &lt;a href="https://developer.android.com/studio?utm_source=android-studio" rel="noopener noreferrer"&gt;Android Studio&lt;/a&gt; official website and click on the download button and also accept all terms and conditions, after this Android Studio will start downloading on your system. &lt;/li&gt;
&lt;/ul&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%2Ffh3vy8hvryghvydwfuf7.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%2Ffh3vy8hvryghvydwfuf7.png" alt="asweb"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Open Android Studio installer and just click on next button whenever it appears. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Android Studio is now successfully installed on your computer. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Setting up Android Studio&lt;/h3&gt; 

&lt;p&gt;Steps for setting up Android Studio: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open Android Studio, a welcome screen will appear. Click on &lt;em&gt;more actions&lt;/em&gt; and then click on &lt;em&gt;SDK Manager&lt;/em&gt;. &lt;/li&gt;
&lt;/ul&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%2Flejvwzwz678j9dydixd5.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%2Flejvwzwz678j9dydixd5.png" alt="ansdo01"&gt;&lt;/a&gt;   &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On &lt;em&gt;SDK Platforms&lt;/em&gt; and &lt;em&gt;SDK Tools&lt;/em&gt; panel click or tick on all the platforms and tools which are marked in blue color and then click on &lt;strong&gt;apply&lt;/strong&gt; button which is on the down side. &lt;em&gt;Clicking on apply button installs all the marked platforms and tools for Android Studio.&lt;/em&gt; &lt;/li&gt;
&lt;/ul&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%2Flwnnuq7m88p6gur5to1o.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%2Flwnnuq7m88p6gur5to1o.png" alt="SDK Platforms"&gt;&lt;/a&gt;&lt;br&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%2Ftymg1eo7bznlqnqo4r84.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%2Ftymg1eo7bznlqnqo4r84.png" alt="SDK Tools"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Also please copy or save the &lt;strong&gt;"Android SDK Location"&lt;/strong&gt; path, there will be a &lt;em&gt;major use&lt;/em&gt; of this in setting up the &lt;strong&gt;environment variables&lt;/strong&gt;. Android SDK Location is listed on top of SDK Manager menu. &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%2Falb8pdkz4zslz7qg3tra.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%2Falb8pdkz4zslz7qg3tra.png" alt="android studio sdk location"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now click on &lt;strong&gt;Virtual Device Manager&lt;/strong&gt; and then click on &lt;strong&gt;"Create Device"&lt;/strong&gt; button. This will create an emulator for testing your React Native applications. &lt;/li&gt;
&lt;/ul&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%2Ft3odupvwhrfs62w8t811.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%2Ft3odupvwhrfs62w8t811.png" alt="vdm 1"&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%2F6g0nonn9woj01r5zcagg.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%2F6g0nonn9woj01r5zcagg.png" alt="vdm 2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now select a phone of your choice, let us select &lt;em&gt;Pixel 6 Pro&lt;/em&gt; and then click on next.
&lt;/li&gt;
&lt;/ul&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%2Fkqnlxlgel857vepsu802.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%2Fkqnlxlgel857vepsu802.png" alt="vdm 3"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You can select the system image of your choice and then click on next.
&lt;/li&gt;
&lt;/ul&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%2Fl8v4ib0d5fulzz24ksq9.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%2Fl8v4ib0d5fulzz24ksq9.png" alt="vdm 4"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Leave everything as default and then click on &lt;em&gt;finish&lt;/em&gt;. &lt;/li&gt;
&lt;/ul&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%2F4hwsoz8e3te3fb9lb0rj.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%2F4hwsoz8e3te3fb9lb0rj.png" alt="vdm 5"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now your new &lt;em&gt;Pixel 6 Pro&lt;/em&gt; device is now ready. Click on &lt;em&gt;Play&lt;/em&gt; button to run the device. &lt;em&gt;Running the device for the first time may take some time to start.&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&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%2Fxh7jrxpibn11w7ojbv99.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%2Fxh7jrxpibn11w7ojbv99.png" alt="vdm 6"&gt;&lt;/a&gt; &lt;br&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%2F1atdltjh2rd5map9l2un.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%2F1atdltjh2rd5map9l2un.png" alt="vdm 7"&gt;&lt;/a&gt;&lt;br&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%2Fg9hkhb3pu6w2k9lixbc3.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%2Fg9hkhb3pu6w2k9lixbc3.png" alt="emulator"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;center&gt;Now your emulator is currently up and running 🔥&lt;/center&gt;&lt;/em&gt; &lt;/p&gt;



&lt;p&gt;&lt;em&gt;I have not show the whole installation process of node.js, JDK and Android Studio as I think it's simple to install. You just need to click on next whenever it appeared&lt;/em&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  4. Setting up the environment variables
&lt;/h2&gt;

&lt;p&gt;Environment Variables as the name suggest is used to store the values or data that can be directly used by Operating System. &lt;/p&gt;

&lt;p&gt;We need to setup environmental variables for &lt;em&gt;JDK&lt;/em&gt; and &lt;em&gt;Android Studio&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;Steps for setting up the environmental variables are: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Click on Search bar and type "&lt;em&gt;Environment&lt;/em&gt;" and you will see "Edit the system environment variables" and then click on it.&lt;br&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%2F5h0zd18qnnq522x8rsd8.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%2F5h0zd18qnnq522x8rsd8.png" alt="ev1"&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now click on &lt;em&gt;Environment Variables&lt;/em&gt;. &lt;br&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%2Fikr2xdiz6501ekxwkdyw.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%2Fikr2xdiz6501ekxwkdyw.png" alt="ev2"&gt;&lt;/a&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now for both user and system variables click on &lt;em&gt;New&lt;/em&gt; and enter the variable name as &lt;strong&gt;JAVA_HOME&lt;/strong&gt; and variable value as the &lt;strong&gt;location of JDK&lt;/strong&gt; and then click on &lt;em&gt;OK&lt;/em&gt;. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&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%2Fy7iyal3u00lz91ohxnkg.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%2Fy7iyal3u00lz91ohxnkg.png" alt="ev3"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;center&gt;Environment variables for JDK is successfully setup.&lt;/center&gt; 



&lt;ul&gt;
&lt;li&gt;Before setting up the environmental variables for Android Studio, open the SDK location of Android Studio and after opening it we can see there is a folder which is named "&lt;em&gt;platform-tools&lt;/em&gt;". Copy its location, we will be needing it for setting up the environment variables for Android Studio. &lt;/li&gt;
&lt;/ul&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%2Fc01diex419bd4rxoa4p1.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%2Fc01diex419bd4rxoa4p1.png" alt="ev4"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now for both user and system variables click on &lt;em&gt;Path&lt;/em&gt; and then click on &lt;em&gt;Edit&lt;/em&gt; &lt;/li&gt;
&lt;/ul&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%2Fk4q53azajjjjwlt49ic7.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%2Fk4q53azajjjjwlt49ic7.png" alt="ev5"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now click on &lt;em&gt;New&lt;/em&gt; and then write "&lt;em&gt;platform-tools&lt;/em&gt;" location and &lt;em&gt;SDK location&lt;/em&gt; and then click on &lt;em&gt;OK&lt;/em&gt;. &lt;/li&gt;
&lt;/ul&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%2Fudsrhnayija8d0aq7gvy.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%2Fudsrhnayija8d0aq7gvy.png" alt="pt"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now for both user and system variables click on &lt;em&gt;New&lt;/em&gt; and enter the variable name as &lt;strong&gt;ANDROID_HOME&lt;/strong&gt; and variable value as the &lt;strong&gt;location of Android Studio SDK&lt;/strong&gt; and then click on &lt;em&gt;OK&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&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%2Fadzb06amlhvz08mqe572.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%2Fadzb06amlhvz08mqe572.png" alt="ev6"&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%2Fb27zuxw6z3ndji135hl8.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%2Fb27zuxw6z3ndji135hl8.png" alt="ev7"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;center&gt;Environment variables for Android Studio SDK is successfully setup.&lt;/center&gt; 

&lt;h2&gt;
  
  
  5. Creating and Running React Native Application
&lt;/h2&gt;

&lt;p&gt;Now we are ready to create and run our React Native application in the following steps 🚀: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open a new folder and open Command Prompt or any terminal which you use. &lt;/li&gt;
&lt;/ul&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%2Fxeeftzr6qde1gbfky03p.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%2Fxeeftzr6qde1gbfky03p.png" alt="cra-1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now write the command: &lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

npx react-native init newproject


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;where &lt;strong&gt;newproject&lt;/strong&gt; is name of the project, you can keep any name of your choice following the naming conventions.&lt;/p&gt;

&lt;p&gt;Now execute the command. &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%2F51thj19bhefr7bvzkgpy.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%2F51thj19bhefr7bvzkgpy.png" alt="cra-2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After executing the command it will start downloading template dependencies and all the other necessary files for the application. &lt;/li&gt;
&lt;/ul&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%2F46l8n2krktruai3jmg9z.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%2F46l8n2krktruai3jmg9z.png" alt="cra-3"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;b&gt;Hurray, we have successfully created a React Native Application 🥳.&lt;/b&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Now open the &lt;code&gt;newproject&lt;/code&gt; folder and open the Command Prompt or any terminal (on the &lt;code&gt;newproject&lt;/code&gt; location) you use and run the command &lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

npx react-native run-android


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;em&gt;📝Before executing the above command it is recommended to open Android emulator (Virutal device) first which will open the app in fastest way possible.&lt;/em&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Metro&lt;/strong&gt; bundler will open after executing the above command. Just press &lt;strong&gt;a&lt;/strong&gt; and the application will start running on the Android emulator. &lt;/li&gt;
&lt;/ul&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%2F5r60brckpqllpfukt15i.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%2F5r60brckpqllpfukt15i.png" alt="rnstart-1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🚨&lt;em&gt;After running the above command if you are facing an error: "&lt;strong&gt;Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception.&lt;/strong&gt;". This means that the environment variable &lt;strong&gt;ANDROID_HOME&lt;/strong&gt; is not set properly, check whether you have set the environment variable properly or not. If you have set up the environmental variable correctly and still facing this issue then nothing to worry, you just need to restart your system and run the above command and open the emulator again. It will surely work.&lt;/em&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Running the above command for the first time will take some time for the application to open. After the first time, it will hot refresh and wont take much time in opining the application.
&lt;/li&gt;
&lt;/ul&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%2Fbu0z813koivrcjake5vd.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%2Fbu0z813koivrcjake5vd.png" alt="rnstart-2"&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%2Fv4xo83pqcb7h7gh3biyr.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%2Fv4xo83pqcb7h7gh3biyr.png" alt="rnstart-3"&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%2Fgpc6jb9yzpg3ga5t208r.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%2Fgpc6jb9yzpg3ga5t208r.png" alt="rnstart-4"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Hurray ! We have successfully run our first React Native application 🎉.&lt;/strong&gt;&lt;/em&gt;  &lt;/p&gt;

&lt;p&gt;Although you can find tutorial for setting up React Native environment from its &lt;a href="https://reactnative.dev/docs/environment-setup" rel="noopener noreferrer"&gt;&lt;strong&gt;official documentation&lt;/strong&gt;&lt;/a&gt;. &lt;em&gt;I will highly recommend you to do check that out.&lt;/em&gt; But I still faced some error while setting up React Native environment on my local machine, so this was my main reason behind writing this blog. &lt;/p&gt;

&lt;p&gt;I hope this blog has saved you a lot of your time in setting up React Native environment on your Windows machine. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;I wish you very all the best for your React Native journey&lt;/strong&gt;&lt;/em&gt; 🫂👍. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/LMtyZa58aGSPjMSOMF/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/LMtyZa58aGSPjMSOMF/giphy.gif" alt="ATB"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At last, I would like you to thanks for reading my blog, if you find this blog useful then do share the blog and give it a like. If you have any queries or wanted to have a chat with me then feel  free to contact me on Twitter &lt;a href="https://twitter.com/HarshitAditya1" rel="noopener noreferrer"&gt;&lt;strong&gt;@HarshitAditya1&lt;/strong&gt;&lt;/a&gt;. You can follow me👍 there I do sometimes post tweets about Web Development. Also please feel free express your thoughts and feedback about this blog. I would love to read them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/TXFWfSZ1EP7iRj9tvI/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/TXFWfSZ1EP7iRj9tvI/giphy.gif" alt="thanks"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>mobile</category>
      <category>beginners</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Understanding CMS using Sanity</title>
      <dc:creator>Harshit Aditya</dc:creator>
      <pubDate>Sat, 29 Jan 2022 15:17:50 +0000</pubDate>
      <link>https://dev.to/harshitaditya1/understanding-cms-using-sanity-4of</link>
      <guid>https://dev.to/harshitaditya1/understanding-cms-using-sanity-4of</guid>
      <description>&lt;p&gt;Suppose you are a developer and you want to create a blogging site like DEV, Medium or a social media site like Facebook, Instagram then the most challenging part you are going to face is how are you going to code the post part where users publish the post/article. Here comes the CMS to rescue. In this blog, we will discover what a CMS is, why was it made, what is a headless CMS, examples of CMS including a simple demo on how you can use a CMS using Sanity. &lt;br&gt;
&lt;a href="https://i.giphy.com/media/xT0xehxwagcgaqpNf2/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/xT0xehxwagcgaqpNf2/giphy.gif" alt="cms"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  What is CMS and why it was made?
&lt;/h1&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%2F6aew2d60b99ueftug7fa.jpg" 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%2F6aew2d60b99ueftug7fa.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
In the early days of Web Development, developers faced a lot of issues in managing content which gave the rise of building CMS. CMS refers to &lt;b&gt;Content Management System&lt;/b&gt;. It is a tool that is used to manage content which contains editing, creating, and publishing content from various authorized users. In simple words, CMS is a tool that is used to create a website without having extreme knowledge of programming, or even if you don't know programming you are good to go with CMS. Content of CMS is stored in a database. Using a CMS is very user-friendly, allows multiple users to manage the content, improves site maintenance, and much more. &lt;/p&gt;

&lt;h1&gt;
  
  
  How CMS is made?
&lt;/h1&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%2Ft5vbg1t1prps9csk0hf2.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%2Ft5vbg1t1prps9csk0hf2.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt; CMS is made up of two applications :&lt;/h2&gt; 

&lt;h4&gt;1. CMA (Content Management Application)&lt;/h4&gt; 

&lt;p&gt;CMA stands for &lt;b&gt;Content Management Application&lt;/b&gt;. In simple words, CMA is the frontend of CMS. CMS gives a lot of templates that help in managing and editing the content. &lt;/p&gt;

&lt;h4&gt;2. CDA (Content Delivery Application)&lt;/h4&gt;

&lt;p&gt;CDA stands for &lt;b&gt;Content Delivery Application&lt;/b&gt;. CDA is the backend of CMS. It helps the content to get stored in the database and also it publishes the content in the platform and helps it to reach the viewers.    &lt;/p&gt;

&lt;h1&gt;
  
  
  Examples of CMS
&lt;/h1&gt;

&lt;h2&gt;&lt;a href="https://wordpress.com/" rel="noopener noreferrer"&gt;WordPress&lt;/a&gt;&lt;/h2&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%2F4hemvtaef30inw3i3op7.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%2F4hemvtaef30inw3i3op7.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;WordPress is one of the most popular CMS currently used. You can create a full working website using WordPress. &lt;/p&gt;

&lt;h2&gt;&lt;a href="https://www.drupal.org" rel="noopener noreferrer"&gt;Drupal&lt;/a&gt;&lt;/h2&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%2F7msg76k3lgtivr1dpcjm.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%2F7msg76k3lgtivr1dpcjm.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
Drupal is an open-source web CMS that is written in PHP. It acts as an open-source backend framework for CMS. &lt;/p&gt;

&lt;h2&gt;&lt;a href="https://www.sanity.io/" rel="noopener noreferrer"&gt;Sanity.io&lt;/a&gt;&lt;/h2&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%2Ffbf1ljq0tazm8dw60fsm.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%2Ffbf1ljq0tazm8dw60fsm.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sanity is a &lt;b&gt;headless CMS&lt;/b&gt; that is best for users for collaboration of the project. It is a very powerful platform for generating and modifying content. We will use Sanity.io to show the working of CMS later in this blog.&lt;br&gt;
&lt;br&gt; &lt;br&gt;
✏️&lt;b&gt;Note:&lt;/b&gt; &lt;em&gt;Headless CMS is a backend-only CMS where content is accessible through APIs.&lt;/em&gt; &lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h2&gt;&lt;a href="https://strapi.io/" rel="noopener noreferrer"&gt;Strapi&lt;/a&gt;&lt;/h2&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%2Fokm8x0ddpoxn4c2u2l3d.jpg" 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%2Fokm8x0ddpoxn4c2u2l3d.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Strapi is a headless CMS that is based on node.js. It's highly customizable and self-hosted. &lt;/p&gt;

&lt;h2&gt;&lt;a href="https://strapi.io/" rel="noopener noreferrer"&gt;GraphCMS&lt;/a&gt;&lt;/h2&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%2Fj4e9gdhpy9zegte0tlus.jpg" 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%2Fj4e9gdhpy9zegte0tlus.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GraphCMS is a headless CMS this is based on GraphQL API. It's highly lightweight and it provides a lot of extensions for customizing the UI (User Interface).&lt;br&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;em&gt;There are many more CMSs available the once mentioned above are some popular ones.&lt;/em&gt;&lt;br&gt;&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Using CMS through Sanity.io
&lt;/h1&gt;

&lt;p&gt;In this section, we will show the simple working and setting up of CMS using Sanity.io. Sanity provides a lot of templates to demonstrate its system and workings. We will learn how to use Sanity.io CMS through following steps: &lt;/p&gt;

&lt;p&gt;&lt;b&gt;1.&lt;/b&gt; Open &lt;a href="https://www.sanity.io/" rel="noopener noreferrer"&gt;Sanity.io&lt;/a&gt; and click on get started. &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%2Flfmm7ifsvzhsba8stz8m.jpg" 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%2Flfmm7ifsvzhsba8stz8m.jpg" alt="Image description"&gt;&lt;/a&gt; &lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;b&gt;2.&lt;/b&gt; There are two ways to use Sanity, you can create a new project from start and start customizing it using Sanity or you can use the templates provided by Sanity to just explore it and customize it according to your wish. I will be using templates to just show the working of Sanity. There are a lot of templates provided by Sanity. You can choose any templates of your wish. I will be using Next.js Landing Pages template. So click on the “Next.js Landing Pages” section. &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%2Fjvwrxs14c8xmfjvqiran.jpg" 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%2Fjvwrxs14c8xmfjvqiran.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;b&gt;3.&lt;/b&gt; After clicking on the “Next.js Landing Pages” section, a new page with all the next steps for the deployment of projects appears. First, you have to authenticate to use Sanity. There are three ways you can authenticate to Sanity, I will recommend you to authenticate it through GitHub as it will help you in the next step. You can revoke Sanity access anytime from GitHub. I have authenticated using Google.  &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%2Fiqi0hfps8nkikhf2xi25.jpg" 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%2Fiqi0hfps8nkikhf2xi25.jpg" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;b&gt;4.&lt;/b&gt; After authentication you have to authorize Sanity to access your GitHub access. After giving the access, Sanity will create a repository in your GitHub account, and it's your choice to keep the repository public or private.      &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%2Fw6d7ofbalhhmnidipcz1.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%2Fw6d7ofbalhhmnidipcz1.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%2Fuaxk0sss2slnp7pjqk8l.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%2Fuaxk0sss2slnp7pjqk8l.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;b&gt;5.&lt;/b&gt; After the repository is created we have to give Netlify access to sanity as they will use Netlify for deploying the website. &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%2F67hmgx4t34atsy5ogzf3.jpg" 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%2F67hmgx4t34atsy5ogzf3.jpg" 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%2Fsqow3htdk7akhqah2rxt.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%2Fsqow3htdk7akhqah2rxt.png" alt="Image description"&gt;&lt;/a&gt; &lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;b&gt;6.&lt;/b&gt; After completing all the steps mentioned above, the project is ready to use. Open Sanity Studio and open the website. &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%2F7fnch4ztik63xfotoeaj.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%2F7fnch4ztik63xfotoeaj.png" alt="Image description"&gt;&lt;/a&gt; &lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;b&gt;7.&lt;/b&gt; First we will see the website we just deployed. I will be changing the section marked with a blue lining. I will be changing the background image and text. &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%2Fniw2zimq7fl380g2z17l.jpg" 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%2Fniw2zimq7fl380g2z17l.jpg" alt="Image description"&gt;&lt;/a&gt; &lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;b&gt;8.&lt;/b&gt; Open Sanity Studio. You need to authenticate before using Sanity Studio.In simple words, Sanity Studio is a tool through which we can easily edit the content of the website and do a lot of things. Open pages and click on Frontend.   &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%2Fr1j8jpwl51m5mcrztrs8.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%2Fr1j8jpwl51m5mcrztrs8.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%2F3h78lb8l9pd8wtxi301z.jpg" 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%2F3h78lb8l9pd8wtxi301z.jpg" alt="Image description"&gt;&lt;/a&gt; &lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;b&gt;9.&lt;/b&gt; A sidebar appears where you can edit the different parts of the website and content as per your wish. After making changes click on publish. Wait for approx. 2 to 5 minutes to get the website updated. &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%2Fqkgkhpfqxu65q55kyawa.jpg" 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%2Fqkgkhpfqxu65q55kyawa.jpg" 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%2F32fhmtk3lrdc619b1yjy.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%2F32fhmtk3lrdc619b1yjy.png" alt="Image description"&gt;&lt;/a&gt; &lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;b&gt;10.&lt;/b&gt; Visit the website and you can see the changes are implemented.&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%2Fwv49regru6pzn93ijmyv.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%2Fwv49regru6pzn93ijmyv.png" alt="Image description"&gt;&lt;/a&gt; &lt;br&gt;
&lt;br&gt; &lt;br&gt;
Hurray 🥳, we just used the Sanity CMS to change the content of our website 🎉. &lt;br&gt;
&lt;br&gt;&lt;br&gt;
The main purpose behind this blog was to explain what a CMS is as I was also not knowing about CMS previously and this blog is my research about it as I am going to use CMS in my future projects. At last, I would like to thank you for taking the time for reading this blog. Please comment and do express your views about this blog. If you have any queries, feedback regarding this blog feels free to comment and contact me on Twitter(&lt;a href="https://twitter.com/HarshitAditya1" rel="noopener noreferrer"&gt;@HarshitAditya1&lt;/a&gt;). I am highly active on Twitter and I would happy to solve your queries and have a conversation with you. &lt;br&gt;
&lt;a href="https://i.giphy.com/media/ABhl0oGBxJ8Z7gAuYo/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/ABhl0oGBxJ8Z7gAuYo/giphy.gif" alt="cms"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Mistakes I made while learning Web Development as a beginner</title>
      <dc:creator>Harshit Aditya</dc:creator>
      <pubDate>Fri, 03 Dec 2021 12:42:58 +0000</pubDate>
      <link>https://dev.to/harshitaditya1/mistakes-i-made-while-learning-web-development-as-a-beginner-4m7n</link>
      <guid>https://dev.to/harshitaditya1/mistakes-i-made-while-learning-web-development-as-a-beginner-4m7n</guid>
      <description>&lt;p&gt;This blog is all about mistakes I made while learning Full Stack Web Development as a beginner. I started my Web Development journey in November 2020. I made a lot of mistakes in Web Development and realized it while learning throughout the year. I have been doing Web Development for the past 1 year and am still learning it. In this blog, I will be talking about some of the major mistakes I made while learning Web Development and also provide solutions for them so that you won't make these mistakes. My major mistakes include: &lt;/p&gt;

&lt;h1&gt;
  
  
  Not taking breaks
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/RicRd3dDNQJM3fmkzt/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/RicRd3dDNQJM3fmkzt/giphy.gif" alt="Breaks"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I was very enthusiastic when learning Web Development in the beginning but I was not taking breaks after completing one part or portion of the course which I was following which broke my enthusiasm. Taking breaks is very important whether you are learning or building projects. If you are tired while learning then take a break and do it later when you feel free and energetic. If you got stuck in an error while building any project and you are trying to solve that issue for the last 2 to 4 hours then I would highly recommend leaving that problem and try to solve it the next day with a fresh mind. Most of the time I found that the very next day the issue or problem is solved.  This technique has worked with me 95% of the time. &lt;strong&gt;Working in a fresh mind and mood is very important. Do take breaks in an interval of time.&lt;/strong&gt;   &lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/cjKgv8Len6mwO0983e/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/cjKgv8Len6mwO0983e/giphy.gif" alt="Breaks"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Not Building Projects
&lt;/h1&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1392722604046176258-387" src="https://platform.twitter.com/embed/Tweet.html?id=1392722604046176258"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1392722604046176258-387');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1392722604046176258&amp;amp;theme=dark"
  }



 &lt;/p&gt;

&lt;p&gt;Building projects are very important while learning any tech stack. Building projects will make your concepts clear and memorable. I will highly suggest you to start building projects while and after learning any concepts. For example, if you are learning HTML and CSS then you can create many static websites, and also if you have completed JavaScript you can create a ton of new projects. If you are following any course then most probably you will also get projects to build but I will recommend you to also build projects separate from the courses. This will help you to learn and grab more things faster related to the tech stack you are learning. YouTube and blogs are some great resources where you can get awesome project ideas. &lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1392722605669457922-675" src="https://platform.twitter.com/embed/Tweet.html?id=1392722605669457922"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1392722605669457922-675');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1392722605669457922&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;h1&gt;
  
  
  Not using Developer Tools
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/Vhk9HwPx3TO0w/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/Vhk9HwPx3TO0w/giphy.gif" alt="Mistakes"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This was one the biggest mistake I committed with myself while learning Web Development. We can do a lot of things with Developer Tools. One of its features is that we can inspect our web app and find errors on it.  When I started building projects I faced two types of errors which are simple errors and internal errors. Simple errors include typing errors, missed semicolons, etc. Whereas internal errors are those which happens when you missed some important or major line of code or you typed it completely wrong. A simple error does not take much time to debug but an internal error takes a lot of time in debugging if we can't find where the problem is. Missing an import in React is an example of an internal error. I will also add a screenshot of an internal error that I faced while I was building a project.&lt;br&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%2F4s6hx325p25yy7d0gxfn.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%2F4s6hx325p25yy7d0gxfn.png" alt="Internal Errors"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;One of the internal error I faced while creating app in React &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Developer tools save a lot of time in debugging.&lt;/strong&gt; You can open Developer Tools in your browser by pressing Ctrl+Shift+I in windows and  ⌘ + ⌥ + I in Mac and start exploring the tools. There are various videos on YouTube where you can learn about Developer Tools and how to use them.    &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%2Fi.ytimg.com%2Fvi%2FwcFnnxfA70g%2Fmaxresdefault.jpg" 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%2Fi.ytimg.com%2Fvi%2FwcFnnxfA70g%2Fmaxresdefault.jpg" alt="Chrome Developer Tools"&gt;&lt;/a&gt;&lt;/p&gt;
Chrome Developer Tools



&lt;h1&gt;
  
  
  Not taking help from internet and developer communities
&lt;/h1&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%2Fpbs.twimg.com%2Fmedia%2FFDh3wuQUcAAJnJI%3Fformat%3Djpg%26name%3Dlarge" 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%2Fpbs.twimg.com%2Fmedia%2FFDh3wuQUcAAJnJI%3Fformat%3Djpg%26name%3Dlarge" alt="Mistakes"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One of the mistakes I made in the beginning while learning Web Development is that I don't take help from the internet. If you are stuck in an error then do take help from Google and Stack Overflow. &lt;strong&gt;Googling is a very important skill.&lt;/strong&gt; You can also take help from documentation for additional reference. Also, I will recommend you to take help from Developer communities. You can get one on one guidance and doubt clearing in developer communities. Also in Developer communities, you get an opportunity to grow your network and collaborate with more like-minded folks for a project or hackathons.  &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%2Fpbs.twimg.com%2Fmedia%2FFEGMGvvVkAMXcCr%3Fformat%3Djpg%26name%3Dlarge" 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%2Fpbs.twimg.com%2Fmedia%2FFEGMGvvVkAMXcCr%3Fformat%3Djpg%26name%3Dlarge" alt="Community"&gt;&lt;/a&gt;&lt;/p&gt;
Community FTW 💯🎉



&lt;p&gt;These are some of the major mistakes I made while learning Web Development as an absolute beginner. I hope that this will save you a lot of time while learning web development. &lt;strong&gt;Mistakes will always happen while developing or building projects and these mistakes will give you the experience to become a better developer so never get scared or tensed when an error or issue occurs instead think that you are going to learn something new.&lt;/strong&gt; At last, I would like to thank you for taking the time for reading this blog. Please comment and do express your thoughts on this blog. If you have any queries regarding this blog, Web Development, etc. then feel free to contact me on Twitter (&lt;a href="https://twitter.com/HarshitAditya1" rel="noopener noreferrer"&gt;@HarshitAditya1&lt;/a&gt;). I am highly active on Twitter and I would be happy to solve your queries and have a conversation with you.    &lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/m2WQBH7DhSdgLfnTUi/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/m2WQBH7DhSdgLfnTUi/giphy.gif" alt="Thank You"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>All About Cryptocurrencies for absolute beginners </title>
      <dc:creator>Harshit Aditya</dc:creator>
      <pubDate>Sun, 01 Aug 2021 11:05:34 +0000</pubDate>
      <link>https://dev.to/harshitaditya1/all-about-cryptocurrcies-for-absolute-beginners-m2</link>
      <guid>https://dev.to/harshitaditya1/all-about-cryptocurrcies-for-absolute-beginners-m2</guid>
      <description>&lt;h1&gt;
  
  
  History Of Cryptocurrency
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Cryptocurrency&lt;/strong&gt; the most trending word right now originated in the year 1983 founded by &lt;a href="https://en.wikipedia.org/wiki/David_Chaum" rel="noopener noreferrer"&gt;&lt;em&gt;David Chaum&lt;/em&gt;&lt;/a&gt; an American cryptographer who created an anonymous cryptographic electronic money called ecash from which the whole idea of cryptocurrency was originated. In 1995 DigiCash an advanced version of ecash was created which uses software to withdraw notes from the bank and assign an encrypted key before it is sent to the recipient. This allowed the money details to be hidden from issuing bank, government, and any third-party agent which generated the whole idea and concept of cryptocurrency. &lt;br&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%2F8dbbh97tbpfwvamnaswt.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%2F8dbbh97tbpfwvamnaswt.png" alt="History"&gt;&lt;/a&gt;  &lt;/p&gt;

&lt;h1&gt;
  
  
  What Is Cryptocurrency and how it works?
&lt;/h1&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%2Fty7a8dqqcupq7pyc73yb.jpg" 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%2Fty7a8dqqcupq7pyc73yb.jpg" alt="Cryptocurrencies"&gt;&lt;/a&gt;&lt;br&gt;
Cryptocurrency is a digital currency that can be used to exchange products which include goods and services. There are more than 10000 + cryptocurrencies available now. Bitcoin, Ethereum, and Dogecoins are some popular examples of cryptocurrencies. In 2009 the first decentralized cryptocurrency, Bitcoin was created by &lt;a href="https://en.wikipedia.org/wiki/Satoshi_Nakamoto" rel="noopener noreferrer"&gt;&lt;em&gt;Satoshi Nakamoto&lt;/em&gt;&lt;/a&gt;. &lt;u&gt;Transaction of Cryptocurrencies is based on Blockchain technology which is one of the most secure processes in the world&lt;/u&gt;. In Blockchain information or data is stored in a chain of blocks. Blockchain makes the transaction process of the cryptocurrency very efficient. Blockchain assigns a cryptographic key to the cryptocurrency which makes it decentralized. The GIF shown below illustrates how blockchain works.&lt;br&gt;&lt;br&gt;
&lt;a href="https://i.giphy.com/media/W5UoBN0YMdT1QP8Yfr/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/W5UoBN0YMdT1QP8Yfr/giphy.gif" alt="BlockChain"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Investing In Cryptocurrencies
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/pJQKnd8NMIuzOPPSvg/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/pJQKnd8NMIuzOPPSvg/giphy.gif" alt="Investing"&gt;&lt;/a&gt; &lt;br&gt;
&lt;u&gt;In cryptocurrency, there is no middle agent between the transaction due to which there is no external interaction of banks, government, etc&lt;/u&gt;. In cryptocurrency trading, there are no predefined rules which make the market of the cryptocurrency very volatile due to which investing in cryptocurrency is not as safe as investing in stocks. In stock trading, there are many rules which make it a safer option compared to investing in cryptocurrencies. For example in stocks, there is a regulatory body such as BSE (Bombay Stock Exchange), NSE (National Stock Exchange), etc which regulates the market which prevents the market from falling heavily but in cryptocurrency, there are no regulating bodies due to which the market is volatile. But that doesn’t mean we should not invest in cryptocurrency, we can invest in cryptocurrency by giving some small amounts to analyze the crypto market.&lt;br&gt;&lt;br&gt;
&lt;a href="https://i.giphy.com/media/524L7nbZSgvdv4woq0/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/524L7nbZSgvdv4woq0/giphy.gif" alt="Future of Cryptocurrency"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Future Of Cryptocurrency
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/oNFP9kltPi7fp8TUAV/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/oNFP9kltPi7fp8TUAV/giphy.gif" alt="To the moon"&gt;&lt;/a&gt;&lt;br&gt;
Can cryptocurrency replace the physical currency which we use daily use? The answer is no for now but in the future, no one knows because cryptocurrency is not stable due to which it is not possible to replace the physical currency but companies like KFC, Pizza Hut, Microsoft, etc companies have stated using bitcoins as an alternate option of payment. When it comes to world of finance, cryptocurrency has always been a topic of great discussion where many tech founders like Bill Gates and Elon Musk portrays cryptocurrency as the future whereas business tycoon like Warren Buffet says that cryptocurrency will never replace physical currency as it is very unstable. &lt;br&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%2Fends2aw1x4ne76yrwl9z.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%2Fends2aw1x4ne76yrwl9z.png" alt="Investing In Cryptocurrency"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Is Cryptocurrency legal in India?
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/ShTlThiE6E6Iw/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/ShTlThiE6E6Iw/giphy.gif" alt="Legality of Cryptocurrency in India"&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;
Cryptocurrency trading is legal in India but transaction or buying products through Cryptocurrency is not legal in India as of now. &lt;a href="https://wazirx.com/" rel="noopener noreferrer"&gt;Wazirx&lt;/a&gt;,&lt;a href="https://www.coinbase.com/" rel="noopener noreferrer"&gt;Coinbase&lt;/a&gt;,&lt;a href="https://www.binance.com/en" rel="noopener noreferrer"&gt;Binance&lt;/a&gt; are some popular trading platforms where you can trade and buy cryptocurrencies. To stay protected always read company’s prospectors and see what projects and investors are involved before buying their cryptocurrencies because many malpractices happen with the transaction of cryptocurrencies such as it is used in buying illegal weapons and it is used in dark web too and many illegal activities. &lt;br&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%2Fl8ijose2i48syjztkbhn.jpg" 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%2Fl8ijose2i48syjztkbhn.jpg" alt="Cryptocurrency Trading is legal in India"&gt;&lt;/a&gt;&lt;br&gt;
At last, I would like to thank you for taking the time to read this blog. This is my first blog. Please comment and do express your thoughts on this blog so I can improve in my next blog. &lt;br&gt;
&lt;a href="https://i.giphy.com/media/JlpjgShzDsrMIyFu5U/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/JlpjgShzDsrMIyFu5U/giphy.gif" alt="Thanks a lot for reading"&gt;&lt;/a&gt;    &lt;/p&gt;

</description>
      <category>cryptocurrency</category>
      <category>blockchain</category>
      <category>ethereum</category>
      <category>bitcoin</category>
    </item>
  </channel>
</rss>
