<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by MajgaonkarDhanashri on Medium]]></title>
        <description><![CDATA[Stories by MajgaonkarDhanashri on Medium]]></description>
        <link>https://medium.com/@dhanashrimajgaonkar?source=rss-40c4fa2c03c2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6D91xZkOysO9iLYp8BxZ2w.jpeg</url>
            <title>Stories by MajgaonkarDhanashri on Medium</title>
            <link>https://medium.com/@dhanashrimajgaonkar?source=rss-40c4fa2c03c2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 22:22:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dhanashrimajgaonkar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Triggers in SQL]]></title>
            <link>https://medium.com/@dhanashrimajgaonkar/triggers-in-sql-4a84a62374da?source=rss-40c4fa2c03c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a84a62374da</guid>
            <dc:creator><![CDATA[MajgaonkarDhanashri]]></dc:creator>
            <pubDate>Mon, 22 Nov 2021 05:47:05 GMT</pubDate>
            <atom:updated>2021-11-22T17:58:59.624Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello readers…!! In this article we are going to learn about triggers in SQL.</p><p>Triggers are small piece of logics which can be executed when events like insert, update, delete happens.</p><p>A trigger is a special type of stored procedure that triggered when an events occur in the database. For example, a trigger can be invoked when a row is inserted, deleted or updated into a specified table or when certain table columns are updated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*relUkDxfvdk6kQt2EocqGw.png" /></figure><p>There are two types of triggers-</p><ol><li><strong>After trigger -</strong>This type of trigger fires or executes after SQL Server finishes the execution of action successfully that fired it.</li><li><strong>Instead OF trigge</strong>r -This type of trigger fires or executes instead of the execution of the action<em>.</em></li></ol><p>For example - There are two tables name ‘<strong>tblPerson</strong>’ and ‘ <strong>tblAudit</strong>’, We want some data should be inserted in the tblAudit also. So in this case we will use a trigger to track data of ‘tblPerson’ in ‘ tblAudit’ after insertion, updation or deletion obb table ‘ tblPerson’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*zyUTysvYEH3QG2ri8c6CHA.png" /><figcaption>tblPerson</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*7fQso8fjLFFoSS8Xl5W5rA.png" /><figcaption>tblAudit</figcaption></figure><p>To achieve our goal, this would be implemented as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iWFINMtbh2G6SccQX6Z6TA.png" /><figcaption>After Trigger</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*9O54VnzIUKtj8dwIvwvQJQ.png" /><figcaption>tblPerson after insertion, updation, deletion</figcaption></figure><p>Do insert, update or delete on above table and check data in table tblAudit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*3HHUJSFdH-AQyS8Bhl0Bng.png" /><figcaption>tblAudit after insertion, updation, deletion</figcaption></figure><p>So you can see that when we do insert, update or delete the table tblPerson data is track into table tblAudit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*RiOuwn2IPo6T8VWEXd3kUQ.png" /><figcaption>Instead Of Trigger</figcaption></figure><p>To achieve<strong> instead of trigger</strong> do insert, update or delete on table tblPerson and check data in table tblAudit. So basically instead of trigger it will not do current operation istead of it will fire insert operation on table tblAudit.</p><p>We use a instead of trigger for data validation. You would create an instead of trigger to validate the incoming values, and then if they validate, insert them into the table.</p><p>We can say that triggers are helps to maintain the data integrity of the database.</p><p>Thank You For reading !!</p><p>Please go through below video👇 to get more information and be prepared for interviews.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FSEdAF8mSKS4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSEdAF8mSKS4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FSEdAF8mSKS4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3bbb3a5045fa08c002e34a626a772741/href">https://medium.com/media/3bbb3a5045fa08c002e34a626a772741/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a84a62374da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create Model View and Controller(MVC) in Asp.Net ?]]></title>
            <link>https://medium.com/@dhanashrimajgaonkar/how-to-create-model-view-and-controller-mvc-in-asp-net-38cc6395b739?source=rss-40c4fa2c03c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/38cc6395b739</guid>
            <dc:creator><![CDATA[MajgaonkarDhanashri]]></dc:creator>
            <pubDate>Fri, 05 Jun 2020 15:11:41 GMT</pubDate>
            <atom:updated>2020-06-06T05:35:34.590Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Create Model View and Controller(MVC) in Asp.Net ?</h3><p>Hello readers…! In the previous articles we learned basics of MVC. So let’s learn about how to create (Add) simple controller, view page, model and see how they work together.</p><p><strong>How to create Controller?</strong></p><ol><li>Go to Solution Explorer and right click on Controllers folder Add-&gt; Controller.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*OvDBxjAGfTrhnZD-hsa4hA.png" /></figure><p>2. Select <strong>MVC Controller - Empty</strong> and click on <strong>Add</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c7_u-Ccv6GXIR0uBgNWWMg.png" /></figure><ul><li><strong>Scaffolding </strong>is an automatic code generation framework or it generates basic code provided for Asp.Net web application.</li></ul><p>3. Give Controller Name such as <strong>CustomerController.</strong> ‘<em>Controller’</em> word as a suffix must be added in controller name. Click <strong>Add</strong> button to add controller. Your Controller will look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*pKeoEGw4wB52zKjZMqiOrg.png" /></figure><p><strong>How to create view?</strong></p><ol><li>Go to your created controller and add action in the place of the index().</li></ol><pre><strong>//CustomerController.cs</strong><br>public class CustomerController : Controller<br>{<br>public IActionResult <strong>Add()</strong><br>{<br>return View();<br>}<br>}</pre><p>2. Right click on Add() action method and select add view. Name that view like<strong> CustomerAdd</strong>.cshtml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*z45fl767fao6HaDVv_VSbA.png" /></figure><p>3. Your Add view page is added. You can see here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*WZpVLwFYjfUE7YiTEfKHwg.png" /></figure><p>4.Let’s create one basic UI in CustomerAdd.cshtml (view). Add the following content in html page having two textboxes and two buttons -</p><pre><strong>//CustomerAdd.cshtml</strong><br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;meta name=&quot; viewport&quot; content=&quot;Width=device-width&quot; /&gt;&lt;title&gt;CustomerScreen&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;form&gt;<br>Customer Code :- &lt;input type=&quot;number&quot; id=&quot;CustomerCode&quot; value=&quot;&quot;/&gt;<br>Customer Name :- &lt;input type=&quot;text&quot; id=&quot;CustomerName&quot; value=&quot;&quot;/&gt;<br>&lt;input id=&quot;Button&quot; type=&quot;Submit&quot; value=&quot;Add Customer&quot;/&gt;<br>&lt;/form&gt;<br>&lt;input id=&quot;Button&quot; type=&quot;button&quot;value=&quot;Click me&quot; /&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>5. To invoke the screen, go to the controller and add “CustomerAdd” in Add() action to pass our view. For example-</p><pre><strong>//CustomerController.cs</strong><br>public class <strong>Customer</strong>Controller : Controller<br>{<br>public IActionResult <strong>Add</strong>()<br>{<br>return View(<strong>&quot;CustomerAdd&quot;</strong>);<br>}<br>}</pre><p>Let’s run our application-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*lk7zpnYesx--XMuE1s0krA.png" /></figure><p><strong>Difference between input type submit and type button-</strong></p><p><strong>&lt;input type=”button”&gt; </strong>Used<strong> </strong>if we want envoke some events on the page.</p><p><strong>&lt;input type=”submit”&gt; </strong>Used if we want to send data to sever.</p><p><strong>How to send data to server?</strong></p><p>1.Go to the Controller and add Submit action Which can receives data from UI.</p><pre><strong>//CustomerController.cs</strong><br>public IActionResult<strong> Submit</strong>(string CustomerCode, string CustomerName)<br>{<br>return Content(&quot;Customer Code:&quot; + CustomerCode<br>+ &quot; Customer Name: &quot; + CustomerName);<br>}</pre><p>2. Go to the view and use post method on Submit method.</p><pre>&lt;body&gt;<br>&lt;form <strong>action=&quot;Submit&quot; method=&quot;post&quot;</strong>&gt;<br>Customer Code :-&lt;input type=&quot;text&quot; id=&quot;ccode&quot; name=&quot;CustomerCode&quot;/&gt;<br>Customer Name:-&lt;input type=&quot;text&quot; id=&quot;cname&quot; name=&quot;CustomerName&quot;/&gt;&lt;br /&gt;&lt;br&gt;&lt;input id=&quot;Button&quot; type=&quot;submit&quot; value=&quot;Add Customer&quot;/&gt;<br>&lt;/form&gt;<br>&lt;/body&gt;</pre><p>Let’s run the application, we get posted data-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*QDD-njKLnl-IlSHy8JIUvw.png" /></figure><p><strong>How to create Model?</strong></p><ol><li>Right-click the Models folder<em> -&gt; </em><strong><em>Add</em></strong><em> -&gt; </em><strong><em>Class</em></strong><em>. </em>Name the file as <strong>CustomerModel</strong>.cs.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*UeUXJT6Du_JOl3dX-hrnLQ.png" /></figure><p>2. Go to the model file and add properties.</p><pre><strong>//CustomerModel.cs</strong><br>namespace WebApplication.Models<br>{<br>public class CustomerModel<br>{<br><strong>public string code { get; set;}<br>public string name { get; set;}</strong><br>}<br>}</pre><p>3. Next go to the Contoller and import model in CustomerController.cs. and add model object in action Submit() For example-</p><pre>//CustomerController.cs.</pre><pre>using Microsoft.AspNetCore.Mvc;<br><strong>using WebApplication.Models;</strong></pre><pre>namespace WebApplication.Controllers<br>{<br>public class CustomerController : Controller<br>{<br>public IActionResult Add()<br>{<br>return View(&quot;CustomerAdd&quot;);<br>}<br><strong>public IActionResult Submit(CustomerModel obj)<br>{<br>return Content(&quot;Customer Code:&quot; + obj.code<br>+ &quot; Customer Name: &quot; + obj.name);<br>}</strong><br>}<br>}</pre><p>Let’s run our application-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*ekMHOB8kfaTqspDR81Ni1g.png" /></figure><p>Thanks For Reading…!!</p><p>For more information watch and share the video below…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-c1sI8666Ac%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-c1sI8666Ac&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-c1sI8666Ac%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7724984ec14649d76dca70c5178200e/href">https://medium.com/media/d7724984ec14649d76dca70c5178200e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38cc6395b739" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Session and Cookies (Part-5)]]></title>
            <link>https://medium.com/@dhanashrimajgaonkar/session-and-cookies-part-5-e15e61b5b12b?source=rss-40c4fa2c03c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e15e61b5b12b</guid>
            <dc:creator><![CDATA[MajgaonkarDhanashri]]></dc:creator>
            <pubDate>Mon, 01 Jun 2020 18:51:43 GMT</pubDate>
            <atom:updated>2020-06-02T03:19:35.433Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello readers..!! In this article we are going to learn about session, how to make http stateful using session in Asp.Net and cookies.</p><p><strong>Http Stateless-</strong></p><p>Http is a stateless means every http request is executed independently without any knowledge of the requests that were executed before it. Using http stateless we can serve thousands of requests.</p><p><strong>Http Stateful-</strong></p><p>Http is a stateful means every http request kept information about request that has been executed. Http protocol is by default stateless to make it stateful we use session.</p><h4><strong>Session-</strong></h4><p>Session<strong> </strong>enables you to store temporary data and retrieve values within a web page. When we use session, the data is not stored directly in the browser. Instead it stored in the memory of the server. To store data, session uses cookies. Sessions are secured because it is in encrypted form or hashed.</p><p><strong>How to make http stateful using session in ASP.NET Core?</strong></p><p>Here I am creating one Asp.Net web application and use session to make http stateful.</p><p>Step 1: Go to the startup.cs and enable the session using AddSession in ConfigureServices and UseSession in Configure.</p><pre>//<strong>ConfigureServices ==&gt;</strong></pre><pre>public void ConfigureServices(IServiceCollection services)<br>{<br><strong>services.AddSession(options =&gt;<br>{<br>options.Cookie.Name = &quot;.MyCookie&quot;;<br>options.IdleTimeout = TimeSpan.FromSeconds(10);<br>options.Cookie.IsEssential = true;<br>});</strong><br>services.AddControllersWithViews();<br>}</pre><pre>// <strong>Configure ==&gt;</strong></pre><pre> public void Configure(IApplicationBuilder app, IWebHostEnvironment env)<br>{<br>if (env.IsDevelopment())<br>{<br>app.UseDeveloperExceptionPage();<br>}<br>else<br>{<br>app.UseExceptionHandler(&quot;/Home/Error&quot;);<br>// The default HSTS value is 30 days. You may want to change this for production scenarios, see <a href="https://aka.ms/aspnetcore-hsts.">https://aka.ms/aspnetcore-hsts.</a><br>app.UseHsts();<br>}<br>app.UseHttpsRedirection();<br>app.UseStaticFiles();<br>app.UseRouting();<br>app.UseAuthorization();<br><strong>app.UseSession();<br></strong>app.UseEndpoints(endpoints =&gt;<br>{<br>endpoints.MapControllerRoute(<br>name: &quot;default&quot;,<br>pattern: &quot;{controller=Home}/{action=Index}/{id?}&quot;);<br>});<br>}</pre><p>Step 2: Go to HomeController and add namespace Microsoft.AspNetCore.Http.</p><pre>using Microsoft.AspNetCore.Http;</pre><p>Step 3 : After that we set and get an integer value using session. For example-</p><pre>using System;<br>using System.Diagnostics;<br>using Microsoft.AspNetCore.Mvc;<br>using Microsoft.Extensions.Logging;<br>using WebApplication.Models;<br><strong>using Microsoft.AspNetCore.Http;</strong><br>namespace WebApplication.Controllers<br>{<br>public class HomeController : Controller<br>{<br>private readonly ILogger&lt;HomeController&gt; _logger;<br><strong>int x= 0;<br></strong>public HomeController(ILogger&lt;HomeController&gt; logger)<br>{<br>_logger = logger;<br>}<br>public IActionResult Index()<br>{<br><strong>int  y =Convert.ToInt32( HttpContext.Session.GetInt32(&quot;valueofx&quot;));<br>if (y == null)<br>{<br>x = 0;<br>}<br>else<br>{<br>x = y;<br>x++;<br>}<br>HttpContext.Session.SetInt32(&quot;valueofx&quot;,x);<br>return Content(x.ToString());</strong><br>}<br>public IActionResult Privacy()<br>{<br>return View();<br>}<br>[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]<br>public IActionResult Error()<br>{<br>return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });<br>}<br>}<br>}</pre><p><strong>Output-</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*UKoFmT8RPsZWgJhoGlb9Nw.png" /></figure><p>When we send the request again it will increment that value which is stored in the cookie and shows result as -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*6SbjBP5HH9Uegm6dCGjLWQ.png" /></figure><h4>Cookies-</h4><p>Cookie is a small piece of data that is stored in the client browser. It store information about client in the client browser. Cookies are used to store non-sensetive data. Every time when you visit the website the cookie is read and updated. We can set the expiry time limit of a cookie.</p><p>When end-user send a request at first time, server sends the cookie to the end user’s browser. The browser may store it and send it back when user request to the same server.</p><p>For example-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X9HWZyBuDpcKj0686lppJg.png" /></figure><p>Thanks For Reading…!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e15e61b5b12b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTTP Request and Response Headers (Part-4)]]></title>
            <link>https://medium.com/@dhanashrimajgaonkar/http-request-and-response-headers-part-4-ebdaf48dd1da?source=rss-40c4fa2c03c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebdaf48dd1da</guid>
            <dc:creator><![CDATA[MajgaonkarDhanashri]]></dc:creator>
            <pubDate>Fri, 29 May 2020 09:49:54 GMT</pubDate>
            <atom:updated>2020-05-29T10:02:37.788Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello readers..!! In this article we are going to learn about http request and response headers and how to see http request and response headers in chrome using developer tools.</p><p><strong>Http Request/Response Header-</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*vPDbYqpSIEcsXxSQt5SPFA.png" /><figcaption>Request-Response Process</figcaption></figure><p>Communication between browser and server is done by sending <strong>HTTP Requests</strong> and receiving <strong>HTTP Responses. </strong>For example when we open the browser and search something your browser sent a HTTP request to GET content and POST it through HTTP response on your screen. This single request and response is called as a<strong> context. </strong>i.e.</p><pre><strong>Context= Request+Response</strong></pre><p>Http headers are an integral part of the http requests and responses . It consists pair of its case-insensitive name followed by a colon (:) then by it’s value. Http headers contains information about http requests and responses such as client browser, requested webpage, the server and more. For example-</p><pre><strong>server: Microsoft-IIS/10.0</strong></pre><p><strong>How to see request and response headers in Chrome using developer tools ?</strong></p><p>Step1-First go to the browser and search, for example here I am runnig my ASP.NET web application and do ‘function+ F12’.</p><p>Step 2-Select network tab. It shows list of requests which are required to load our request page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xEi2QOM21RkOJwNwHWUOw.png" /></figure><p>Step 3- Select any HTTP request from the left side and the HTTP headers will be displayed on the right side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Vdp1zkEzA5oRZcU5eNldQ.png" /></figure><p><strong>Example-</strong></p><p>When you request a webpage in your browser, your headers may look like this:</p><pre><strong>:authority:</strong>localhost:44374<br><strong>:method:</strong>GET<br><strong>:path:</strong>/<br><strong>:scheme:</strong>https<br><strong>accept:</strong>text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9<br><strong>accept-encoding:</strong>gzip, deflate, br<br><strong>accept-language:</strong>en-IN,en-GB;q=0.9,en-US;q=0.8,en;q=0.7<br><strong>cache-control:</strong>max-age=0<br><strong>sec-fetch-dest:</strong>document<br><strong>sec-fetch-mode:</strong>navigate<br><strong>sec-fetch-site:</strong>none<br><strong>sec-fetch-user:</strong>?1<br><strong>upgrade-insecure-requests:</strong>1<br><strong>user-agent:</strong>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36</pre><p>In response, browser may receive a response your headers may look like this:</p><pre><strong>content-encoding:</strong>gzip<br><strong>content-type:</strong>text/html; charset=utf-8<br><strong>date:</strong>Fri, 29 May 2020 06:38:27 GMT<br><strong>server:</strong>Microsoft-IIS/10.0<br><strong>status:</strong>200<br><strong>vary:</strong>Accept-Encoding<br><strong>x-powered-by:</strong>ASP.NET</pre><p>Thanks For Reading…!!!</p><p>Read my previous articles on MVC Core-</p><p>Introduction of MVC (Part-1) <a href="https://link.medium.com/uQYUkNxZN6">https://link.medium.com/uQYUkNxZN6</a></p><p>Kestrel Web Server and Reverse Proxy in ASP.NET Core (Part-2) <a href="https://link.medium.com/RbLvhrHZN6">https://link.medium.com/RbLvhrHZN6</a></p><p>Bootstrapping and Request-Response Process in MVC Core (Part-3) <a href="https://link.medium.com/iNDvbFGLP6">https://link.medium.com/iNDvbFGLP6</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebdaf48dd1da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bootstrapping and Request-Response Process in MVC Core (Part-3)]]></title>
            <link>https://medium.com/@dhanashrimajgaonkar/bootstrapping-and-request-response-process-in-mvc-core-part-3-a1952e00d8c9?source=rss-40c4fa2c03c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1952e00d8c9</guid>
            <dc:creator><![CDATA[MajgaonkarDhanashri]]></dc:creator>
            <pubDate>Tue, 26 May 2020 15:37:40 GMT</pubDate>
            <atom:updated>2020-05-26T15:37:40.478Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article we are going to learn about how bootstraping process start and how request-response process run in MVC Core application.</p><p><strong>Bootstrapping Process in MVC Core-</strong></p><p>Bootstrapping describes process which show how does the MVC Core application start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*j6zTc1Uv3YHYdlvNNIVYCQ.png" /></figure><p>Let’s create one ASP.NET Core application and we will try to understand the flow of bootstrap process. Bootstrapping process starts with program.cs. Program.cs is responsible for starting web server where it invokes kestrel web server and makes IIS as a front end proxy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*J3mPjpjdAxFdnb6T4_RYKA.png" /></figure><p>After that it invokes the startup.cs file. startup.cs file does two things-</p><ol><li>Configure Service- Add services</li><li>Configure- Configure added service</li></ol><p>startup.cs goes through three methods first is constructor, second is configure service and third is configure method. First the execution control executes the constructor and loads the configurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4F86lQUzlRTF1z2uTPScjw.png" /></figure><p>Then ConfigureServices method will be executes. In ConfigureServices we can add the services which we want to use in our project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xHlH7yYaPtRTg-0VV0_CjA.png" /></figure><p>After that Configure method will be executes where services are configured and we will be use that services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0JpUpAR_qvJmiisMRRJt4Q.png" /></figure><p>After that our application is start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RROzyWlpfF4npHu049yIWQ.png" /></figure><p><strong>Request-Response Process in MVC Core -</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*4B4FTOtl5So4Cgwcxn5dTg.png" /></figure><p>Let’s go to our output screen where our server is running, click on ‘Home’ button. When we sends the request it first goes to the controller and loads it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*dMzZLzRmXXPk5GDnZlkfAQ.png" /></figure><p>In above figure <strong>HomeController</strong> first loaded and fire the index which returns <strong>View()</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nLG2IoI0ME6x8BBrWcJCKA.png" /></figure><p>After that view is render on to the browser as shown below..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RROzyWlpfF4npHu049yIWQ.png" /></figure><p>Thanks For Reading…!!!</p><p>If you are beginner in MVC Core please read my articles given below…</p><p>Introduction of MVC (Part-1):<strong> </strong><a href="https://link.medium.com/uQYUkNxZN6"><strong>https://link.medium.com/uQYUkNxZN6</strong></a></p><p>Kestrel Web Server and Reverse Proxy in ASP.NET Core (Part-2): <a href="https://link.medium.com/RbLvhrHZN6"><strong>https://link.medium.com/RbLvhrHZN6</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1952e00d8c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kestrel Web Server and Reverse Proxy in ASP.NET Core (Part-2)]]></title>
            <link>https://medium.com/@dhanashrimajgaonkar/kestrel-web-server-in-asp-net-core-358b3c09f105?source=rss-40c4fa2c03c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/358b3c09f105</guid>
            <dc:creator><![CDATA[MajgaonkarDhanashri]]></dc:creator>
            <pubDate>Sat, 23 May 2020 14:30:22 GMT</pubDate>
            <atom:updated>2020-05-26T15:13:43.463Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kestrel Web Server and Reverse Proxy in ASP.NET Core</h3><p>In this article we are going to learn about kestrel web server and reverse proxy concept in ASP.NET Core.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YfUNsojuFB4kPIJK2q0Lcg.jpeg" /></figure><p>Before going to learn about kestrel web server let’s see the meaning of web server. Web server is server software that accept http <strong>request</strong> send by a web client and provide appropriate <strong>response</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MTHly-JDxODUmUijR8sLUA.png" /></figure><p><strong>Kestrel web server in ASP.NET Core -</strong></p><p>Kestrel is an open source, cross platform and a default webserver used for Asp.Net Core applications. It is native web server which is used to serve MVC core application or to process MVC core request. By default, all Asp.Net core project templates include kestrel webserver when we create new Asp.Net Core Projects. Program.cs is responsible for startup the kestrel web server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*_RDxO5wcAzxwcUyQfY2nsA.png" /></figure><p>The question arises that why we need kestrel web server when we have IIS/Nginx/Apache web servers-</p><p>The primary need of kestrel is to bootstrap, run, serve request and response from ASP.NET Core. But it is not powerfull front end server like IIS, Nginx and so on. So in production you will always find kestrel used a reverse proxy where the front ending will be done by some time tested server like IIS/Nginx/ Apache. While the ASP.NET core execution, running and compiling is part of kestrel.</p><p>To use IIS, Nginx and Apache in ASP.NET Core application we make them as a <strong>reverse proxy server. </strong>A reverse proxy server receives HTTP requests from the internet and forwards them to kestrel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*r0NWQjXfTlRQAFxWmxVaRA.png" /></figure><p>For example in reverse proxy, end user send request to IIS server from their it will send request to the kestrel web server then it will respond back and give it back to IIS server, IIS forward back to browser.</p><p>For more information watch and share the video below…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fipio9ze57X8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dipio9ze57X8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fipio9ze57X8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec29f496e80474829eedffcf60b8080f/href">https://medium.com/media/ec29f496e80474829eedffcf60b8080f/href</a></iframe><p>Thank you for reading my article, I hope you understand the Kestrel Web Server and reverse proxy concept in ASP.NET Core.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=358b3c09f105" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction of MVC (Part-1)]]></title>
            <link>https://medium.com/@dhanashrimajgaonkar/introduction-of-mvc-e341f005214f?source=rss-40c4fa2c03c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e341f005214f</guid>
            <dc:creator><![CDATA[MajgaonkarDhanashri]]></dc:creator>
            <pubDate>Tue, 19 May 2020 15:22:05 GMT</pubDate>
            <atom:updated>2020-05-26T15:11:57.442Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction of MVC</h3><p>In this article we are going to learn about MVC, .NET core and how to create first application with .net core.</p><p><strong>What is MVC ?</strong></p><p><strong>MVC </strong>(<strong>M</strong>odel-<strong>V</strong>iew-<strong>C</strong>ontroller) is an architectural software pattern. MVC consists of three components mainly <strong>Model</strong>,<strong> View</strong> and <strong>Controller.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VJsDF8um-_eegVGTbW7E6Q.png" /><figcaption><strong>Architecture of MVC</strong></figcaption></figure><p><strong>Model- </strong>Responsible for Business Logic and validation.</p><p><strong>View- </strong>View is Responsible for UI.</p><p><strong>Controller- </strong>Responsible for binding layer between view and model.</p><p><strong>What is .NET core ?</strong></p><p>.Net Core can be defined as a free open-source platform developed by Microsoft and help us to create web application which can run on Windows, macOS, and Linux operating systems. MVC core is developed on .NET core framework.</p><p><strong>Installation of .NET core SDK</strong></p><p>Go to browser and search this link <a href="https://dotnet.microsoft.com/download">https://dotnet.microsoft.com/download</a>. Download the .NET core SDK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O_VcMOzkq_iOQph1yrQjag.png" /></figure><p><strong>How to create first application with .NET core ?</strong></p><p>Step 1: Create one folder in your drive, where you want to create an app.</p><p>Step 2: Open the commmand prompt and browse that directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*BbQTIkyJTrOhvidwFi5QNg.png" /></figure><p>Step 3: To create project using .NET core type the command on command prompt as <strong>dotnet new mvc. </strong>To build the project, fire the command <strong>dotnet build.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONy90oldF6ZVGESTL0jk_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*fkhD5nDkAgDiaNwqqb3ESQ.png" /></figure><p>Step 4: To run the project, fire the command <strong>dotnet run</strong> and run the application…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESSKdr0rG9EPHprMwgnPdA.png" /></figure><p><strong>How to create .NET core application using visual studio ?</strong></p><p>Step 1: Open the visual studio and select File -&gt; New -&gt;Project as shown in figure-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*LW7VVD9Z2NgsXO4xEgQDDA.png" /></figure><p>Step 2: Select the <strong>Console App(.NET Core) </strong>and click on next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*srrEjZ-OY0YEYPwYRhe8FQ.png" /></figure><p>Step 3<strong>: </strong>Configure your project with project name<strong> </strong>and click on create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FdsJ1d8mr_gJizfKl1PrgQ.png" /></figure><p>After creating console application open the program.cs file as shown in figure below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*bFIEsdrzBj02ccVRxkDWBQ.png" /></figure><p>Step 4<strong>: </strong>Build the project and Run. It show output as shown in below…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eu1wBM-zN6kgpe9qpLjKUw.png" /></figure><p>For more information watch and share the video below…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F-c1sI8666Ac%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-c1sI8666Ac&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F-c1sI8666Ac%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/aefeb646e652b61d120ef9961fc0d995/href">https://medium.com/media/aefeb646e652b61d120ef9961fc0d995/href</a></iframe><p>Thank you for reading my article, I hope you understand basic concept of MVC.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e341f005214f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Naming Convention]]></title>
            <link>https://medium.com/@dhanashrimajgaonkar/naming-convention-6e19b85f1281?source=rss-40c4fa2c03c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e19b85f1281</guid>
            <dc:creator><![CDATA[MajgaonkarDhanashri]]></dc:creator>
            <pubDate>Sat, 16 May 2020 08:26:39 GMT</pubDate>
            <atom:updated>2020-05-16T14:16:13.566Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello readers…!! In this article we are going to learn about naming convention in programming.</p><p>A <strong>naming convention</strong> is a set of guidelines for choosing the character sequence to be used for identifying variables, functions and classes in source code. Naming convention help us to make programs more understandable by making them easier to read.</p><p>If we declare one variable or function with small name then it is easily readable. But when we give long name to that variable or function then it is difficult to read. So to solve this type of difficulty we have naming convention.</p><ol><li>Pascal Case</li><li>Camel Case</li><li>Underscore Case</li></ol><h4><strong>Pascal Case -</strong></h4><p>Pascal case means the first letter of every word in the name is capitalized.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/247/1*wOuPM0quR6c5Wohm39B1_Q.png" /></figure><p>For example-</p><p>Raw- user account</p><p>Pascal case- <strong>U</strong>ser<strong>A</strong>ccount</p><h4><strong>Camel Case-</strong></h4><p>In camel case first letter of the first word is lowercase while the first letter of every subsequent word is uppercase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*IMEMUDXVEmii1Vcj9ubNBg.png" /></figure><p>For example-</p><p>Raw- user Account</p><p>Camel case- <strong>u</strong>ser<strong>A</strong>ccount</p><h4><strong>Underscore Case-</strong></h4><p>In underscore case everything is in lower case and the words are started by underscore or separated by underscores. underscore case is also known as <strong>snake case.</strong></p><p>Suppose we declare variable starting with underscore(‘_’) then during coding we easily find that variable by typing ‘_’ instead of full name of variable.</p><p>For example-</p><p>Raw- user account</p><p>Underscore case- _useraccount or user<strong>_</strong>account</p><p>Thanks For Reading !!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e19b85f1281" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Binding in Angular (Part-2)]]></title>
            <link>https://medium.com/@dhanashrimajgaonkar/data-binding-in-angular-part-2-6c99d4962a60?source=rss-40c4fa2c03c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c99d4962a60</guid>
            <dc:creator><![CDATA[MajgaonkarDhanashri]]></dc:creator>
            <pubDate>Fri, 15 May 2020 09:58:41 GMT</pubDate>
            <atom:updated>2020-05-15T09:58:41.416Z</atom:updated>
            <content:encoded><![CDATA[<p>In this second part of angular we are going to learn about data binding in angular.</p><p>To understand data binding we need to know the meaning of binding the data. Binding the data means when the data changes its value, all the elements bound to it reflect that changes automatically.</p><p>Data binding is a core concept in angular. Data binding is a process of communication between application UI and component. There are two ways of data binding-</p><ol><li>One Way Binding</li><li>Two Way Binding</li></ol><p><strong>One Way Binding-</strong></p><p>One way binding will bind the data and can flow from the component to the view or from view to the component. One way data binding is unidirectional. One way binding has two types-</p><ol><li>Property Binding []</li><li>Event Binding ()</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*ebp4TtMrC60zbQ6yu0b55Q.png" /></figure><ol><li><strong>Property Binding []-</strong></li></ol><p>Property binding is used to bind values of component properties to the HTML element. ‘[]’ bracket is used to pass data from object to UI. For example-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*tK40eErr3YkRHoKc4dps6g.png" /><figcaption><strong>UI View</strong></figcaption></figure><p>In above example there is textbox named as PatientName. It has value property written in ‘[]’ bracket and assigned to patientName.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*wpAQFz7qkw7OhalK9oKPTA.png" /><figcaption><strong>Component View</strong></figcaption></figure><p>In above component view we can create patientName which can hold string type of value as “Raj”. Lets run this project which show result as shown in below..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*1roROmnlRF7x-yKVskXBhg.png" /></figure><p><strong>2. Event Binding ()-</strong></p><p>Event binding is used to bind values of HTML to the component element. ‘()’ bracket is used to pass data from UI to Object. For example-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*ycXazRhbUOp01bWz_B3pVw.png" /><figcaption><strong>UI View</strong></figcaption></figure><p>In above UI view ‘()’ is used to pass data from UI to object and assigned a method Click().</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*r8FiZgcp9-tEaFM5hxQktA.png" /><figcaption><strong>Component View</strong></figcaption></figure><p>In the above component view ‘Click()’ method has string value assigned to patientName property as “Rahul” Lets run this project which show result as shown in below..</p><p>Before Click -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*qVi3ylvpY8Q_OSPUoDE6JA.png" /></figure><p>After Click-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*HvrQJnrjpDAZrDR7cM4iXg.png" /></figure><p><strong>Two Way Binding-</strong></p><p>Two way binding will bind the data and can flow from the component to the view and from view to the component. It is a combination of property binding and event binding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*zCwrJVBpAK2jt6_wllBcCA.png" /><figcaption><strong>Two Way Binding</strong></figcaption></figure><p>To perform two way binding <strong>[(ngModel)] </strong>directive is used. Directive is angular code inside html and responsible for changing the behavior of HTML tag. Lets take one example-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*FjDRGNdmlfVEThWMs8pj7Q.png" /><figcaption><strong>UI View</strong></figcaption></figure><p>In above UI view [(ngModel)] is used and assigned the name property to it which hold string. Click method is used to set entered input value of one input tag to another input tag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*7fIzCSaTtuwWg1TLcmM8Og.png" /><figcaption><strong>Component View</strong></figcaption></figure><p>In the Click() method patientName is assigned to the patientName1. Let try to run this project which show one error as -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*cMAoJQvW5Le3FRw5OJbRTQ.png" /></figure><p>It show error because angular doesn&#39;t understand the [(ngModel)] directive. So to fix this error open the module and import FormsModule into it as follows-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nsSfnz2LRzFlMm9hyApndQ.png" /></figure><p>Lets run the project again…</p><p>Before Click-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*X1BYR8DE9KGAomTLLp4kUQ.jpeg" /></figure><p>After Click</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*BRR3IA3YS-IL5p4agvsMIw.jpeg" /></figure><p>If you learn more about this topic please watch and share the video below…</p><p><a href="https://www.youtube.com/watch?v=FV2MXOygDTM&amp;t=99s">https://www.youtube.com/watch?v=FV2MXOygDTM&amp;t=99s</a></p><p>Thanks For Reading !!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c99d4962a60" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction Of Angular(Part-1)]]></title>
            <link>https://medium.com/@dhanashrimajgaonkar/introduction-of-angular-part-1-600888e1dcfe?source=rss-40c4fa2c03c2------2</link>
            <guid isPermaLink="false">https://medium.com/p/600888e1dcfe</guid>
            <dc:creator><![CDATA[MajgaonkarDhanashri]]></dc:creator>
            <pubDate>Wed, 13 May 2020 10:49:33 GMT</pubDate>
            <atom:updated>2020-05-13T10:49:33.602Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article we are going to learn about basic fundamentals of angular.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I9kHMrHLYEryMFQbrdPhkQ.png" /></figure><p><strong>What is Angular?</strong></p><p>Angular is an open source JavaScript framework which simplifies binding code between JavaScript objects and HTML UI elements. Angular is a JavaScript framework for developing web applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*ksawg23OKFsEsYrY-nBXuQ.png" /></figure><p>The journey of angular starts with AngularJS. Angular was named as angular because it is a ‘JavaScript’ framework written inside html tags using angle brackets&lt;&gt;. Angular is one of the well-known JavaScript framework that used to develop a SPA (single-page application).</p><p>Before starting to learn angular we should know about what is NodeJS, NPM and angular CLI.</p><p><strong>What is NodeJS?</strong></p><p>NodeJS is an open source JavaScript framework which can do two things-</p><ol><li>It helps us to run JavaScript outside the browser (uses chrome v8 engine).</li><li>It acts as a central repository from where we can get any JavaScript framework using NPM (Node Package Manager).</li></ol><p><strong>Step 1:- Installing NodeJS</strong></p><p>In order to install NodeJS go to <a href="https://nodejs.org/en/download/">https://nodejs.org/en/download/</a> download the latest version and install it.</p><p>After installation open the NodeJS command prompt in your program files and fire NPM commands inside that command prompt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*GqZLrJi99QkPlLJm7dN4IA.png" /></figure><p><strong>Step 2:- NPM Install Command</strong></p><p>So let’s fire the first command in NPM “npm install” as given in figure..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*N6n6vW2lebNDFRQdRacfMw.png" /></figure><p>“npm install” command helps us to get the latest version JavaScript framework. For example if we want to install jQuery, open the node command prompt and fire query “npm install jQuery” and press enter you should see “jQuery” has been installed in your computer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*S5jIqIPVPJJG-BCK1fphjg.png" /></figure><p>When we work with large project we need lots of JavaScript framework, like jQuery, angular and so on. Every time we would need “npm install” again and again is it takes more time. So to avoid this JavaScript framework references in one go “npm” team has given a package.json.</p><p>To learn package.json read this article- <a href="https://link.medium.com/jISIFcwDe6">https://link.medium.com/jISIFcwDe6</a></p><p><strong>Step 3:- Installing Angular CLI</strong></p><p>To install angular CLI, go to browser and search Angular CLI and open web link …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ED5bNyrIQfG2E56WFn_S3Q.png" /></figure><p>In above figure we can see the npm install commands for Angular CLI. Angular CLI is used to create angular project.</p><ul><li>npm install -g @angular/cli : To install Angular CLI globally.</li><li>ng new my-dream-app : To create new project.</li><li>cd my-dream-app : To go in your directory.</li><li>ng serve : To run the project.</li></ul><p>To learn more about angular watch and share the video below…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FFV2MXOygDTM%3Fstart%3D320%26feature%3Doembed%26start%3D320&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DFV2MXOygDTM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FFV2MXOygDTM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a062bf417a38af1da25dd8adc91e1ed/href">https://medium.com/media/4a062bf417a38af1da25dd8adc91e1ed/href</a></iframe><p>Thanks For Reading !!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=600888e1dcfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>