<?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: Ehsan</title>
    <description>The latest articles on DEV Community by Ehsan (@ehsanghaffar).</description>
    <link>https://dev.to/ehsanghaffar</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%2F514512%2Fef06fa62-82c6-418c-9a1b-1ee65c7c437c.JPEG</url>
      <title>DEV Community: Ehsan</title>
      <link>https://dev.to/ehsanghaffar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ehsanghaffar"/>
    <language>en</language>
    <item>
      <title>A NodeJs web application using an application skeleton!</title>
      <dc:creator>Ehsan</dc:creator>
      <pubDate>Sun, 28 Feb 2021 11:20:15 +0000</pubDate>
      <link>https://dev.to/ehsanghaffar/a-nodejs-web-application-using-an-application-skeleton-2mee</link>
      <guid>https://dev.to/ehsanghaffar/a-nodejs-web-application-using-an-application-skeleton-2mee</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.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%2F4yewvfwv3zypdjmxw4p0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2F4yewvfwv3zypdjmxw4p0.png" alt="Alt Text" width="800" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every time I tried to build a node web app, I had to build the whole structure from scratch.&lt;br&gt;
After a while, I became acquainted with the new Expressjs tool, which almost does the job of a framework for Express.&lt;/p&gt;

&lt;p&gt;That tool is Express application generator.&lt;/p&gt;

&lt;p&gt;I create a minimal web app using the Express application generator, You can find the whole source on GitHub at - &lt;a href="https://github.com/ehsanghaffarii/express-mvp-postgres-db" rel="noopener noreferrer"&gt;https://github.com/ehsanghaffarii/express-mvp-postgres-db&lt;/a&gt;&lt;/p&gt;

</description>
      <category>express</category>
      <category>postgres</category>
      <category>node</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Answer: how to fetch data from this api using 'POST' method in javascript</title>
      <dc:creator>Ehsan</dc:creator>
      <pubDate>Wed, 10 Feb 2021 09:51:53 +0000</pubDate>
      <link>https://dev.to/ehsanghaffar/answer-how-to-fetch-data-from-this-api-using-post-method-in-javascript-4dhi</link>
      <guid>https://dev.to/ehsanghaffar/answer-how-to-fetch-data-from-this-api-using-post-method-in-javascript-4dhi</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/65941692/how-to-fetch-data-from-this-api-using-post-method-in-javascript/65941748#65941748" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: how to fetch data from this api using 'POST' method in javascript
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jan 28 '21&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/65941692/how-to-fetch-data-from-this-api-using-post-method-in-javascript/65941748#65941748" rel="noopener noreferrer"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          -3
        &lt;/div&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;try this&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
async function postData(url = '', data = {}) {
  const response = await fetch(url, {
    method: 'POST', // *GET, POST, PUT, DELETE, etc.
    mode: 'cors', // no-cors, *cors, same-origin
    cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
    credentials: 'same-origin', // include, *same-origin, omit
    headers: {
      'Content-Type': 'application/json'
      },&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/65941692/how-to-fetch-data-from-this-api-using-post-method-in-javascript/65941748#65941748" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;My solution to this issue was chosen as the best solution from the programmers' point of view.&lt;/p&gt;

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