<?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 Ayush Shekhar on Medium]]></title>
        <description><![CDATA[Stories by Ayush Shekhar on Medium]]></description>
        <link>https://medium.com/@ayushshekhar?source=rss-97a8caf7f5a5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*__kDrSf4O48MmLGYdUuryQ.png</url>
            <title>Stories by Ayush Shekhar on Medium</title>
            <link>https://medium.com/@ayushshekhar?source=rss-97a8caf7f5a5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 18:39:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ayushshekhar/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[How I Built a Chess Clock App in Minutes Using Dreamflow & Flutter]]></title>
            <link>https://medium.com/@ayushshekhar/how-i-built-a-chess-clock-app-in-minutes-using-dreamflow-d6f28de417af?source=rss-97a8caf7f5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6f28de417af</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chess]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Ayush Shekhar]]></dc:creator>
            <pubDate>Tue, 09 Sep 2025 03:02:21 GMT</pubDate>
            <atom:updated>2025-09-09T03:07:19.381Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y-IQSx4B5F5zQQfSeDW_xQ.png" /></figure><p>A few days ago, I was watching <strong>Samay Raina</strong> almost beat <strong>Gukesh D</strong> in this <a href="https://www.youtube.com/watch?v=nctspevG47Y&amp;ab_channel=ChessBaseIndia">2023 chess video</a>.<br>As much as the game itself was exciting, my eyes kept drifting to something else on the table: the <strong>chess clock app</strong> ⏱️.</p><p>That’s when I wondered: <strong>How quickly could I build one myself using AI?</strong><br>So I fired up Dreamflow, <a href="https://app.dreamflow.com/">https://app.dreamflow.com</a>, and gave it a shot.</p><p>This is the story of how I built <strong>Chronos Duo</strong> — a minimalist chess clock for two players.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*4kphjx1cY6SIoKSU.gif" /><figcaption>Let’s start building.</figcaption></figure><p><strong>Step 1: Starting with the Basics</strong></p><p>My first prompt was simple but detailed enough to set expectations clearly:</p><pre>I want to create a minimal 2-person chess clock. <br>Here&#39;s the journey:<br>1. Landing Page with a CTA in the centre that says Start Game<br>2. Enter the time for White pieces and Black Pieces, respectively, in minutes + seconds format. Make it intuitive.<br>3. Click on start game to go to the clock screen<br>4. The clock screen is split into two halves with a countdown timer for the allotted time facing the direction that the chess player would be seated. The player playing the black pieces can start the timer for the player playing white, and once the game starts, the players press anywhere within their half of the screen to pause their timer and resume the other player&#39;s.<br>5. Of course, the UI should reflect an active timer and a paused timer differently.<br>6. The whole app should be very functional but with a very appealing modern creative design, as long as it does not chip away at the usability of the UX.</pre><p>The <strong>first pass</strong> was already about <em>90%</em> there — a landing page, time controls, and a functional clock screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*7MxqFYOxEy916tn5MgKCoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*_-iyBFDaKYwqvUgaj1O71A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*zzykjdwIexLNWxf3qG0cpg.png" /></figure><p><strong>Step 2: Making It “Pop”</strong></p><p>But like any user, I wanted it to look a bit more exciting.<br>So I asked the AI to <strong>make it pop</strong>.</p><p>The result? A literal <strong>popping animation</strong>!<br>It was fun, but quickly I realized this was a bad idea for serious chess players.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*GRceoDgV5qL1uFO2BJj6wg.gif" /></figure><p>When serious chess players are in a match, <strong>attention is currency</strong>. The clock should be visible but not <strong>demanding attention</strong>.</p><p>So I gave this feedback:</p><pre>Well this does pop but the animation actually makes the clock a distraction and because<br>the clock is going to be right next to the board, we don&#39;t want players&#39; attention to be<br>grabbed by the pulsating clock while they are working on their next move, so no animations please.</pre><p>Seconds later, I had a clean, functional screen — exactly what I needed.</p><p><strong>Step 3: Adding Fischer Increment</strong></p><p>Then came the final touch: implementing the <strong>Fischer Increment</strong>.<br>For those who don’t know, it’s a rule where each player gains a few extra seconds after every move — ensuring time pressure doesn’t kill the game too early.</p><p>Here’s the prompt I used:</p><pre>The time controls screen needs to add one more capability, the time reward per<br>completed move, which will by default be 0 but can be configured for the game in terms of<br>only seconds.<br>The reward works in a way where for each completed move the player is rewarded some<br>seconds, if 2 seconds have been configured, then when white completes the move white<br>will get remaining time + 2 seconds.</pre><p>And just like that, the app supported custom increments per move.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*QZvcDVK2lG9EjVCmDjhF3g.gif" /></figure><p><strong>Step 4: Deploying Instantly</strong></p><p>What impressed me most was how quickly this went from <strong>idea → app</strong>.</p><p>What worked really well for me:</p><p>✅ Writing <strong>clear prompts</strong> with expected outcomes<br>✅ Ability to point directly (<em>visually</em>)at what felt wrong (like the distracting animation)<br>✅ <strong>1-click deployment</strong> — the app was ready to share instantly</p><p><strong>The Final Result</strong></p><p>I ended up with <strong>Chronos Duo</strong> — a simple, modern, distraction-free chess clock app.<br>Here’s the live version:<br>👉 <a href="https://upo4jn3x9zcwv46sad12.share.dreamflow.app/">https://upo4jn3x9zcwv46sad12.share.dreamflow.app/</a></p><p>Try building something yourself on <strong>Dreamflow </strong><a href="https://app.dreamflow.com/">https://app.dreamflow.com</a> and let me know what you create.</p><p>Sometimes, the best way to explore what AI can do is to start small, but build something useful and real.<br>For me, that small step was a chess clock — and it turned into a powerful reminder of how quickly ideas can come alive today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6f28de417af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter for Desktop: Create and Run a Desktop Application]]></title>
            <link>https://medium.com/flutter-community/flutter-for-desktop-create-and-run-a-desktop-application-ebeb1604f1e0?source=rss-97a8caf7f5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebeb1604f1e0</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[flutter-for-desktop]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Ayush Shekhar]]></dc:creator>
            <pubDate>Fri, 17 May 2019 09:10:09 GMT</pubDate>
            <atom:updated>2019-10-07T14:58:02.274Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*R6DMS5jdqsGDvImd" /><figcaption>developer quest flare filesPhoto by <a href="https://unsplash.com/@_imkiran?utm_source=medium&amp;utm_medium=referral">Sai Kiran Anagani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Google I/O 2019 was about innovation, and for Flutter it was about going beyond mobile apps. The technical preview for <a href="https://medium.com/flutter-community/flutter-create-and-deploy-a-website-from-scratch-4a026ebd6c">Flutter Web</a> was released, and a live demonstration showed how Flutter apps can run on Desktop environments, like Chrome OS, Linux, Mac OS, or Windows. In this article we will go through the process of running a new or an existing Flutter application on a Desktop environment.</p><p>Let’s get going.</p><p>In my attempts, I have found that there are multiple ways to do it, so for the sake of simplicity, let’s go with the easiest one.</p><h4>Prerequisites</h4><p>For Flutter to run on Desktop, we must be on the <strong>master </strong>channel, with the latest release. To ensure the same, fire up a terminal and run the following commands.</p><pre>flutter channel master</pre><pre>flutter upgrade</pre><p>Now if we run</p><pre>flutter doctor </pre><p>we should see an output like the one shown below (as of 17th May, 2019)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*b61ck_NwGpEZQDk23Hp2NA.png" /></figure><p>Now with that out of our way, we can see that our even though I am on Ubuntu, the Linux system is not being displayed as a connected device, capable of running Flutter. This is because by default Flutter does not not have desktop support enabled. We can do so by setting the environment variable <strong>ENABLE_FLUTTER_DESKTOP=true</strong>.</p><p>To do this, in a terminal key in the appropriate command:</p><p>On macOS or Linux:</p><pre>export ENABLE_FLUTTER_DESKTOP=true</pre><p>On Windows:</p><p>PowerShell:</p><pre>$env:ENABLE_FLUTTER_DESKTOP=&quot;true&quot;</pre><p>CMD:</p><pre>set ENABLE_FLUTTER_DESKTOP=true</pre><p>Please note that this sets the environment variable for the current terminal session, hence we will be doing all the future steps in this terminal itself.</p><p>Now, let’s run the following command to ensure that our system shows up.</p><pre>flutter devices</pre><p>And in the output, I now see that Linux is connected and available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*gty3MXYLAS41l93vTAqfjQ.png" /></figure><h4>Manual Configuration</h4><p>Flutter for Desktop is still an experimental feature, which means that there is no tooling support for Flutter, also the <strong>flutter create </strong>command does not currently support creating a new desktop application. So the only option is to manually configure the system specific files. Thankfully for us, the Flutter team at Google already did that for us.</p><p>Go ahead and run this in the terminal:</p><pre>git clone <a href="https://github.com/google/flutter-desktop-embedding.git">https://github.com/google/flutter-desktop-embedding.git</a></pre><pre>cd flutter-desktop-embedding</pre><p>The <strong>example</strong> directory is a Flutter application which has all the necessary build scripts, which will be required to run Flutter on MacOS, Windows, and Linux. If we open the <strong>example </strong>folder in VS Code we will be able to see something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*32coe1E_ZLzdIMxFrmXVNg.png" /><figcaption>Notice the linux, macos, and windows folders</figcaption></figure><p>All that is left to do, is run the following command from inside the <strong>example</strong> folder.</p><pre>flutter packages get</pre><p>Just one last step before we go ahead and run our app. The desktop system specific build tools are not download by default, and even though Flutter will download the same when we first run our app, I want to ensure that we have it beforehand. To download the same, run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*Hz7skT9LAiBhhWRM2FJ-vw.png" /></figure><p>Make sure to replace <strong>linux </strong>with <strong>windows </strong>or <strong>macos</strong>, depending on your system.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F4QFAH0qZ0LQnIwVYKT%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F4QFAH0qZ0LQnIwVYKT%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F4QFAH0qZ0LQnIwVYKT%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="312" frameborder="0" scrolling="no"><a href="https://medium.com/media/c97e08eeb5d274f02d3459ec00f22ec7/href">https://medium.com/media/c97e08eeb5d274f02d3459ec00f22ec7/href</a></iframe><p>Congratulations! We are now ready to run our Flutter app as a Desktop application.</p><p>Let’s just run the app first, and we will go over the code boilerplate code after that. In the terminal window, execute:</p><pre>flutter run</pre><p>The terminal output should be something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*Q27t4Og4NtExOOOhsHzl_A.png" /></figure><p>And the ever so beautiful desktop application, will look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mr9RinMVLlk5SUGxDCUCFw.png" /><figcaption>Flutter App Running on Desktop</figcaption></figure><p>Let’s go through the boilerplate code now:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/016ff13e8558a5ca5f45dc5b7383d908/href">https://medium.com/media/016ff13e8558a5ca5f45dc5b7383d908/href</a></iframe><p>Most of this code is the usual Flutter stuff, but there are some lines that are different.</p><pre>import ‘dart:io’ show Platform;</pre><pre>import ‘package:flutter/foundation.dart’ show debugDefaultTargetPlatformOverride;</pre><p>and</p><pre>debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia;</pre><p>This code provides a way to override the default target platform. This can be used based on the requirements of the application. To know more about the same, <a href="https://github.com/flutter/flutter/wiki/Desktop-shells#target-platform-override">click here</a>.</p><h4>Running Existing Apps on Desktop</h4><p>Now that we have the necessary config files and scripts. We can run any of our existing apps on desktop.</p><p>To do that there are two ways:</p><ol><li>We can copy the system specific folder (linux, macos, or windows) from the example directory to our existing project directory. (<strong>not recommended</strong>)</li><li>We can replace the <strong>lib</strong> folder inside the <strong>example </strong>directory with our existing code, and replace the <strong>pubspec.yaml </strong>file, with our existing one. (<strong>recommended</strong>)</li></ol><p>I would recommend going with the second method, because a lot of times, I have seen that the 1st one doesn’t work. I have an app called <strong>Cryptex</strong>, and when I ran it on desktop, here’s what I had.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mErwwNfNPtZX0QyqsJJ0oQ.png" /><figcaption>Cryptex running on Ubuntu 18.04</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZyWQ1ufHMk7XeQIYasS4-w.png" /></figure><p>Needless to say the <strong>Copy</strong>, and <strong>Share </strong>buttons didn’t work because they will need platform specific customisation. But all the core Flutter features worked like a charm. ❤</p><p>Flutter is actively advancing towards the Web and Desktop platforms, but theses are early days. I can’t wait to use Flutter on a production app for mobile, web and desktop in the near future. Flutter on every screen, what’s more amazing that that, right!?</p><p><em>You can reach out to me on </em><a href="https://www.linkedin.com/in/ayushshekhar/"><em>Linkedin</em></a><em>, see my projects on </em><a href="https://github.com/ayush221b"><em>Github</em></a><em>, or follow me on </em><a href="https://twitter.com/007221b"><em>Twitter</em></a><em>, to get regular updates and happenings from the world of Flutter, and mobile development. Thank you for reading.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebeb1604f1e0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/flutter-for-desktop-create-and-run-a-desktop-application-ebeb1604f1e0">Flutter for Desktop: Create and Run a Desktop Application</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter: Create and Deploy a Website From Scratch]]></title>
            <link>https://medium.com/flutter-community/flutter-create-and-deploy-a-website-from-scratch-4a026ebd6c?source=rss-97a8caf7f5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a026ebd6c</guid>
            <category><![CDATA[flutter-web]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[flutter-website]]></category>
            <category><![CDATA[hummingbird]]></category>
            <dc:creator><![CDATA[Ayush Shekhar]]></dc:creator>
            <pubDate>Wed, 08 May 2019 11:33:44 GMT</pubDate>
            <atom:updated>2019-05-09T15:06:17.894Z</atom:updated>
            <content:encoded><![CDATA[<h3>Flutter For Web: Create and Deploy a Website From Scratch</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qi6pkMQaW9EjWvav" /><figcaption>Photo by <a href="https://unsplash.com/@zmachacek?utm_source=medium&amp;utm_medium=referral">Zdeněk Macháček</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The project, which was code named Hummingbird, has finally seen the light of the day, with Google announcing the first technical preview of <a href="https://flutter.dev/web">Flutter for Web.</a> This amazing implementation allows us to create Flutter apps, and compile it to a standards-web project, with just a few commands. In this article, we will go through the implementation of Flutter on the Web, from scratch.</p><p>Before we start, let’s just upgrade flutter, so we have the latest version. Inside a terminal window, run:</p><pre>flutter upgrade</pre><p>Wait, for it to finish…Done. Great! Go ahead.</p><h3>Add Dart SDK to Path</h3><p>We need not install any Dart SDK separately, to be able to run flutter_web. All we have to do is add the existing Dart SDK, which ships with Flutter, to our path environment variable.</p><p>The path which we will need to add, is this:</p><pre>&lt;path to our flutter directory&gt;/bin/cache/dart-sdk/bin</pre><p>If you need help updating your PATH variable, then refer <a href="https://stackoverflow.com/questions/14637979/how-to-permanently-set-path-on-linux-unix">this</a> for Ubuntu/Linux/macOS, and <a href="http://www.oxfordmathcenter.com/drupal7/node/13">this</a> for Windows.</p><p>With that out of our way, let’s get going with Flutter.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3o85xIapRKSRgdiSaY%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3o85xIapRKSRgdiSaY%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F3o85xIapRKSRgdiSaY%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/a071d72e86d5745e561157c07ce1d223/href">https://medium.com/media/a071d72e86d5745e561157c07ce1d223/href</a></iframe><h3>Create and Configure New Flutter Web Project</h3><p>First of all, we will create a new Flutter project, let’s name it <em>hummingbird, </em>(how original! <strong><em>*winks*</em></strong>). We can create the project manually from the terminal, but an easier way would be to do it using our IDE, so that we don’t have to go through the Flutter Web setup, manually.</p><p>Open up VS Code, and press <strong>Ctrl+Shift+P</strong>, and start typing <strong>flutter</strong>, we see that in the list of available actions for Flutter, there is an option that says, <strong>Flutter: New Web Project</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*87Aq0R-axyFsA6oPVFaOwg.png" /></figure><p>Select that option and hit Enter. VS Code might prompt to install some required extensions, just agree and install to continue.</p><p>In the next screen, type in the name of the project, which for us is, <strong>hummingbird</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*uBSX-cPAYV6ZP5YdefIlRw.png" /></figure><p>Once that is done, VS Code will automatically create a new Flutter Web Project for us. Then, from inside the hummingbird project folder, execute the following:</p><pre>flutter packages pub global activate webdev</pre><pre>flutter packages upgrade</pre><p>This ensures that the <a href="https://pub.dev/packages/webdev"><strong>webdev</strong></a><strong> </strong>which is needed to build Flutter for Web is globally installed, and the required dependencies are present. The output will be something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*IWgGtcqNpEHI4SPDMWPAMw.png" /></figure><p>The last thing to do here is to ensure that we are able to run the webdev command from our terminal. To do that, we need to add the following folder to our PATH.</p><pre>&lt;path to flutter directory&gt;/.pub-cache/bin</pre><p>Once we are done with all of this, <strong>congratulations! </strong>We are now ready to run Flutter for the Web.</p><p>Before we run, let’s check out the new project structure. We can see that there’s a new folder named <strong>web </strong>which contains two files <strong>index.html </strong>and <strong>main.dart</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*aJpf7yF8yRqwuD7g7cy6qA.png" /></figure><p>The website that we are going to create with Flutter is what we call a SPA or a Single Page Application. So basically what’s happening is that all the Dart code which we write, is compiled into JavaScript, which when embedded inside the <strong>index.html</strong> file, manipulates the Document Object Model, to render our code on the screen (<em>tried to put it in a simple way</em>). We can also edit the <strong>head </strong>tag of the <strong>index.html </strong>file to provide meta tags, for SEO purposes. We will dive deeper into SEO for websites built using flutter, in future articles.</p><p>So, let’s just stop talking and start doing.</p><h3>Running the Flutter Project in Browser</h3><p>Well, if you followed all the above mentioned steps properly, then this should be as simple as executing the following command from inside the flutter web project directory.</p><pre>webdev serve</pre><p>You should get an output like this, on the terminal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*WrfivCAjnCZfR9o_8_nwYA.png" /></figure><p>Once you see that succeeded message, you can now take a deep breath, and open up your browser to see the Future of Cross-Platform development. Just navigate to <strong>localhost:8080</strong>, and the let the magic unfold before your eyes.</p><p>On a successful run, you will be able to see this screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_vvK4IrggdAevHnbpPm4Kg.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FdkGhBWE3SyzXW%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FdkGhBWE3SyzXW%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FdkGhBWE3SyzXW%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/77119e72c169f06b9429000bdca15651/href">https://medium.com/media/77119e72c169f06b9429000bdca15651/href</a></iframe><p>Using the current method, we won’t be able to see the live changes on our website, so to ensure that we do. Go to your terminal, press <strong>Ctrl + C </strong>to cancel the current operation, and instead, run the following:</p><pre>webdev serve --auto restart</pre><p>Just refresh the browser tab which is running <strong>localhost:8080 </strong>once, and that’s it. Now all we have to do is make whatever changes we want, to our code inside the <strong>lib </strong>directory, just like we usually do with a Flutter app, and tada! We can see all changes live, in real-time, right inside our browser tab.</p><p>It is to be noted here that this is a <strong>stateless hot-reload</strong>.</p><p>Let’s make a few changes to our Flutter Website (<em>happily glaring every time I write it </em><strong><em>*sighs*</em></strong>) before we go ahead and build it for release, and then deploy it.</p><p>Replace the contents of your <strong>lib/main.dart </strong>file with the following code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ecee7279eb6239af180095210c39771/href">https://medium.com/media/3ecee7279eb6239af180095210c39771/href</a></iframe><p>And in your <strong>web/index.html</strong> file, make the following changes:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ce75bd6a2c7638ab6976a9751dbcb84/href">https://medium.com/media/3ce75bd6a2c7638ab6976a9751dbcb84/href</a></iframe><p>Remember to replace <strong>Ayush Shekhar</strong> with your name.</p><p>After all of this, we have a website which looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P-i68GPNBi7HRpcX6acDgQ.png" /></figure><p>I am already in love. <strong><em>*sighs again*</em></strong></p><h3>Build for Release and Deploy</h3><p>Let’s get this done fast.</p><p>Open the project in your terminal and execute.</p><pre>webdev build</pre><p>The expected output in the terminal, is something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*-BM6xmVKaPi9OxLUy5NkgQ.png" /></figure><p>After the command is executed, we can see that in our project folder a new folder named <strong>build</strong> is created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*UlVehmemYuD2g2k9nar5lA.png" /></figure><p>This is the folder, which we are now going to deploy.</p><p>There can be a lot of ways for deploying, the method that I am going to use is <strong>surge</strong>. It comes as a NPM package, and helps to deploy static sites to a remote URL, fast, easy and free. Find out more about it <a href="https://surge.sh/">here</a>.</p><p>First of all we need Node js installed, so if you don’t have it, get it from <a href="https://nodejs.org/en/">https://nodejs.org/en/</a></p><p>Let’s install surge. Open up a terminal and do:</p><pre>npm i -g surge</pre><p>This command will install surge globally on your system, and hence we can use it everywhere. Now, we will go back to our <strong>hummingbird </strong>project folder and execute the following:</p><pre>cd build<br>surge</pre><p>Surge will now ask you for your email and password, quickly key them in. Choose a new password, or enter the one for your existing account. Once that is done, surge will automatically upload and deploy the website, and map it to it’s CDN.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*c7OWS4EG2BqJwbnuC8baZw.png" /></figure><p>Congratulations! You have successfully created a website with Flutter and deployed it in the internet, for the world to see. You can browse your website by going to the remote URL provided by surge in the terminal output, in my case it’s this: <a href="http://clear-balance.surge.sh/#/">http://clear-balance.surge.sh/#/</a></p><p>I can’t wait to see how this technology grows and flourishes over time.</p><p><em>You can reach out to me on </em><a href="https://www.linkedin.com/in/ayushshekhar/"><em>Linkedin</em></a><em>, see my projects on </em><a href="https://github.com/ayush221b"><em>Github</em></a><em>, or follow me on </em><a href="https://twitter.com/007221b"><em>Twitter</em></a><em>, to get regular updates and happenings from the world of Flutter, and mobile development. Thank you for reading.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a026ebd6c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/flutter-create-and-deploy-a-website-from-scratch-4a026ebd6c">Flutter: Create and Deploy a Website From Scratch</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Venturing into Open Source | GSSOC 2018]]></title>
            <link>https://medium.com/fnplus/venturing-into-open-source-gssoc-2018-db4ba05a140d?source=rss-97a8caf7f5a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/db4ba05a140d</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[gssoc-2018]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[girlscript]]></category>
            <dc:creator><![CDATA[Ayush Shekhar]]></dc:creator>
            <pubDate>Wed, 22 Aug 2018 15:41:11 GMT</pubDate>
            <atom:updated>2018-08-22T15:41:11.396Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ECTFj-AEjEk_i1ra" /><figcaption>Photo by <a href="https://unsplash.com/@nesabymakers?utm_source=medium&amp;utm_medium=referral">NESA by Makers</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Really doesn’t seem too long ago, when I used the term Open Source only because it was trendy among developers, without knowing anything about it. Today, if I can swing git commands with my muscle memory and find and contribute to various open-source projects, it is all because of GirlScript Summer of Code 2018.</p><p>Back in the month of May this year, I got to know about this event from a friend who happened to be one of the organisers, and immediately decided to participate in it. After which I had to wait, for quite some time, before the final selected projects were listed on the website and it was finally time for us to pick where we belonged.</p><p>I have been a web developer of sorts, for the past 5 years, or so. I began my development journey with a social network made with a free PHP script, and then moved on to WordPress. In 2018, I decided to move on to proper code-based web development, and it was then that my love for JavaScript started to kindle. When I had filled in the Registration form for GSSOC- 2018, it had been only a couple of days after deploying my first full-stack web application: <a href="http://facerecengine.herokuapp.com/">http://facerecengine.herokuapp.com</a> . Naturally, I was very excited to dive right in, into the world of development, and build projects which had real-life utility.</p><p>Fortunately for me, there were a number of web-dev based projects in GSSOC and I was excited to work on all of them. The first thing I did, was to join all the relevant channels. I then forked all those repositories into my own GitHub account, cloned them on my local machine, and installed all dependencies.</p><p>However, I could and I did, work only on one Project, which is GirlScript India’s official Website.</p><p>I submitted one of my final Pull Request’s today, and looking back, I can definitely say that the experience was amazingly enriching. With the strong guidance of mentors like <a href="https://github.com/vishwarajanand">Vishwaraj Anand</a>, and <a href="https://github.com/thealphadollar">Shivam Kumar Jha</a>, the work was always very well sorted and the issues were properly organized.</p><p>Overall, GSSOC was a perfect blend of learning and competition. I can remember the thrill of receiving info about a new issue on mail, and rushing to the comments to claim it before anyone else did. But, I also remember how participants collaborated in the comments and helped each other out, without any greed of points, or recognition. GSSOC instilled in us the core principles of collaborative approach and productivity.</p><p>I am waiting for the results to be out, hoping that I win something. Plus, I can’t wait to share the final website which I helped create. Will update soon.</p><p>Also, for all those of you who are looking forward to starting your open-source journey, this will be your Holy Grail : <a href="https://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project/">https://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project/</a></p><p>Keep Coding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db4ba05a140d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fnplus/venturing-into-open-source-gssoc-2018-db4ba05a140d">Venturing into Open Source | GSSOC 2018</a> was originally published in <a href="https://medium.com/fnplus">Fnplus Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>