<?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: Abhishek Dhapare</title>
    <description>The latest articles on DEV Community by Abhishek Dhapare (@abhishekdhapare9392).</description>
    <link>https://dev.to/abhishekdhapare9392</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%2F267454%2F0e7dcb6a-bff5-4ab6-b53d-22e12a4c61b6.jpeg</url>
      <title>DEV Community: Abhishek Dhapare</title>
      <link>https://dev.to/abhishekdhapare9392</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abhishekdhapare9392"/>
    <language>en</language>
    <item>
      <title>Node.js fulfill abstraction example.</title>
      <dc:creator>Abhishek Dhapare</dc:creator>
      <pubDate>Sat, 01 Jan 2022 15:43:12 +0000</pubDate>
      <link>https://dev.to/abhishekdhapare9392/nodejs-fulfill-abstraction-example-4176</link>
      <guid>https://dev.to/abhishekdhapare9392/nodejs-fulfill-abstraction-example-4176</guid>
      <description>&lt;p&gt;I write a small weather details fetch web application from external API. you cna look see it on GitHub: &lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--566lAguM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/abhishekdhapare9392"&gt;
        abhishekdhapare9392
      &lt;/a&gt; / &lt;a href="https://github.com/abhishekdhapare9392/weather-app-node-js"&gt;
        weather-app-node-js
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      This is application using https://openweathermap.org/ API's to fetch the weather details with sending city name.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
Weather APP - Using NodeJs, Weather API and HTML, CSS, JavaScript&lt;/h1&gt;
&lt;h4&gt;
Description:&lt;/h4&gt;
&lt;p&gt;Weather app is created using Node.js, Express.js framework to create the API's. To fetch weather details we used &lt;a href="https://openweathermap.org/api" rel="nofollow"&gt;https://openweathermap.org/api&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;h3&gt;
Technologies&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Node.js, ExpressJs (Framework)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; HTML, CSS, JavaScript&lt;/li&gt;
&lt;li&gt;API: &lt;a href="https://openweathermap.org/api" rel="nofollow"&gt;https://openweathermap.org/api&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;h3&gt;
Steps to Run&lt;/h3&gt;
&lt;blockquote&gt;
&lt;h4&gt;
Step 1&lt;/h4&gt;
&lt;/blockquote&gt;
&lt;p&gt;Clone the repository on your machine (Desktop/Laptop) using following command&lt;br&gt;
&lt;code&gt;git clone https://github.com/abhishekdhapare9392/weather-app-node-js.git&lt;/code&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;h4&gt;
Step 2&lt;/h4&gt;
&lt;/blockquote&gt;
&lt;p&gt;run &lt;code&gt;npm install&lt;/code&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;h4&gt;
Step 3&lt;/h4&gt;
&lt;/blockquote&gt;
&lt;p&gt;copy .env.expample file to .env and add &lt;code&gt;API_KEY&lt;/code&gt; value with your API key. To get API key visit &lt;a href="https://openweathermap.org/api" rel="nofollow"&gt;Open Weather Map API&lt;/a&gt; link.&lt;/p&gt;
&lt;blockquote&gt;
&lt;h4&gt;
Step 4&lt;/h4&gt;
&lt;/blockquote&gt;
&lt;p&gt;run &lt;code&gt;npm start&lt;/code&gt;. After running this command you can visit the link &lt;a href="http://localhost:3000" rel="nofollow"&gt;http://localhost:3000&lt;/a&gt; for frontend. For API's visit the link &lt;a href="http://localhost:3000/doc" rel="nofollow"&gt;http://localhost:3000/doc&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
Why used Nodejs if we can call the api from JavaScript frontend?&lt;/h4&gt;
&lt;p&gt;To hide the API Key and url of openweathermap. This is a best example of Opps concept, Abstraction.&lt;/p&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/abhishekdhapare9392/weather-app-node-js"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;p&gt;To avoid to reveal the API key and resource of third party API in DevTools-&amp;gt;Source.&lt;/p&gt;

&lt;p&gt;Please visit the GitHub link and follow the document. After you completed the process you will be on browser. (Hopefully on Chrome). Open the Developer Tools-&amp;gt;Source you can see the all files loading which required. Click on JS-&amp;gt;script.js file and you can see code in side window. If you see carefully and read the code there is an API call without API key and resource link. Please go through it and let me know. I would like to discuss if any one have doubts or queries.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;

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