<?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 &#8211; MaXEster Technologies  | Technical Blog</title>
	<atom:link href="https://www.maxester.com/blog/category/node-js/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.maxester.com/blog</link>
	<description>Tutorials, Examples and Implementation code for Developers Help</description>
	<lastBuildDate>Mon, 17 Feb 2025 09:17:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.22</generator>
	<item>
		<title>Using MongoDB with Express Js</title>
		<link>https://www.maxester.com/blog/2024/08/01/using-mongodb-with-express-js/</link>
		<comments>https://www.maxester.com/blog/2024/08/01/using-mongodb-with-express-js/#respond</comments>
		<pubDate>Thu, 01 Aug 2024 05:45:52 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Express Js]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[Node Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1308</guid>
		<description><![CDATA[<p>MongoDB is a NoSql database which is used to store a large volume of data. NoSql database not uses the tables and rows approach. In MongoDB the database is collection of documents, documents are collection of key-value pairs. Javascript developers&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/08/01/using-mongodb-with-express-js/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/08/01/using-mongodb-with-express-js/">Using MongoDB with Express Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>MongoDB is a NoSql database which is used to store a large volume of data. NoSql database not uses the tables and rows approach. In MongoDB the database is collection of documents, documents are collection of key-value pairs. Javascript developers will find it similar to a javascript object.</p>



<p>MongoDB database can perform all types of CRUD (Create, Read, Update, Delete) operations. We use a module called mongoose to connect to the MongoDB database.</p>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/connection.png" alt="" class="wp-image-1309" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/connection.png 567w, https://www.maxester.com/blog/wp-content/uploads/2023/12/connection-300x152.png 300w" sizes="(max-width: 567px) 100vw, 567px" /></figure></div>



<p>In the above code, we have connected our project to the MongoDB database. After that we have created a schema, which defines the structure of the data going to be stored. Then we have created a model and exported that to use in the other parts of the application.</p>



<p></p>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/add.png" alt="" class="wp-image-1311" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/add.png 639w, https://www.maxester.com/blog/wp-content/uploads/2023/12/add-300x164.png 300w" sizes="(max-width: 639px) 100vw, 639px" /><figcaption>Form to create the user</figcaption></figure></div>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/db.png" alt="" class="wp-image-1310" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/db.png 499w, https://www.maxester.com/blog/wp-content/uploads/2023/12/db-271x300.png 271w" sizes="(max-width: 499px) 100vw, 499px" /></figure></div>



<p></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/08/01/using-mongodb-with-express-js/">Using MongoDB with Express Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2024/08/01/using-mongodb-with-express-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Events in Node Js</title>
		<link>https://www.maxester.com/blog/2024/03/01/events-in-node-js/</link>
		<comments>https://www.maxester.com/blog/2024/03/01/events-in-node-js/#respond</comments>
		<pubDate>Fri, 01 Mar 2024 08:45:31 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Node Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1252</guid>
		<description><![CDATA[<p>Node Js is a asynchronous event-driven runtime. Node Js can perform tasks asynchronously, i.e. without waiting for a task to be executed, it can move further. Node Js has a built-in module named &#8220;events&#8221;. &#8220;events&#8221; module has EventEmitter() class. With&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/03/01/events-in-node-js/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/03/01/events-in-node-js/">Events in Node Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>Node Js is a asynchronous event-driven runtime. Node Js can perform tasks asynchronously, i.e. without waiting for a task to be executed, it can move further. Node Js has a built-in module named &#8220;events&#8221;.  &#8220;events&#8221; module has EventEmitter() class. With the instance of EventEmitter() class we can handle multiple events. Every event takes a function as a callback, whenever the event occurs, the callback function get called. Every event is a named event. The callback functions are executed in the order, in which they are registered.</p>



<p>Example :</p>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/events-1.png" alt="" class="wp-image-1253" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/events-1.png 549w, https://www.maxester.com/blog/wp-content/uploads/2023/12/events-1-300x290.png 300w" sizes="(max-width: 549px) 100vw, 549px" /><figcaption>Code to handle events</figcaption></figure></div>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/eventso.png" alt="" class="wp-image-1254"/><figcaption>Output</figcaption></figure></div>



<p>eventEmitter.on() and eventEmitter.addListener() works in similar way, but the eventEmitter.once() only executes the listener function once, after that it removes the callback function from the listener list.</p>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/events1o.png" alt="" class="wp-image-1255" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/events1o.png 443w, https://www.maxester.com/blog/wp-content/uploads/2023/12/events1o-300x225.png 300w" sizes="(max-width: 443px) 100vw, 443px" /></figure></div>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/events1.png" alt="" class="wp-image-1256"/><figcaption>Calling multiple listener functions for a single event</figcaption></figure></div>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/03/01/events-in-node-js/">Events in Node Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2024/03/01/events-in-node-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>React Js vs Angular Js</title>
		<link>https://www.maxester.com/blog/2024/02/27/react-js-vs-angular-js/</link>
		<comments>https://www.maxester.com/blog/2024/02/27/react-js-vs-angular-js/#respond</comments>
		<pubDate>Tue, 27 Feb 2024 08:10:13 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Node Js]]></category>
		<category><![CDATA[React Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1373</guid>
		<description><![CDATA[<p>React Js : React Js is a Javascript library, used to create single page web applications. React uses JSX for writing its components. JSX stands for Javascript XML. In jsx we can write HTML and JS together. As React Js&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/02/27/react-js-vs-angular-js/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/02/27/react-js-vs-angular-js/">React Js vs Angular Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<h4>React Js :</h4>



<p>React Js is a Javascript library, used to create single page web applications. React uses JSX for writing its components. JSX stands for Javascript XML. In jsx we can write HTML and JS together.</p>



<p>As React Js is a library, so for various features like routing we have to install separate packages.</p>



<h4>Angular Js :</h4>



<p>Angular Js is a Javascript framework, which can also be used to make single page web applications. Angular is Js framework, which means it has more  inbuilt  features. Angular also uses the component based approach to create websites.</p>



<h4>Difference between React Js and Angular :</h4>



<table class="wp-block-table has-fixed-layout"><tbody><tr><td><strong>React Js</strong></td><td><strong>Angular Js</strong></td></tr><tr><td>1. It is managed by Facebook.</td><td>1. It is managed by Google.</td></tr><tr><td>2. It is a Js library, which means for more features we are dependent on external packages.</td><td>2. It is a Js framework and has most commonly used features are inbuilt like routing.</td></tr><tr><td>3. It uses Javascript and JSX.</td><td>3. It uses Typescript and Html.</td></tr><tr><td>4. Manipulates the virtual DOM.</td><td>4. Manipulates the real DOM.</td></tr><tr><td>5. Learning curve is easier.</td><td>5. Learning curve is steep.</td></tr><tr><td>6. Migrating between versions is easier.</td><td>6. There are complications in migrating to a newer version.</td></tr></tbody></table>



<p></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/02/27/react-js-vs-angular-js/">React Js vs Angular Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2024/02/27/react-js-vs-angular-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NPM in Node Js</title>
		<link>https://www.maxester.com/blog/2024/02/24/npm-in-node-js/</link>
		<comments>https://www.maxester.com/blog/2024/02/24/npm-in-node-js/#respond</comments>
		<pubDate>Sat, 24 Feb 2024 08:14:39 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Node Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1246</guid>
		<description><![CDATA[<p>NPM stands for Node Package Manager. It is used to install various libraries in our project. NPM is a default package manager for Node Js. It has basically two parts: A code repository, where all the code is hosted. A&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/02/24/npm-in-node-js/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/02/24/npm-in-node-js/">NPM in Node Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>NPM stands for Node Package Manager. It is used to install various libraries in our project. NPM is a default package manager for Node Js. It has basically two parts:</p>



<ol><li>A code repository, where all the code is hosted.</li><li>A command line interface, for downloading the libraries from the online repository.</li></ol>



<h4>Installing packages using NPM</h4>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/npm.png" alt="" class="wp-image-1247"/><figcaption>The &#8211;save flag will add express in the production dependencies.</figcaption></figure></div>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/npmdev.png" alt="" class="wp-image-1248"/><figcaption>The &#8211;save-dev flag will add express in development dependencies.</figcaption></figure></div>



<h4>What is package.json file?</h4>



<p>package.json file is created when we run the npm init command. This file contains all the details of our project like name, version, author, dependencies, description, scripts, license etc.</p>



<p>It is the file which is used by NPM to download the node modules required by your project with the proper version.</p>



<h4>What is package-lock.json file?</h4>



<p>The contents of the package.json file can be changed, for example if we have updated our packages, then the package.json will contain the latest updates. But the package-lock.json file contains the exact dependencies.</p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/02/24/npm-in-node-js/">NPM in Node Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2024/02/24/npm-in-node-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>URL Module in Node Js</title>
		<link>https://www.maxester.com/blog/2024/02/09/url-module-in-node-js/</link>
		<comments>https://www.maxester.com/blog/2024/02/09/url-module-in-node-js/#respond</comments>
		<pubDate>Fri, 09 Feb 2024 08:10:15 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Node Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1238</guid>
		<description><![CDATA[<p>URL stands for Uniform Resource Locator, It is used to surf and access any website available on the internet. Every page available on the internet has a unique URL. It is the URL, which helps in identifying the web pages.&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/02/09/url-module-in-node-js/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/02/09/url-module-in-node-js/">URL Module in Node Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>URL stands for Uniform Resource Locator, It is used to surf and access any website available on the internet. Every page available on the internet has a unique URL. It is the URL, which helps in identifying the web pages.</p>



<p>Node Js has a module called url, it is used for handling and manipulating the urls. It is a inbuilt module. We can use this to get the query string, construct a url from an object.</p>



<h4>Using the URL Module</h4>



<p></p>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/urlm.png" alt="" class="wp-image-1239" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/urlm.png 487w, https://www.maxester.com/blog/wp-content/uploads/2023/12/urlm-300x170.png 300w" sizes="(max-width: 487px) 100vw, 487px" /><figcaption>.parse() method takes a url and parses it and returns a object containing different parts of url<br></figcaption></figure></div>



<p></p>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/urlo.png" alt="" class="wp-image-1240" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/urlo.png 426w, https://www.maxester.com/blog/wp-content/uploads/2023/12/urlo-300x227.png 300w" sizes="(max-width: 426px) 100vw, 426px" /><figcaption>url object</figcaption></figure></div>



<h4>Accessing the different parts of the url</h4>



<p></p>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/query.png" alt="" class="wp-image-1241" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/query.png 491w, https://www.maxester.com/blog/wp-content/uploads/2023/12/query-300x223.png 300w" sizes="(max-width: 491px) 100vw, 491px" /></figure></div>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/queryo.png" alt="" class="wp-image-1242"/></figure></div>



<h4>Constructing a url from an object</h4>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/formati.png" alt="" class="wp-image-1243" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/formati.png 439w, https://www.maxester.com/blog/wp-content/uploads/2023/12/formati-300x283.png 300w" sizes="(max-width: 439px) 100vw, 439px" /></figure></div>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/formato.png" alt="" class="wp-image-1244" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/formato.png 354w, https://www.maxester.com/blog/wp-content/uploads/2023/12/formato-300x24.png 300w" sizes="(max-width: 354px) 100vw, 354px" /></figure></div>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/02/09/url-module-in-node-js/">URL Module in Node Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2024/02/09/url-module-in-node-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP Module in Node Js</title>
		<link>https://www.maxester.com/blog/2024/01/17/http-module-in-node-js/</link>
		<comments>https://www.maxester.com/blog/2024/01/17/http-module-in-node-js/#respond</comments>
		<pubDate>Wed, 17 Jan 2024 07:26:57 +0000</pubDate>
		<dc:creator><![CDATA[Mayank Jha]]></dc:creator>
				<category><![CDATA[Node Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1232</guid>
		<description><![CDATA[<p>HTTP is a module in Node Js. It is installed on our system along with the installation of Node Js. It is basically used to work with HTTP protocol. We can create servers with HTTP and can make the server&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/01/17/http-module-in-node-js/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/01/17/http-module-in-node-js/">HTTP Module in Node Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>HTTP is a module in Node Js. It is installed on our system along with the installation of Node Js. It is basically used to work with HTTP protocol. We can create servers with HTTP and can make the server to listed on the port defined. HTTP module can handle almost all types of HTTP methods like get, post, delete, put, patch etc.</p>



<p>To use it in our projects, we first have to import it.</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/in-Copy.png" alt="" class="wp-image-1233"/></figure>



<h4>Creating a server</h4>



<p>Using HTTP module we can create a server and make that server listen on the specified port. We can do this using the createServer() method of the HTTP module.</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/in-2.png" alt="" class="wp-image-1234" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/in-2.png 418w, https://www.maxester.com/blog/wp-content/uploads/2023/12/in-2-300x118.png 300w" sizes="(max-width: 418px) 100vw, 418px" /></figure>



<h4>Rendering HTML using HTTP module</h4>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/html.png" alt="" class="wp-image-1235" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/html.png 473w, https://www.maxester.com/blog/wp-content/uploads/2023/12/html-300x230.png 300w" sizes="(max-width: 473px) 100vw, 473px" /></figure>



<h4>Reading the url and sending the Header field</h4>



<p></p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/url-1.png" alt="" class="wp-image-1237" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/url-1.png 513w, https://www.maxester.com/blog/wp-content/uploads/2023/12/url-1-300x232.png 300w" sizes="(max-width: 513px) 100vw, 513px" /></figure>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/01/17/http-module-in-node-js/">HTTP Module in Node Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2024/01/17/http-module-in-node-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modules in Node Js</title>
		<link>https://www.maxester.com/blog/2024/01/08/modules-in-node-js/</link>
		<comments>https://www.maxester.com/blog/2024/01/08/modules-in-node-js/#respond</comments>
		<pubDate>Mon, 08 Jan 2024 09:11:01 +0000</pubDate>
		<dc:creator><![CDATA[Mayank Jha]]></dc:creator>
				<category><![CDATA[Node Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1226</guid>
		<description><![CDATA[<p>Modules in Node Js are collection of files containing various logic. Modules help to organize the code. The code can be used anywhere by using the modules, which results in the reusability of the code. Modules in Node Js are&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/01/08/modules-in-node-js/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/01/08/modules-in-node-js/">Modules in Node Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>Modules in Node Js are collection of files containing various logic. Modules help to organize the code. The code can be used anywhere by using the modules, which results in the reusability of the code.</p>



<p>Modules in Node Js are similar to the libraries in JS. Modules help to breakdown the complex logic into a collection of simple ones.</p>



<h3>Types of Modules</h3>



<p>Core/Inbuilt Modules : We don&#8217;t have to download these modules, they are installed along with the Node Js installation. We can use core modules by just importing them in our code. Some examples of the core modules are http, fs, os, path etc.</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/in-1.png" alt="" class="wp-image-1227" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/in-1.png 418w, https://www.maxester.com/blog/wp-content/uploads/2023/12/in-1-300x118.png 300w" sizes="(max-width: 418px) 100vw, 418px" /></figure>



<p></p>



<p>Third Party Modules : These modules are not included with the Node Js. We have to download them in our project. Most of the packages we use are available on npm. NPM stands for Node Package Manager, npm is a code repository, where you can find almost all types of modules.</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/ex.png" alt="" class="wp-image-1228" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/ex.png 338w, https://www.maxester.com/blog/wp-content/uploads/2023/12/ex-300x177.png 300w" sizes="(max-width: 338px) 100vw, 338px" /></figure>



<p>Local Modules : Local modules are created by ourselves according to the need and can be used at the place where it is required.</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/m1.png" alt="" class="wp-image-1229"/><figcaption>Module</figcaption></figure>



<p></p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/m.png" alt="" class="wp-image-1230" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/m.png 434w, https://www.maxester.com/blog/wp-content/uploads/2023/12/m-300x104.png 300w" sizes="(max-width: 434px) 100vw, 434px" /><figcaption>Using the module</figcaption></figure>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/01/08/modules-in-node-js/">Modules in Node Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2024/01/08/modules-in-node-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is Node Js?</title>
		<link>https://www.maxester.com/blog/2024/01/03/wha-is-node-js/</link>
		<comments>https://www.maxester.com/blog/2024/01/03/wha-is-node-js/#respond</comments>
		<pubDate>Wed, 03 Jan 2024 08:51:24 +0000</pubDate>
		<dc:creator><![CDATA[Mayank Jha]]></dc:creator>
				<category><![CDATA[Node Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1221</guid>
		<description><![CDATA[<p>Node Js is a Javascript runtime environment, which is used to create servers. In simple words it is used to JS outside the web browser. It is built with the help of Google Chrome&#8217;s V8 engine. Node Js is used&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/01/03/wha-is-node-js/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/01/03/wha-is-node-js/">What is Node Js?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>Node Js is a Javascript runtime environment, which is used to create servers. In simple words it is used to JS outside the web browser. It is built with the help of Google Chrome&#8217;s V8 engine.</p>



<p>Node Js is used to create data-intensive web applications or APIs as it uses the asynchronous methodology.</p>



<h3>Why should we use Node JS?</h3>



<ol><li>First of all, Node Js is based on JS, so you will definitely use JS for the frontend of your web applications. Using Node Js on the backend will help you to use the same JS on the backend as well (with some changes), so you don&#8217;t have to learn a different language for the backend.</li><li>Node JS can easily handle the basic CRUD (Create Read Update Delete) operations on the web apps.</li><li>We can send back dynamic content to the client and can also handle form submissions.</li><li>Node Js supports all the HTTP methods like get, post, put, patch, delete and the list goes on.</li><li>Using Node Js, you can also implement the authentication  and authorization on your web apps.</li><li>As Node Js is based on asynchronous methodology, its asynchronous nature eventually results in the better performance.</li><li>You can connect Node Js to various databases like MySql, MongoDB etc.</li></ol>



<h3>Creating a basic server using Node JS</h3>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/in.png" alt="" class="wp-image-1222" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/in.png 418w, https://www.maxester.com/blog/wp-content/uploads/2023/12/in-300x118.png 300w" sizes="(max-width: 418px) 100vw, 418px" /><figcaption>Code to create the server<br></figcaption></figure>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/ino.png" alt="" class="wp-image-1223"/><figcaption>Output</figcaption></figure>



<p></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/01/03/wha-is-node-js/">What is Node Js?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2024/01/03/wha-is-node-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install Node Js in Windows</title>
		<link>https://www.maxester.com/blog/2023/01/21/how-to-install-node-js-in-windows/</link>
		<comments>https://www.maxester.com/blog/2023/01/21/how-to-install-node-js-in-windows/#respond</comments>
		<pubDate>Sat, 21 Jan 2023 00:01:42 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Node Js]]></category>
		<category><![CDATA[How to install node Js]]></category>
		<category><![CDATA[Install Node Js]]></category>
		<category><![CDATA[Node JS]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1109</guid>
		<description><![CDATA[<p>Follow the below steps for installation node Js in Windows First Download the .msi file from below website and install by doing next and install. https://nodejs.org/en/download/ When Install please open your command prompt window Short wayWindow + rIts comes up&#8230;</p>
<p><a href="https://www.maxester.com/blog/2023/01/21/how-to-install-node-js-in-windows/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2023/01/21/how-to-install-node-js-in-windows/">How to Install Node Js in Windows</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>Follow the below steps for installation node Js in Windows<br><br>First Download the  .msi file from below website and install by doing next and install.<br><br></p>



<p><a href="https://nodejs.org/en/download/">https://nodejs.org/en/download/</a></p>



<p>When Install please open your command prompt window <br>Short way<br>Window + r<br>Its comes up with this Run Box and put cmd in the box</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester4.png" alt="" class="wp-image-1111" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester4.png 482w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester4-300x176.png 300w" sizes="(max-width: 482px) 100vw, 482px" /></figure>



<p>After click OK it will open the command prompt and run below command<br><br>node -v</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester5.png" alt="" class="wp-image-1112" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester5.png 557w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester5-300x252.png 300w" sizes="(max-width: 557px) 100vw, 557px" /></figure>



<p>This command shows node Js running version.<br>If this not come and show error node is not an external or internal command<br>Please follow the below steps<br>1. Right click on My Computer / This PC and select properties  below screen will come</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester6-1024x585.png" alt="" class="wp-image-1113" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester6-1024x585.png 1024w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester6-300x172.png 300w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester6-768x439.png 768w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester6.png 1261w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Click on Advance system settings and after that below screen comes</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester7.png" alt="" class="wp-image-1114" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester7.png 572w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester7-294x300.png 294w" sizes="(max-width: 572px) 100vw, 572px" /></figure>



<p>Click on Environment Variables and below screen come</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester8.png" alt="" class="wp-image-1115" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester8.png 667w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester8-300x181.png 300w" sizes="(max-width: 667px) 100vw, 667px" /></figure>



<p>Double click on path in system variables or select path and click Edit button. Below screen will come.</p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester9.png" alt="" class="wp-image-1116" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester9.png 595w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester9-266x300.png 266w" sizes="(max-width: 595px) 100vw, 595px" /></figure>



<p>Please check nodejs is there or not If not then click on New button and add the nodejs folder path and click Ok and then again open the command Prompt and run the node command mention above.<br> </p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2023/01/21/how-to-install-node-js-in-windows/">How to Install Node Js in Windows</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2023/01/21/how-to-install-node-js-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is Node Js</title>
		<link>https://www.maxester.com/blog/2023/01/20/what-is-node-js/</link>
		<comments>https://www.maxester.com/blog/2023/01/20/what-is-node-js/#respond</comments>
		<pubDate>Fri, 20 Jan 2023 08:34:45 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Node Js]]></category>
		<category><![CDATA[Learn node Js]]></category>
		<category><![CDATA[Node JS]]></category>
		<category><![CDATA[What is Node Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1103</guid>
		<description><![CDATA[<p>Node.js is a JavaScript-based platform built on Google Chrome&#8217;s JavaScript V8 Engine. Node.js allows us to run JavaScript on the server. Create a file name app.js and paste below code like below screenshot After this run below commandnode app screenshot&#8230;</p>
<p><a href="https://www.maxester.com/blog/2023/01/20/what-is-node-js/" class="btn-more">Read More<span class="arrow-more">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2023/01/20/what-is-node-js/">What is Node Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>Node.js
is a JavaScript-based platform built on Google Chrome&#8217;s JavaScript V8 Engine.
Node.js allows us to run JavaScript on the server. </p>



<p>Create a file name app.js and paste below code like below screenshot</p>



<pre class="wp-block-code"><code>var http = require('http');

http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello Maxester!');
}).listen(8000);</code></pre>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester1-1024x443.png" alt="" class="wp-image-1104" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester1-1024x443.png 1024w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester1-300x130.png 300w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester1-768x332.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>After this run below command<br>node app<br><br>screenshot below </p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester2-1024x483.png" alt="" class="wp-image-1105" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester2-1024x483.png 1024w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester2-300x141.png 300w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester2-768x362.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>After run above command open you browser and run the below URL<br><br>http://localhost:8000/<br><br>Output come like this </p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester3-1-1024x472.png" alt="" class="wp-image-1107" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester3-1-1024x472.png 1024w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester3-1-300x138.png 300w, https://www.maxester.com/blog/wp-content/uploads/2023/01/maxester3-1-768x354.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>If  this comes then your node js sample code working fine on your system.<br>If you still face issue please cross check with the installation of Node Js on your system.</p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2023/01/20/what-is-node-js/">What is Node Js</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.maxester.com/blog/2023/01/20/what-is-node-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
