<?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>Maxester &#8211; MaXEster Technologies  | Technical Blog</title>
	<atom:link href="https://www.maxester.com/blog/author/admin/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 Components as Templates in React JS</title>
		<link>https://www.maxester.com/blog/2025/02/17/using-components-as-templates-in-react-js/</link>
		<comments>https://www.maxester.com/blog/2025/02/17/using-components-as-templates-in-react-js/#respond</comments>
		<pubDate>Mon, 17 Feb 2025 09:17:46 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[React Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1357</guid>
		<description><![CDATA[<p>By using components as templates we can save our time developing a same UI or functionality multiple times. By placing the part of UI, which is similar for all the elements in one separate component and then enclosing all the&#8230;</p>
<p><a href="https://www.maxester.com/blog/2025/02/17/using-components-as-templates-in-react-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/2025/02/17/using-components-as-templates-in-react-js/">Using Components as Templates in React 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>By using components as templates we can save our time developing a same UI or functionality multiple times. By placing the part of UI, which is similar for all the elements in one separate component and then enclosing all the components which will use the logic inside the opening and closing tag.</p>



<p>We can get the elements inside the opening and closing tag of a component using props.children property.</p>



<p></p>



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



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



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



<p></p>



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



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



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



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/t1.png" alt="" class="wp-image-1363" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/t1.png 550w, https://www.maxester.com/blog/wp-content/uploads/2023/12/t1-300x98.png 300w" sizes="(max-width: 550px) 100vw, 550px" /></figure>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2025/02/17/using-components-as-templates-in-react-js/">Using Components as Templates in React 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/2025/02/17/using-components-as-templates-in-react-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Horizontal and Vertical Scaling In React JS</title>
		<link>https://www.maxester.com/blog/2025/01/08/horizontal-and-vertical-scaling-in-react-js/</link>
		<comments>https://www.maxester.com/blog/2025/01/08/horizontal-and-vertical-scaling-in-react-js/#respond</comments>
		<pubDate>Wed, 08 Jan 2025 09:42:43 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[React Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1342</guid>
		<description><![CDATA[<p>Horizontal Scaling Horizontal scaling is also known as scaling out. Horizontal scaling refers to the process of adding more machines to handle the huge incoming traffic. Horizontal scaling helps in parallel processing. It is like if we want to finish&#8230;</p>
<p><a href="https://www.maxester.com/blog/2025/01/08/horizontal-and-vertical-scaling-in-react-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/2025/01/08/horizontal-and-vertical-scaling-in-react-js/">Horizontal and Vertical Scaling In React 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>Horizontal Scaling</h4>



<ol><li>Horizontal scaling is also known as scaling out.</li><li>Horizontal scaling refers to the process of adding more machines to handle the huge incoming traffic.</li><li>Horizontal scaling helps in parallel processing.</li><li>It is like if we want to finish a work early, then we have to increase the manpower.</li></ol>



<h4>Vertical Scaling</h4>



<ol><li>Vertical scaling is also known as scaling up.</li><li>Vertical scaling means increasing the power of a machine in the form of RAM, Memory, Processort or Bandwidth.</li><li>Vertical scaling is used to perform resource intensive tasks.</li><li>Vertical scaling is like hiring a more skilled employee to complete the work.</li></ol>



<h4 style="text-align:left">Difference between Horizontal and Vertical Scaling</h4>



<table class="wp-block-table has-fixed-layout"><tbody><tr><td><strong>Horizontal Scaling</strong></td><td><strong>Vertical Scaling</strong></td></tr><tr><td>1. It is also known as scaling out.</td><td>1. It is also known as scaling up.</td></tr><tr><td>2. Here we add more machines to our resource pool.</td><td>1. Here we upgrade our old machine with more RAM, Powerful Processor etc.</td></tr><tr><td>3. No single point of failure.</td><td>3. Single point of failure.</td></tr><tr><td>4. It is more costlier to maintain a no. of resources.</td><td>4. It is cheaper than horizontal scaling, as here we only have to maintain a single system.<br></td></tr><tr><td>5. Difficult to implement.</td><td>5. Easier to implement.</td></tr></tbody></table>



<h2></h2>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2025/01/08/horizontal-and-vertical-scaling-in-react-js/">Horizontal and Vertical Scaling In React 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/2025/01/08/horizontal-and-vertical-scaling-in-react-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is Load Balancing?</title>
		<link>https://www.maxester.com/blog/2024/12/02/what-is-load-balancing/</link>
		<comments>https://www.maxester.com/blog/2024/12/02/what-is-load-balancing/#respond</comments>
		<pubDate>Mon, 02 Dec 2024 05:32:35 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[AWS]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1340</guid>
		<description><![CDATA[<p>Load balancing is a concept that is used to increase the performance and uptime of the web servers. In load balancing, the network traffic is equally distributed to a group of servers, so that any one server would not get&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/12/02/what-is-load-balancing/" 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/12/02/what-is-load-balancing/">What is Load Balancing?</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>Load balancing is a concept that is used to increase the performance and uptime of the web servers. In load balancing, the network traffic is equally distributed to a group of servers, so that any one server would not get overloaded. A load balancer is a device that sits between the server and the user.</p>



<h4>Why is Load Balancing necessary?</h4>



<ol><li>Scalability: Load balancers help in scaling the website. Load balancers intelligently manage a huge amount of incoming traffic and distribute the traffic into multiple servers.</li><li>Availability : There may be situations, when any one or group servers are down due to maintenance or other issues, in that case load balancer will redirect the network traffic to the servers which are running.</li><li>Performance :Load balancers improve the performance of the site, they distribute the traffic in such a way, that no server gets overloaded resulting in slow response or server crash.</li></ol>



<h4>Load Balancing Algorithms</h4>



<ol><li>Static Load Balancing: This algorithm follows a fixed rule to distribute the traffic across the servers. This doesn&#8217;t examine the server&#8217;s current state.</li><li>Dynamic Load Balancing: This is a flexible algorithm, that distributes the traffic according to the servers&#8217;s current state like load on the server.</li></ol>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/12/02/what-is-load-balancing/">What is Load Balancing?</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/12/02/what-is-load-balancing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>req and res objects in Express Js</title>
		<link>https://www.maxester.com/blog/2024/11/06/req-and-res-objects-in-express-js/</link>
		<comments>https://www.maxester.com/blog/2024/11/06/req-and-res-objects-in-express-js/#respond</comments>
		<pubDate>Wed, 06 Nov 2024 07:21:03 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Express Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1330</guid>
		<description><![CDATA[<p>You must have seen the req and res object passed to the callback functions in Express Js. You may have wondered, what are these parameters. req object : req object is passed to any route handler function or in middlewares.&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/11/06/req-and-res-objects-in-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/11/06/req-and-res-objects-in-express-js/">req and res objects in 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>You must have seen the req and res object passed to the callback functions in Express Js. You may have wondered, what are these parameters.</p>



<h4>req object :</h4>



<p>req object is passed to any route handler function or in middlewares. It is the object which contains the details sent by the client. </p>



<p>It contains the informations like the headers, url details including pathname, query, port, href, protocol , cookies, any type of form data in string or json format and so on.</p>



<h4>res object :</h4>



<p>res object is passed by the server to the client. It has various fields like headers, the status code, the page data which the user has asked for, details regarding http protocol etc.</p>



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



<p></p>



<h4>next() :</h4>



<p>Another parameter which is generally passed to a middleware function is &#8220;next&#8221;. next is a reference to the next middleware or route handler function in event loop. If we don&#8217;t call next at the end of middleware execution the request will be kept hanging and the user will just see the page loading.</p>



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



<p></p>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/rr.png" alt="" class="wp-image-1333" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/rr.png 423w, https://www.maxester.com/blog/wp-content/uploads/2023/12/rr-300x230.png 300w" sizes="(max-width: 423px) 100vw, 423px" /></figure></div>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/11/06/req-and-res-objects-in-express-js/">req and res objects in 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/11/06/req-and-res-objects-in-express-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between Sessions and Cookies</title>
		<link>https://www.maxester.com/blog/2024/09/24/difference-between-sessions-and-cookies/</link>
		<comments>https://www.maxester.com/blog/2024/09/24/difference-between-sessions-and-cookies/#respond</comments>
		<pubDate>Tue, 24 Sep 2024 13:06:58 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Express Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1326</guid>
		<description><![CDATA[<p>Sessions Session starts when you request the server for the first time and it remains till you close that site. The amount of time you have spent on the site is called a session. As sessions get deleted when the&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/09/24/difference-between-sessions-and-cookies/" 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/09/24/difference-between-sessions-and-cookies/">Difference between Sessions and Cookies</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<h4>Sessions</h4>



<p>Session starts when you request the server for the first time and it remains till you close that site. The amount of time you have spent on the site is called a session. As sessions get deleted when the connection to the client and server gets closed, so we have to store the session data somewhere to reuse them again in future.</p>



<h4>Cookies</h4>



<p>Cookies are the information stored on the client&#8217;s browser by the server. It helps in tracking the user and for various personalized recommendations.</p>



<p></p>



<h4>Difference between Sessions and Cookies</h4>



<p></p>



<div class="wp-block-columns has-2-columns">
<div class="wp-block-column">
<p style="text-align:center"><strong>Sessions</strong></p>



<ol><li>Sessions are the data stored on the server side.</li><li>The amount of data we can store on server is very large.</li><li>Sessions are a secure way to store the data as it can&#8217;t be read by anyone.</li><li>Sessions can be deleted whenever required.</li><li>Sessions are used to store confidential informations.</li></ol>



<p></p>
</div>



<div class="wp-block-column">
<p style="text-align:center"><strong>Cookies</strong></p>



<ol><li>Cookies are the data stored on the client&#8217;s browser.</li><li>Maximum size of cookies can be 4 KB.</li><li>Cookies are not secured, as they can be read by anyone.</li><li>Cookies can be deleted whenever required. We can also set expiration period  of cookies, after that period the cookies will get deleted.</li><li>Cookies must not be used for storing confidential informations as it can be read by anyone.</li></ol>
</div>
</div>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/09/24/difference-between-sessions-and-cookies/">Difference between Sessions and Cookies</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/09/24/difference-between-sessions-and-cookies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sessions in Express Js</title>
		<link>https://www.maxester.com/blog/2024/08/28/sessions-in-express-js/</link>
		<comments>https://www.maxester.com/blog/2024/08/28/sessions-in-express-js/#respond</comments>
		<pubDate>Wed, 28 Aug 2024 05:23:57 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Express Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1317</guid>
		<description><![CDATA[<p>As we know HTTP is a stateless protocol, i.e it doesn&#8217;t stores any data. There are many cases where we have to store the user data to keep track of the user, here comes the use of sessions. When the&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/08/28/sessions-in-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/28/sessions-in-express-js/">Sessions in 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>As we know HTTP is a stateless protocol, i.e it doesn&#8217;t stores any data. There are many cases where we have to store the user data to keep track of the user, here comes the use of sessions. When the client requests a server for any piece of data for the first time, the server creates a session for that user.</p>



<h4>How to implement sessions in Express Js</h4>



<p>First of all, install the necessary packages using the command given below :</p>



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



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



<p></p>



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



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



<p></p>



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



<p>Everytime the page you will refresh the views increase unless the server is restarted.</p>



<p><strong>Note:&nbsp;</strong>&nbsp;The&nbsp;above&nbsp;code&nbsp;is&nbsp;just&nbsp;for&nbsp;understanding&nbsp;the&nbsp;sessions,&nbsp;in&nbsp;production&nbsp;level&nbsp;applications&nbsp;you&nbsp;need&nbsp;to&nbsp;be&nbsp;careful&nbsp;while&nbsp;using&nbsp;sessions&nbsp;and&nbsp;cookies.</p>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/08/28/sessions-in-express-js/">Sessions in 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/28/sessions-in-express-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advantages and Disadvantages of Express Js</title>
		<link>https://www.maxester.com/blog/2024/08/23/advantages-and-disadvantages-of-express-js/</link>
		<comments>https://www.maxester.com/blog/2024/08/23/advantages-and-disadvantages-of-express-js/#respond</comments>
		<pubDate>Fri, 23 Aug 2024 05:43:35 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Express Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1315</guid>
		<description><![CDATA[<p>Express Js is a web framework used for creating server side code in Node Js. It is a lightweight framework, which offers almost all the necessary and basic features like routing and middlewares out of the box. Nowadays, the number&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/08/23/advantages-and-disadvantages-of-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/23/advantages-and-disadvantages-of-express-js/">Advantages and Disadvantages of 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>Express Js is a web framework used for creating server side code in Node Js. It is a lightweight framework, which offers almost all the necessary and basic features like routing and middlewares out of the box. Nowadays, the number of organizations using Express Js is increasing rapidly.</p>



<h4>Advantages of using Express Js</h4>



<ol><li>Lightweight : It is a lightweight framework of Node Js for creating web servers. As it is based on Node Js, it offers all the features of Node Js with less coding.</li><li>Time saving : It is developed to reduce the development time which generally takes, when we create applications in Node Js. Express Js provides many features of Node Js in less lines of code. There are many tasks, which in Node Js we have to do manually, but here in Express Js, we have various inbuilt functions available for that.</li><li>Huge Library : Another feature of Express Js is the availability of libraries. As the community of Express Js is large, everyday new packages are getting developed.</li><li>Realtime applications : Express Js is used heavily in realtime applications. It is best suited for realtime user interaction systems, due its non-blocking asynchronous event-driven model.</li><li>Learning curve : As it is based on JS, it becomes easier for developers knowing JS to learn Express Js. Another benefit is that we can develop the whole application (frontend and backend) using a single language.</li></ol>



<h4>Disadvantages of Express Js</h4>



<ol><li>Callback hell: For new developers, it becomes hard to grasp the asynchronous nature of JS. They find it difficult to manage the callbacks. Callback hell is a condition, where we have multiple callbacks nested inside each other and every callback waits for another callback. Eventually resulting a non readable and difficult to maintain code.</li><li>Less features: As it is a lightweight framework, many of the features are not available out of the box and we have to install multiple packages to get those features.</li><li>Lack of strong typing: Express Js doesn&#8217;t have strong type checking while compilation, which results in complex bugs.</li><li>Error handling: Although Express Js has excellent error handling capabilities, but sometimes it becomes hard for new developers to handle errors with the code containing multiple callbacks and promises.</li></ol>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/08/23/advantages-and-disadvantages-of-express-js/">Advantages and Disadvantages of 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/23/advantages-and-disadvantages-of-express-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Express Js  Scaffolding</title>
		<link>https://www.maxester.com/blog/2024/07/15/express-js-scaffolding/</link>
		<comments>https://www.maxester.com/blog/2024/07/15/express-js-scaffolding/#respond</comments>
		<pubDate>Mon, 15 Jul 2024 05:36:36 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Express Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1302</guid>
		<description><![CDATA[<p>Scaffolding is the process of creating the skeleton of the project. In simple terms, the arrangement of different types of files in various folders. For example, managing all the CSS files, js files that we want to be public, in&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/07/15/express-js-scaffolding/" 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/07/15/express-js-scaffolding/">Express Js  Scaffolding</a> appeared first on <a rel="nofollow" href="https://www.maxester.com/blog">MaXEster Technologies  | Technical Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[
<p>Scaffolding is the process of creating the skeleton of the project. In simple terms, the arrangement of different types of files in various folders. For example, managing all the CSS files, js files that we want to be public, in the public folder, different routes in the routes folder, and images in a separate folder.</p>



<p>Scaffolder is the tool used to automate this task. A popular scaffolder for Express Js is an express-generator.</p>



<p>To use the express-generator, run the following command :</p>



<p></p>



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



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/s2.png" alt="" class="wp-image-1304" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/s2.png 204w, https://www.maxester.com/blog/wp-content/uploads/2023/12/s2-132x300.png 132w" sizes="(max-width: 204px) 100vw, 204px" /><figcaption>The folder structure of the project was created using express-generator</figcaption></figure></div>



<h4>Folder Structure </h4>



<ol><li>Routes: This folder contains various routes of the application, divided in different files.</li><li>Public: This folder contains the files we want to be public like images and CSS files.</li><li>Views: Views folder contains different templating files that we want to serve.</li><li>app.js: This is the place where all the code is managed. It handles all the other files.</li></ol>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/07/15/express-js-scaffolding/">Express Js  Scaffolding</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/07/15/express-js-scaffolding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Templating in Express Js</title>
		<link>https://www.maxester.com/blog/2024/07/04/templating-in-express-js/</link>
		<comments>https://www.maxester.com/blog/2024/07/04/templating-in-express-js/#respond</comments>
		<pubDate>Thu, 04 Jul 2024 10:56:48 +0000</pubDate>
		<dc:creator><![CDATA[Maxester]]></dc:creator>
				<category><![CDATA[Express Js]]></category>

		<guid isPermaLink="false">https://www.maxester.com/blog/?p=1289</guid>
		<description><![CDATA[<p>Templating helps in converting the content of the static html page to dynamic. By using templating engines we can replace the values in html document with the actual data values. For example, if we want to show the employees and&#8230;</p>
<p><a href="https://www.maxester.com/blog/2024/07/04/templating-in-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/07/04/templating-in-express-js/">Templating in 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>Templating helps in converting the content of the static html page to dynamic. By using templating engines we can replace the values in html document with the actual data values. For example, if we want to show the employees and their details then we can render the html page with this data using the templating in Express Js.</p>



<p>There are various templating engines available in Express Js like ejs, pug, etc. All the templating engines have their own syntax. In this article we will discuss about ejs.</p>



<h3>Templating in Express Js using EJS</h3>



<p>EJS stands for Embedded Javasript Templating. EJS is used to produce the final HTML document after adding the dynamic content from database or after some calculations. We can also write javascript inside HTML pages using react. We can use almost all the necessary things like conditional statements, loops, etc.</p>



<h4>Setting up the EJS and using it in the Express Js project</h4>



<p>First we have to install it in our project, using the command :</p>



<p style="text-align:center"><strong>npm i &#8211;save ejs</strong></p>



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



<p></p>



<figure class="wp-block-image"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/indexejs.png" alt="" class="wp-image-1293" srcset="https://www.maxester.com/blog/wp-content/uploads/2023/12/indexejs.png 695w, https://www.maxester.com/blog/wp-content/uploads/2023/12/indexejs-300x110.png 300w" sizes="(max-width: 695px) 100vw, 695px" /><figcaption>indes.ejs</figcaption></figure>



<p></p>



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



<p>For using EJS inside our HTML pages, we have to save the HTML files using the .ejs extension.</p>



<h4>Using loops in EJS</h4>



<p></p>



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



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



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



<h4>Using conditional statements in EJS</h4>



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



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



<p></p>



<div class="wp-block-image"><figure class="aligncenter"><img src="https://www.maxester.com/blog/wp-content/uploads/2023/12/indexejso-1.png" alt="" class="wp-image-1300"/></figure></div>
<p>The post <a rel="nofollow" href="https://www.maxester.com/blog/2024/07/04/templating-in-express-js/">Templating in 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/07/04/templating-in-express-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
