<?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 Ashwini Gupta on Medium]]></title>
        <description><![CDATA[Stories by Ashwini Gupta on Medium]]></description>
        <link>https://medium.com/@ashwinigupta?source=rss-8caa5ebd50ad------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xbgh8rmCubEJC10mCvfm6g.png</url>
            <title>Stories by Ashwini Gupta on Medium</title>
            <link>https://medium.com/@ashwinigupta?source=rss-8caa5ebd50ad------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 03:56:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ashwinigupta/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[Introduction to PWA in ASP.NET Core Application]]></title>
            <link>https://medium.com/beginners-guide-to-mobile-web-development/introduction-to-pwa-in-asp-net-core-application-da96c7cc4918?source=rss-8caa5ebd50ad------2</link>
            <guid isPermaLink="false">https://medium.com/p/da96c7cc4918</guid>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[pwa]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Ashwini Gupta]]></dc:creator>
            <pubDate>Thu, 03 May 2018 21:00:16 GMT</pubDate>
            <atom:updated>2018-05-03T21:00:16.062Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Yeah, you heard it correct PWA using ASP.NET Core!! It is possible to create PWA in ASP.NET Core.</blockquote><p>In this article we are going to talk about how we can implement Progressive Web behaviour in an ASP.NET Core Application and if you are wondering what Progressive Web Apps are? then <a href="https://developers.google.com/web/progressive-web-apps/">Google Developer Web Network</a> has something for you to read.</p><blockquote><em>Progressive Web Apps are user experiences that have the reach of the web, and are:</em></blockquote><blockquote><a href="https://developers.google.com/web/progressive-web-apps/#reliable"><strong><em>Reliable</em></strong></a><em> — Load instantly and never show the downasaur, even in uncertain network conditions.</em></blockquote><blockquote><a href="https://developers.google.com/web/progressive-web-apps/#fast"><strong><em>Fast</em></strong></a><em> — Respond quickly to user interactions with silky smooth animations and no janky scrolling.</em></blockquote><blockquote><a href="https://developers.google.com/web/progressive-web-apps/#engaging"><strong><em>Engaging</em></strong></a><em> — Feel like a natural app on the device, with an immersive user experience.</em></blockquote><blockquote><em>This new level of quality allows Progressive Web Apps to earn a place on the user’s home screen.</em></blockquote><p>and if you are wondering Why should I care?<a href="https://codeburst.io/why-should-you-care-about-progressive-web-apps-pwas-3c3f73cb8c92"> <em>read here</em></a>.</p><h4>Prerequisite&#39;s</h4><ul><li>Visual Studio 2017 or any Text Editor of your choice (if you don’t have preference my recommendation <a href="https://code.visualstudio.com/"><em>VS Code</em></a>).</li><li>ASP.NET Core 2.0 which has a hard requirement on .NET Core Runtime 2.0.0 and .NET Core SDK 2.0.0. Please install these items from <a href="https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.0-download.md"><em>here</em></a> or visit <a href="https://www.microsoft.com/net"><em>dot.net</em></a>.</li></ul><blockquote>Let’s Start</blockquote><p>So, first create the new ASP.NET Core project from Visual Studio projects templates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*CHnrCkFVZ8eHtcyZRSMqNw.png" /><figcaption>Visual Studio ASP.NET Core templets.</figcaption></figure><blockquote>If you are using the terminal then use the following command</blockquote><pre>$ dotnet new mvc<br>$ code .</pre><blockquote><em>code .</em>command is used to open project with VS Code.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*_XmurBAN_U_wCnCzpq73bA.png" /><figcaption>Project Directory</figcaption></figure><p>To adds the Progressive Web behaviour to your ASP.NET Core 2.0 application, add NuGet package through Visual Studio’s NuGet Package Manager <a href="https://www.nuget.org/packages/WebEssentials.AspNetCore.PWA/">WebEssentials.AspNetCore.PWA</a></p><blockquote>If you are using terminal use following command in project directory</blockquote><pre>dotnet add package WebEssentials.AspNetCore.PWA</pre><p>Now, Add the following files to your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*Bc9wRB4QElG4C_dAtWWulg.png" /><figcaption>Files</figcaption></figure><ul><li>Adding Icons</li></ul><p>Currently, WebEssentials.AspNetCore.PWA compulsory required icons of size 192x192 and one 512x512 pixels along with these two you can add other sizes as well.</p><ul><li>Adding a manifest.json file in the root of the wwwroot folder</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3bc1c89aca774dc0d8cd8b2b63368dc6/href">https://medium.com/media/3bc1c89aca774dc0d8cd8b2b63368dc6/href</a></iframe><p>Add above code to your manifest.json file.</p><ul><li><em>Last but not least, </em>Register<em> service </em>in Startup.cs Inside the ConfigureServices method add a call to services.AddProgressiveWebApp() like below.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d4b29c10c5e35f4d819b14a784b10628/href">https://medium.com/media/d4b29c10c5e35f4d819b14a784b10628/href</a></iframe><p>Now you can verify by opening the application using Chrome browser open Chrome Developer Tools (Ctrl + Shift + I) under Application Tab, service worker is activated and running with the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*tpdyCTw5l828WgMXPGND-A.png" /></figure><p><strong>Congrats!</strong> Your ASP.NET Core application is now PWA.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FfxsqOYnIMEefC%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fwell-done-fxsqOYnIMEefC&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FfxsqOYnIMEefC%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="196" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7be58c5b6bfea5ea927de7f2848cd8d/href">https://medium.com/media/c7be58c5b6bfea5ea927de7f2848cd8d/href</a></iframe><h4>Next?</h4><p>There are many ways to configure the behaviour of the <a href="https://developers.google.com/web/fundamentals/web-app-manifest/">manifest</a> as well as the <a href="https://developers.google.com/web/fundamentals/primers/service-workers/">service worker</a>. Read the WebEssentials.AspNetCore.PWA <a href="https://github.com/madskristensen/WebEssentials.AspNetCore.ServiceWorker">documentation</a> for more info. If you want to Contribute to <a href="https://www.nuget.org/packages/WebEssentials.AspNetCore.PWA/">WebEssentials.AspNetCore.PWA</a>, it is an <a href="https://github.com/madskristensen/WebEssentials.AspNetCore.ServiceWorker">open source</a> project by <a href="https://madskristensen.net/">Mads Kristensen</a>.</p><blockquote><a href="https://miniblogcore.azurewebsites.net/">Mini Blog</a> is a good example of PWA using ASP.NET Core 2.0 and it is <a href="https://github.com/madskristensen/Miniblog.Core">open source</a>.</blockquote><p>Code for demo application is available at <a href="https://github.com/ASHWINI-GUPTA/ASP.NET-Core-PWA">GitHub</a>.</p><p><a href="https://github.com/ASHWINI-GUPTA/ASP.NET-Core-PWA">ASHWINI-GUPTA/ASP.NET-Core-PWA</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da96c7cc4918" width="1" height="1" alt=""><hr><p><a href="https://medium.com/beginners-guide-to-mobile-web-development/introduction-to-pwa-in-asp-net-core-application-da96c7cc4918">Introduction to PWA in ASP.NET Core Application</a> was originally published in <a href="https://medium.com/beginners-guide-to-mobile-web-development">Beginner&#39;s Guide to Mobile Web Development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ASP.NET Core and Bootstrap 4]]></title>
            <link>https://medium.com/@ashwinigupta/how-to-migrate-from-bootstrap-3-template-to-4-in-asp-net-core-application-7da01a1acf99?source=rss-8caa5ebd50ad------2</link>
            <guid isPermaLink="false">https://medium.com/p/7da01a1acf99</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[bootstrap-4]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <dc:creator><![CDATA[Ashwini Gupta]]></dc:creator>
            <pubDate>Fri, 30 Mar 2018 08:11:49 GMT</pubDate>
            <atom:updated>2018-04-13T06:10:17.272Z</atom:updated>
            <content:encoded><![CDATA[<p>Bootstrap 4 is out and has a lot of changes and improvement over previous version 3, So if your planning to use newer version of Bootstrap with ASP.NET Core Application then you need to do some modification to use Bootstrap 4 because by default ASP.NET Core application template comes with Bootstrap 3 and migrating to version 4 is little trickier (for developer like me who don’t have much experience with tweaking the framework).</p><blockquote>Let’s Start</blockquote><p>I’ll be using bower to manage our client-side dependencies, to make process easier.</p><blockquote>Bower is no more recommended as the dependencies manager but still maintained. For detail how to migrate away from Bower follow the <a href="https://bower.io/blog/2017/how-to-migrate-away-from-bower">link</a></blockquote><ol><li>So, first create the new ASP.NET Core project.</li></ol><blockquote>I’ll be using <a href="https://code.visualstudio.com/">VS Code</a> with integrated terminal, same can be done using the full version of Visual Studio.</blockquote><pre>$ dotnet new mvc<br>$ code .</pre><blockquote>code . command is used to open project with VS Code.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*uVx04y2oxjtScXpnp-_yOQ.png" /><figcaption>Project directory structure</figcaption></figure><p>2. Inside wwwroot/lib directory, bootstrap is already present it’s a Bootstrap 3 files comes with default ASP.NET Core MVC templates, delete bootstrap and jquery folders from the project.</p><blockquote><a href="https://getbootstrap.com/">Bootstrap 4</a> has a dependency on j<a href="https://jquery.com/">Query</a>, so if you do not even delete jquery folder then also bootstrap override it with jQuery v 3.2.1</blockquote><p>3. Create the following new file bower.json and .bowerrc file at the root then copy the following block of code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a1ed2d376afa66e52350dec394ad10da/href">https://medium.com/media/a1ed2d376afa66e52350dec394ad10da/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d9d8085fe64c56b92c380f9c7b57266b/href">https://medium.com/media/d9d8085fe64c56b92c380f9c7b57266b/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tplJEHDEEJGxTWM---gR4A.png" /><figcaption>project directory</figcaption></figure><blockquote>Run $ bower install to restore the bower dependencies. If you don’t have bower or npm install on your machine read <a href="https://tecadmin.net/install-bower-on-ubuntu/">this</a> article.</blockquote><p>4. bootstrap and jquery folders are now in place we can start editing our _Layout.cshtml file. Open _Layout.cshtml file found in views/Shared folder and paste the following code block.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f3d26b4b4e098e4eae6dc4a5cadf55da/href">https://medium.com/media/f3d26b4b4e098e4eae6dc4a5cadf55da/href</a></iframe><blockquote>Time to modify CSS.</blockquote><p>5. Modify your project CSS file like below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a6e7e3731e3255a69d032b9c1c0f0235/href">https://medium.com/media/a6e7e3731e3255a69d032b9c1c0f0235/href</a></iframe><blockquote>Footer section is sticky at bottom of the page. Modify your Index.cshtml file according to Bootstrap 4 <a href="https://getbootstrap.com/docs/4.0/components/alerts/">components</a>.</blockquote><p>Finally, run $ dotnet run command to see the Bootstrap 4 template.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*humzHYSwKQMfU1yzNa0vBA.png" /><figcaption>Home View</figcaption></figure><blockquote>We have not discussed task runner to automate <a href="https://docs.microsoft.com/en-us/aspnet/core/client-side/bundling-and-minification">bundling and minification</a> or the cleansing of a development environment before a new build but you can read here at <a href="https://docs.microsoft.com/en-us/aspnet/core/client-side/using-gulp">Microsoft docs</a>.</blockquote><p><strong>Congrats!</strong> Your project is now upgraded to Bootstrap 4.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FfxsqOYnIMEefC%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fwell-done-fxsqOYnIMEefC&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2FfxsqOYnIMEefC%2Fgiphy.gif%3Fcid%3D790b76113e787b06aef1be7f7b50fc190c941a542069a25f%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="196" frameborder="0" scrolling="no"><a href="https://medium.com/media/9bfd5bb651dc8c935e615d8619e6a52e/href">https://medium.com/media/9bfd5bb651dc8c935e615d8619e6a52e/href</a></iframe><p>All the code is available at <a href="https://github.com/ASHWINI-GUPTA/Bootstrap4">GitHub</a>.</p><p><a href="https://github.com/ASHWINI-GUPTA/Bootstrap4">ASHWINI-GUPTA/Bootstrap4</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7da01a1acf99" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>