<?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: Shreeya</title>
    <description>The latest articles on DEV Community by Shreeya (@shreeya27).</description>
    <link>https://dev.to/shreeya27</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%2F409225%2F35349279-2309-48a5-a969-fe70f804864b.jpg</url>
      <title>DEV Community: Shreeya</title>
      <link>https://dev.to/shreeya27</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shreeya27"/>
    <language>en</language>
    <item>
      <title>Mapping PORT Values in .env of Frontend &amp; Backend &amp; error: Cannot read property 'error' of undefined (anonymous function) </title>
      <dc:creator>Shreeya</dc:creator>
      <pubDate>Mon, 15 Jun 2020 10:29:21 +0000</pubDate>
      <link>https://dev.to/shreeya27/mapping-port-values-in-env-of-frontend-backend-error-cannot-read-property-error-of-undefined-anonymous-function-nil</link>
      <guid>https://dev.to/shreeya27/mapping-port-values-in-env-of-frontend-backend-error-cannot-read-property-error-of-undefined-anonymous-function-nil</guid>
      <description>&lt;p&gt;A Full stack stands on the port values of Front - Back ends. Linking the port values are crucial I guess in running a smooth software.&lt;/p&gt;

&lt;p&gt;You ever got this ⏬⏬ error ⏬⏬ then there is a &lt;strong&gt;SOLUTION FOR THIS BELOW&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🎃 &lt;strong&gt;Unhandled Rejection (TypeError): Cannot read property 'error' of undefined (anonymous function)&lt;/strong&gt; 🎃&lt;/p&gt;

&lt;p&gt;Here I am going to tell the important part of linking ends in a stack. While making front to back server requests you should make sure the port values and paths of api are specific. Here I prefer MERN stack for now so ya you can assume :&lt;/p&gt;

&lt;p&gt;🟡 &lt;strong&gt;FRONT-END : REACT.Js&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🟡 &lt;strong&gt;BACK-END : NODE.Js&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1️⃣: BACK-END Node.Js&lt;/p&gt;

&lt;p&gt;🔵 You run nodemon app.js&lt;br&gt;
🔵 You run Backend on port 3000&lt;br&gt;
🔵 Backend is active to fetch all requests on port 3000&lt;/p&gt;

&lt;p&gt;Good now you are running Backend on port &lt;strong&gt;3000&lt;/strong&gt; 🎃&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FSlA-z3o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/4pru3s8kzd1n694wvn96.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FSlA-z3o--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/4pru3s8kzd1n694wvn96.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2️⃣: FRONT-END React.JS&lt;/p&gt;

&lt;p&gt;🔵 You run npm start on your Frontend React.Js&lt;br&gt;
🔵 Your React says something is already running on port 3000&lt;br&gt;
🔵 So you like to change port to say 3001&lt;br&gt;
🔵 Frontend is active on port &lt;strong&gt;3001&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Good now you are running Frontend on port &lt;strong&gt;3001&lt;/strong&gt; 🎃&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8bh8SZMY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/y882nm79ugt92ee16ga6.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8bh8SZMY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/y882nm79ugt92ee16ga6.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3️⃣: Create a .env file in FRONTEND &lt;/p&gt;

&lt;p&gt;🔵 Open .env file&lt;br&gt;
🔵 Specify a url name say REACT_URL&lt;br&gt;
🔵 Declare REACT_URL=&lt;a href="http://localhost:3000"&gt;http://localhost:3000&lt;/a&gt;&lt;br&gt;
🔵 &lt;strong&gt;3000&lt;/strong&gt; port is the same value of your backend active port.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cuzR_CD4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/kmc1c8f01l53szir7gc7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cuzR_CD4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/kmc1c8f01l53szir7gc7.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4️⃣ DONE FINAL STEP&lt;br&gt;
So while making all the GET POST PUT PATCH DELETE. . . requests from backend to frontend make sure the db is connected and ports that your .env uses is correct to make requests on such routes. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kn8U1w4B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/7auhkmef7h5mkwh2sehw.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kn8U1w4B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/7auhkmef7h5mkwh2sehw.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy CODING💻&lt;br&gt;
Danke for reading 🌈&lt;/p&gt;

</description>
      <category>node</category>
      <category>react</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Hi There🎃!! </title>
      <dc:creator>Shreeya</dc:creator>
      <pubDate>Mon, 15 Jun 2020 07:31:23 +0000</pubDate>
      <link>https://dev.to/shreeya27/hi-there-194o</link>
      <guid>https://dev.to/shreeya27/hi-there-194o</guid>
      <description>&lt;p&gt;I am here out of curious and will be sharing solutions to errors, personal projects and seeking help too 🌈. &lt;/p&gt;

&lt;p&gt;R = Run 🏃🏻‍♀️💨&lt;/p&gt;

&lt;p&gt;I know Web development well I create and develop websites. I am also a job seeker right now. I focus on learning journey than jumping into something that I am less passionate to do. &lt;/p&gt;

&lt;p&gt;I love coding creating and designing UI UX ya ya I can do a lot.I like Duh! from Billie Eilish🤙🏻.&lt;/p&gt;

&lt;p&gt;OK!!!It's pandemic so I give you this motivation powerful code snippet in Node.Js 😉&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;app.get(" /covid-19 ", (req, res) =&amp;gt; {&lt;br&gt;
res.send(" Don't worry this too shall pass🌼 " )&lt;br&gt;
}) ;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is my first post a mini intro about ME👸🏻&lt;/p&gt;

&lt;p&gt;Danke for reading 👾&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>node</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
