<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>node js Archives - Codeplaners</title>
	<atom:link href="https://codeplaners.com/tag/node-js/feed/" rel="self" type="application/rss+xml" />
	<link>https://codeplaners.com/tag/node-js/</link>
	<description>Code Solution</description>
	<lastBuildDate>Mon, 17 May 2021 23:53:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>

<image>
	<url>https://codeplaners.com/wp-content/uploads/2020/09/cropped-favicon-social-32x32.png</url>
	<title>node js Archives - Codeplaners</title>
	<link>https://codeplaners.com/tag/node-js/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Create .env File in Node JS</title>
		<link>https://codeplaners.com/how-to-create-env-file-in-node-js/</link>
					<comments>https://codeplaners.com/how-to-create-env-file-in-node-js/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 17 May 2021 23:53:24 +0000</pubDate>
				<category><![CDATA[Node Js]]></category>
		<category><![CDATA[node js]]></category>
		<guid isPermaLink="false">https://codeplaners.com/?p=717</guid>

					<description><![CDATA[<p>Hello, Today, i we will show you How to Create .env File in Node JS. This article will give you simple example of How to Create .env File in Node JS. you will learn How to Create .env File in Node JS. So let&#8217;s follow few step to create example of How to Create .env &#8230; <a href="https://codeplaners.com/how-to-create-env-file-in-node-js/" class="more-link">Continue reading<span class="screen-reader-text"> "How to Create .env File in Node JS"</span></a></p>
<p>The post <a rel="nofollow" href="https://codeplaners.com/how-to-create-env-file-in-node-js/">How to Create .env File in Node JS</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hello,</p>
<p>Today, i we will show you How to Create .env File in Node JS. This article will give you simple example of How to Create .env File in Node JS. you will learn How to Create .env File in Node JS. So let&#8217;s follow few step to create example of How to Create .env File in Node JS.</p>
<p>In this easy instance we will build .env file for environment configuration variable like port, app name, database configuration etc. we will use dotenv npm package for setup .env file variable.</p>
<p>Let&#8217;s see simple instance bottom.</p>
<h3>Step 1:- Create Node App</h3>
<pre class="brush: jscript; title: ; notranslate">
mkdir my-request-app
cd my-request-app
</pre>
<pre class="brush: jscript; title: ; notranslate">
npm init
</pre>
<h3>Step 2:- Install dotenv</h3>
<pre class="brush: jscript; title: ; notranslate">
npm install dotenv
</pre>
<h3>Step 3:- Create File: server.js</h3>
<pre class="brush: jscript; title: ; notranslate">
const dotenv = require('dotenv');
  
dotenv.config();
  
console.log(`Your App Name is ${process.env.APP_NAME}`);
console.log(`Your App Environment is ${process.env.APP_ENV}`);
console.log(`Your App Port is ${process.env.APP_PORT}`);
</pre>
<h3>Step 4:- Run App</h3>
<pre class="brush: jscript; title: ; notranslate">
node server.js
</pre>
<p>The post <a rel="nofollow" href="https://codeplaners.com/how-to-create-env-file-in-node-js/">How to Create .env File in Node JS</a> appeared first on <a rel="nofollow" href="https://codeplaners.com">Codeplaners</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://codeplaners.com/how-to-create-env-file-in-node-js/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
