<?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[Kanlanc - Medium]]></title>
        <description><![CDATA[A call to all tech enthusiasts, passionate developers, and experienced eccentrics. Only if you are a developer who wants to be constantly challenged by what you thought was possible and look into amazing projects others are upto all across the world, you need to subscribe. - Medium]]></description>
        <link>https://medium.com/kanlanc?source=rss----1afe9a8a999b---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Kanlanc - Medium</title>
            <link>https://medium.com/kanlanc?source=rss----1afe9a8a999b---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:45:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/kanlanc" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Signoz: The Startup’s Answer For Distributed Tracing and Metrics Tracking]]></title>
            <link>https://medium.com/kanlanc/signoz-the-startups-answer-for-distributed-tracing-and-metrics-tracking-a2db131d03f2?source=rss----1afe9a8a999b---4</link>
            <guid isPermaLink="false">https://medium.com/p/a2db131d03f2</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Vikranth Kanumuru]]></dc:creator>
            <pubDate>Tue, 01 Feb 2022 20:15:25 GMT</pubDate>
            <atom:updated>2022-02-01T09:19:23.196Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Alternative for a DevOps Team For An Resource Strapped Startup</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QCVeDP6EaPylc_Dv" /><figcaption>Photo by <a href="https://unsplash.com/@juanjodev02?utm_source=medium&amp;utm_medium=referral">Juanjo Jaramillo</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>One fine Friday evening,</p><p>Developer: “We have no clue where the error is coming from!!”</p><p>CTO: “What is the DevOps Team doing right now?!!”</p><p>Developer: “But sir, we don’t have a DevOps team! We will have to figure out from which of the microservices our issue is coming from all by ourselves. This is gonna take quite a bit of effort and probably an all nighter…”</p><p>CTO: “That doesn&#39;t sound so bad…”</p><p>Developer: “….for three days straight….”</p><p>CTO: “ Why the heck would it take so long? Don’t we have a tracing tool in place like DataDog?!!”</p><p>Developer: “Sir…..you were too greedy to get more DevOps people for that and to pay for the service.”</p><p>CTO: “…. you are fired with immediate effect”</p><p>Developer: “I am the only one who can solve this issue in a reasonable time.”</p><p>CTO: “…You are rehired with immediate effect”</p><p>Developer: “With a hike and bonus?”</p><p>CTO: “…Damn it, alright with a hike and bonus”</p><p>Jokes aside, for a startup that is tight on resources on all aspects like human and financial, building a microservices architecture with full deployments and debugging automation is gonna be very hard. (Notice I said hard but not impossible)</p><p>Generally, the pipeline built with open source tools for tracking metrics and tracing errors looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0JD41TwISUlvHXbUMSnKog.png" /><figcaption><a href="https://www.youtube.com/watch?v=kRkz7mCugus">https://www.youtube.com/watch?v=kRkz7mCugus</a></figcaption></figure><p>The tools used in this pipeline are Prometheus, Jaegar, Kafka. Its easily seen the amount of effort and knowledge required to set this up and integrate it with your application. Even more, when an error comes up on a Friday night after deployment and tracing is required to figure out what went wrong and where before your weekend is confiscated by your boss.</p><blockquote><strong>You can read more about the “why” of Signoz over </strong><a href="https://signoz.io/blog/signoz-vs-prometheus-jaeger/"><strong>here</strong></a></blockquote><p>The developers of Signoz understood this and to make other developers&#39; lives easier and add more work-life balance to your life, built Signoz that basically does what the above pipeline is meant to do with easy setup and clean dashboards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hbYx0FY79dT1uYnc0Kg3Wg.png" /><figcaption><a href="https://www.youtube.com/watch?v=kRkz7mCugus">https://www.youtube.com/watch?v=kRkz7mCugus</a></figcaption></figure><p>In this article, we are gonna build a bit more than the basic application given in the documentation to understand exactly how is this tool so life-changing(Pun Intended).</p><h3>Setup</h3><p>It’s pretty easy to get Signoz up and running just by following the documentation. The application we are gonna build is in Nodejs and the docs for it can be found <a href="https://signoz.io/docs/instrumentation/nodejs/">here</a>.</p><blockquote>Note: I couldn’t get it running on windows but I was strapped for time, so I just used my Macbook to get it running.</blockquote><p>If everything is working on the terminal after you run the command given in the docs, go to <a href="http://localhost:3000/application">http://localhost:3000/application</a> and it should look like the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6OP8pi58uoghfDkEXXjyCg.png" /><figcaption>Image by Author</figcaption></figure><p><strong>If you don’t see your node_app on the dashboard, don’t worry and just send a few requests to that API and it will appear on the dashboard.</strong></p><p>For example,</p><blockquote>If your application that you built using the doc is running on port 9090, send a few get requests to it by going to <a href="http://localhost:9090/hello">http://localhost:9090/hello</a> and reload the page several times.</blockquote><h3>Enhancing The Basic Application</h3><p>When I first went through the docs, I couldn’t really tell how useful Signoz would be because of the very basic application given in the documentation.</p><p>So, I went ahead and improved it by adding external API calls, internal setTimeout’s, local DB, and a few other routes to truly understand the capabilities of Signoz.</p><p>The GitHub link for the project is <a href="https://github.com/kanlanc/Signoz-Enhanced-Basic-Application">here</a></p><h3>Application Metrics and Routes Overview</h3><p>These are the metrics of the application from the above Github link after you send GET requests to the routes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NgPjWbM-EanJyVZ32iJiSQ.png" /><figcaption>Image by Author</figcaption></figure><p>You can see from the image here that I primarily added 4 routes to the basic application.</p><p>The externalapidelay route true to its name calls an API from beeceptor, a free online API mock tool that lets you configure delay responses. I made it to be 5 seconds delay and adding that to the time it takes for our route to call this API, the total time taken becomes around 6 seconds.</p><p>The internalapidelay route introduces delay with the help of setTimeout function and I set it to 2 seconds</p><p>The databaseread route reads information from a localDB created with the help of lokiJS but turns out Signoz doesn’t recognize lokiJS as an actual database and didn’t consider reads and writes to it as database calls, so I’ll cover that possibly in a later article with the help of a true database like MySQL, or MongoDB.</p><p>The sendError route is simply a route that returns an error like 404 or 500 so we can understand how does Signoz tracing helps catch our bug-producing route.</p><pre>//Code for all the above routes</pre><pre>app.get(&quot;/externalapidelay&quot;, (req, res) =&gt; {</pre><pre>// Introduces 5 second dalay configurable in beeceptor</pre><pre>axios</pre><pre>.get(&quot;https://infra.free.beeceptor.com/beerceptordelay&quot;)</pre><pre>.then((response) =&gt; {</pre><pre>console.log(response.data);</pre><pre>res.status(200).send(response.data);</pre><pre>});</pre><pre>});</pre><pre>app.get(&quot;/internalapidelay&quot;, (req, res) =&gt; {</pre><pre>setTimeout(() =&gt; {</pre><pre>res.status(200).send({ message: &quot;I am sorry I am late by 2 seconds&quot; });</pre><pre>}, 2000);</pre><pre>});</pre><pre>app.get(&quot;/senderror&quot;, (req, res) =&gt; {</pre><pre>res.status(500).send({ message: &quot;We have an emergency!!&quot; });</pre><pre>});</pre><pre>app.get(&quot;/databaseget&quot;, (req, res) =&gt; {</pre><pre>// call get lokidb here</pre><pre>db.loadDatabase({}, () =&gt; {</pre><pre>var urls = db.getCollection(&quot;urlList&quot;);</pre><pre>var url = urls.findOne({ urlCode: 1 });</pre><pre>if (url) {</pre><pre>return res.json({ longUrl: url.longUrl });</pre><pre>} else {</pre><pre>return res.status(404).json({ message: &quot;No URL Found&quot; });</pre><pre>}</pre><pre>});</pre><pre>});</pre><h3>Finding Bottlenecks In Your Application</h3><p>Signoz provides a clear understanding of which routes in our application get requests, their frequency, the time they take to give a response to the user and the number of users that experience this latency(P50, P95, and P99 are percentiles of users that experience that particular amount of delay)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*7H4FK8PPAHRsBnpPkMYiEw.png" /><figcaption>Image by Author</figcaption></figure><p>This information can be extremely crucial for improving the user experience because end users are usually an impatient bunch.</p><blockquote><strong>Website conversion rates drop by an average of 4.42% with each additional second of load time (between seconds 0–5)</strong></blockquote><p>If you can figure out which route is hoarding the resources and work on optimizing them, the value you add to the company is immense.</p><p>From the above picture, we understand that externalapicall is taking 6 seconds to give an answer back to the user, let&#39;s explore it further.</p><p>Clicking on the route, I am taken to this page that has more information about this particular route and I can apply various filters to get more info about it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8BMWHpjy7C5_gXieDpF-6w.png" /></figure><p>What’s better, In the above picture, let’s say this is not a common occurrence and only the latest call had this delay. We can click on this particular request to get more info about it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9w5zBjxQsYLXSTlGPP8TEg.png" /><figcaption>Image by Author</figcaption></figure><p>By doing so, we now see every phase the request went through to understand where exactly our bottleneck originated from, and from the above picture, it is clear that the delay was actually caused by a get request which was sent to the beeceptor endpoint.</p><p>Now, I know what your thinking…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FLpLd2NGvpaiys%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FLpLd2NGvpaiys%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FLpLd2NGvpaiys%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/a73285a74eac88aab0e4fe8881ba8abd/href">https://medium.com/media/a73285a74eac88aab0e4fe8881ba8abd/href</a></iframe><p>But wait there’s much more you can do with Signoz like figuring out where errors are coming from your backend using Traces, using the service map tab to get a bigger picture of all the services and their relationships with each other, and many more which will be covered in a different article.</p><h3>Conclusion</h3><p>Signoz is one of those hidden gems that is both open source and is extremely powerful when used correctly.</p><p>The setup is extremely easy and requires zero knowledge to get up and running but the value it gives in return wants me to willingly pay for it.</p><p>If there are any other use cases or new features that I might have missed, do let me know.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2db131d03f2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kanlanc/signoz-the-startups-answer-for-distributed-tracing-and-metrics-tracking-a2db131d03f2">Signoz: The Startup’s Answer For Distributed Tracing and Metrics Tracking</a> was originally published in <a href="https://medium.com/kanlanc">Kanlanc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guide to Getting Into the Right NFT’s]]></title>
            <link>https://medium.com/kanlanc/should-you-get-into-nfts-80628fa2b24d?source=rss----1afe9a8a999b---4</link>
            <guid isPermaLink="false">https://medium.com/p/80628fa2b24d</guid>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[innovation]]></category>
            <dc:creator><![CDATA[Vikranth Kanumuru]]></dc:creator>
            <pubDate>Wed, 10 Nov 2021 18:36:20 GMT</pubDate>
            <atom:updated>2021-11-11T15:20:35.402Z</atom:updated>
            <content:encoded><![CDATA[<h4>The crazy buying has come finally come to an end, but read to the end for an insider info!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QW1Js_jsa197w1EL" /><figcaption>Photo by <a href="https://unsplash.com/@moneyphotos?utm_source=medium&amp;utm_medium=referral">Old Money</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I don’t know about you but when I hear stories about 12 year old’s selling their NFT collections they made using simple Python scripts for fortunes, it definitely sparks a burning fire under my seat.</p><p>Like I’ve written so many scripts in Python for various computer vision tasks and I am sure you did too, but can any of these sell for a fortune like theirs?</p><p>Probably not.</p><p>But then what’s the secret of the kids? …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*6QTPgrT1CF2D1rP7rC_YDQ.png" /></figure><p>Jokes aside, I know many of my friends who jumped into Opensea which is the most popular platform to buy NFT’s, to fish for hidden “gems” only to bark up a huge sum and be left with a weird-looking image that had no value.</p><p>So….am I telling you not to turn back and never turn your head at NFT’s?</p><p>Definitely not!</p><p>Why? Because it&#39;s a gold mine of an opportunity of course, duh!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*CTS3HBbb0LKtrjfRdSpCrg.png" /></figure><p>I know, I know, my bad, so what I am trying to say is that it’s only worth it if you look at the right places and for me, that is play-to-earn games like Axie infinity, Gods Unchained, Sandbox, Decentraland, and …etc.</p><p>Basically, although the bull season(crazy buying) has come to an end, it does not spell the end of NFT’s but actually the opposite which is the rise of NFT’s with utility.</p><p>Using the general definition, a particular item has utility when a group of people comes together (in other words, a community) and decides this particular item is of use to this community and hence has value. This value doesn’t have to make sense to people outside this said community as long as it serves some purpose inside.</p><p>This is why I believe in play-to-earn games especially the ones that have communities because irrespective of what outsiders think the value of the NFT is decided by the insiders.</p><p>I am especially very interested in <a href="https://godsunchained.com/account/register?referral=eVXhoovWlL">Gods Unchained</a> because it is relatively a new game with huge upside potential. The discord community is very active and they recently just finished their ICO in which their tokens were completely sold out! (I got up at 5 am just to end up waiting for nothing 😢)</p><p>This alone is enough to explain their potential but they are cranking it up further with NFT card tradables with different limited expansion sets thus increasing both diversity and scarcity.</p><p>Furthermore, all of this is done in ImmutableX which is a layer 2 solution for NFT’s that reduces transaction fees which further reduces friction to trade.</p><p>This is the gem I am looking out for and what I truly believe is gonna blow up in the coming soon future especially considering card games popularity in our history.</p><p>Check it out yourself <a href="https://godsunchained.com/account/register?referral=eVXhoovWlL">here</a></p><h3>Want more from me?</h3><ol><li><a href="https://kanlanc.medium.com/subscribe"><strong>Subscribe</strong></a><strong> </strong>to get notified when I publish articles and for receiving updates as soon as I complete how to get into XR and 3D modeling roadmaps.</li><li><a href="https://kanlanc.medium.com/membership"><strong>Support my writing with no extra cost</strong></a> to you by becoming a referred Medium member.</li><li>Connect and reach me on <a href="https://www.linkedin.com/in/vikranth-kanumuru-751a73125/"><strong>Linkedin</strong></a><strong> and </strong><a href="https://twitter.com/kanlanc"><strong>Twitter</strong></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80628fa2b24d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kanlanc/should-you-get-into-nfts-80628fa2b24d">Guide to Getting Into the Right NFT’s</a> was originally published in <a href="https://medium.com/kanlanc">Kanlanc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Next Step in NFT’s and Why 3D Designers are Gonna Be the Next Millionaires]]></title>
            <link>https://medium.com/kanlanc/the-next-step-in-nfts-and-why-3d-designers-are-gonna-be-the-next-millionaires-db67e9d4e2d5?source=rss----1afe9a8a999b---4</link>
            <guid isPermaLink="false">https://medium.com/p/db67e9d4e2d5</guid>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Vikranth Kanumuru]]></dc:creator>
            <pubDate>Tue, 09 Nov 2021 08:11:18 GMT</pubDate>
            <atom:updated>2022-03-21T10:08:58.668Z</atom:updated>
            <content:encoded><![CDATA[<h4>Work on your Blender skills or with a 3D designer before it’s too late!!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w4rM_Ozn9Dlzi9H5yn-ynw.png" /><figcaption>Image by Author</figcaption></figure><p>At the age of 12, while I was struggling for the life of me if I should play Mario kart or God of War, a kid made 400,000$ selling jpeg files of whales he created in a spur of a moment after adding his unique “creative” twist into it.</p><blockquote><a href="https://www.cnbc.com/2021/08/25/12-year-old-coder-made-6-figures-selling-weird-whales-nfts.html">This 12-year-old coder is set to earn over $400,000 after about 2 months selling NFTs</a></blockquote><p>Am I jealous? <strong><em>Absolutely</em></strong></p><p>Can I do what he did? <strong><em>Absolutely</em></strong><em> </em><strong><em>not!</em></strong></p><p>Is it because I suck at drawing? <strong><em>Possibly</em></strong></p><p>But a bigger reason would be because there was a deeper meaning in what the NFT meant and this tweet explained this the best</p><h3>Sophisticated Art Speculator on Twitter: &quot;What a cool story behind Weird Whales NFT.12 year old builds and launches his own NFT project?Can&#39;t pass up on that part of history.I barely minted 20 before it sold out. Never spammed fastest gas harder lol. / Twitter&quot;</h3><p>What a cool story behind Weird Whales NFT.12 year old builds and launches his own NFT project?Can&#39;t pass up on that part of history.I barely minted 20 before it sold out. Never spammed fastest gas harder lol.</p><h3>Non Fungible Tokens(NFT’s)</h3><p>Before we proceed, let&#39;s understand in simple terms what exactly does the term “Non Fungible Token” means:</p><p>Fungible, according to google means “something that can be replicated or copied”, so non-fungible means the exact opposite of that which is basically “unique that cannot be copied or replicated”</p><p>And token means — well — token: like how Bitcoin is a token. It’s a representation of some value.</p><p>NFT’s first became a thing when <a href="https://www.cryptokitties.co/">CryptoKitties</a> first came out with their novel idea of selling unique virtual cats on the blockchain to the players.</p><blockquote><em>CryptoKitties is a blockchain-based virtual game that allows players to adopt, raise, and trade virtual cats. Cats, on a blockchain!</em></blockquote><blockquote><em>— Andrew Steinwold</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BeXXblbdsEE3IcTI.png" /><figcaption>Cryptokitties, one of the first NFTs. Source from <a href="https://medium.com/@aidobreen/how-does-cryptokitties-co-work-e5071c0abf73">Aidan Breen</a></figcaption></figure><p>From that point onward, NFT’s have only been exploding in popularity. Just look at the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MymniKzpOXmzmCYd.png" /><figcaption>Source: DappRadar</figcaption></figure><p>While many might think this is a bubble, many others are adamant that this is the next step.</p><p>I for one, am on the side of the latter and I believe the rich with all the tax evasive measures possible with art would not let go of this perfect opportunity either let alone all the other use cases that are possible with NFT’s.</p><p><strong>If you are curious about the possible use cases with an NFT and would like me to iterate on that, do let me know in the comments and </strong><a href="https://kanlanc.medium.com/subscribe"><strong>subscribe</strong></a></p><p>But I also believe what we see currently is also not the final evolution of NFT’s.</p><h3>Adding An Extra….Dimension</h3><p>We’ve only seen 2D images or gifs made into NFT’s until now, but after coming across the Cybertron punk game I came to a sudden realization.</p><blockquote>If a gif of Lebron James dunking can go for 200,000$, what about a 3D character of him that could do more than a single dunk?</blockquote><blockquote>— Vikranth Kanumuru</blockquote><p>This 3D character if equipped with a skeleton that allows it to maneuver around and imitate any movement possible both human and inhuman, just imagine the possibilities.</p><blockquote>NFT’s are gonna be the Rolex in the Metaverse</blockquote><blockquote>— Vikranth Kanumuru</blockquote><p>Even the world of FIFA games would be forever changed. I reckon players would have their 3D characters made and would only rent their characters out to game developers for usage, thus enabling them to get passive income forever.</p><p>This ain’t a baseless guess cause Travis Scott and Ariana Grande made a fortune by performing in the metaverse similarly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0UDgCxEpGn5kCfRd.png" /><figcaption>Forbes</figcaption></figure><p>Of course, this concept extends to as far as trading card games like Yu-Gi-Oh too!</p><p>Imagine standing beside the hydra in various locations while it&#39;s breathing fire in the background, add Mixed Reality into it and we are in for a completely new world of virtual monsters that would literally resemble the <a href="https://en.wikipedia.org/wiki/Bakugan_Battle_Brawlers">Bakugan battle brawlers anime</a>.</p><p>Forget popular celebrities, even regular people like you and me would require 3D characters for identity in the coming revolution for Web 3.0, so might as well start early and mint your unique 3D character NFT before all the cool looks are stolen.</p><p>If you prefer an example of this, I recently came across a youtube channel Xanadu that I believe is currently the face of the Metaverse and will be how the future looks like for us. Here’s one of the videos.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FwSx472esQps%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DwSx472esQps&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FwSx472esQps%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/51deb1b5217bf7e382df00f90fc37801/href">https://medium.com/media/51deb1b5217bf7e382df00f90fc37801/href</a></iframe><p>I too made my very own 3D character for a Hackathon using Photogrammetry a couple of years ago.</p><p>Now, all I gotta do is refine it and mint it into an NFT.</p><p>Not only, do I develop a unique identity in the metaverse but I am effectively immortalized through this 3D character of mine!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*MvE4uQ-St0hZmVKT" /><figcaption>Image By Author</figcaption></figure><h3>But Is It Possible For 3D characters to be NFT’s?</h3><p>The short answer is yes.</p><p>This is why I believe 3D designers are in for a windfall and if they can model popular characters into their 3D models and mint them into NFT’s, that man would probably earn Bitclout Founder: DiamondHands respect.</p><p>Because that is the exact strategy used by Bitclout to get celebrities to sign up early into its platform.</p><p>Underhanded? Yes</p><p>Effective? Very much so apparently from the recent rising popularity of the platform.</p><p>If you would like to read more about that strategy, check out <a href="https://techcrunch.com/2021/03/22/crypto-social-network-bitclout-arrives-with-a-bevy-of-high-profile-investors-and-skeptics/">Bitclout Growth Hacking Strategy</a> and <a href="https://bitclout.com/u/kanlanc">Kanlanc Coins</a></p><p>Coming back to the topic at hand, while performing research for this article, I came across multiple projects in product hunt minting 3D characters into NFT’s.</p><p>Now, I am not sponsored by any of them but I am linking one of them because I think it’s a really cool concept.</p><p>It’s called <a href="https://opensea.io/collection/mekaverse">Mekaverse</a> and it’s now on <a href="https://opensea.io/collection/mekaverse">Opensea</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gJsI1Yd2Q13sCN4xYBIXEA.png" /><figcaption>Mekaverse</figcaption></figure><p><strong>Now, if you are a 3D creator or someone curious who would like a step-by-step tutorial on how to mint a 3D character as an NFT and sell your art, do subscribe to the </strong><a href="https://kanlanc.medium.com/subscribe"><strong>newsletter</strong></a><strong> and let me know what would you like to be added to it in the comments of this article</strong></p><h3>Why You Should Mint your 3D Character ASAP!</h3><p>During the .com bubble, many opportunists got hold of popular companies .com domains by registering as soon as possible for them.</p><p>As these domains are required to be unique, the companies had to buy these domains back from these people at exorbitant prices. For example, Cars.com was valued at <a href="http://domaingang.com/domain-news/cars-com-domain-was-valued-at-872-million-dollars/">$872 million</a></p><p>I can see the same happening with 3D NFT’s.</p><p>If there is an NFT with a character that is similar to yours, you wouldn’t be able to get hold of a customized avatar and would be forced to settle for less or for more $(pun intended). So, while the world still sleeps on this pot of gold, get to work!!</p><p>These characters are not only meant for showing off to people that you have an immortalized 3D version of you in the blockchain(Not gonna lie, that would be pretty dope too) but also because they have actual use cases like using them to:</p><ul><li>Attend VR Events</li><li>KYC by using it as a Virtual Identity Management Tool</li><li>Clothes and accessories shopping ( Instead of putting it on mannequins, you would get to see how would they look on you!)</li><li>and many more!</li></ul><h3>Conclusion</h3><p>Truth is, almost anybody can get started with NFT’s…even a 12-year-old can do it :)</p><p>But for you to secure a cool 3D character that will be your face and representative in the metaverse be it a T-rex or one of the characters from the Mekaverse, you better start working to secure one or minting a new unique one before all of them get bought as NFT’s and you would have to buy them back at much higher prices.</p><p>Now, is 3D modeling easy? Hell no!</p><p>If you don’t trust me, just take a look at blender tutorials on youtube and you will understand just how hard this domain is. But you can hire a 3D modeler from Fiverr, Upwork, or any of the freelance platforms and get a 3D model and mint it into an NFT.</p><h4>(OR)</h4><p>Use Photogrammetry like me to make an exact 3D model copy of you, mint it in the blockchain, and throw it into the metaverse.</p><p>No matter whichever way you go, remember to embrace the change because it’s coming if you like it or not and just have fun.</p><h4>(OR)</h4><p>On the off-chance that you are a 3D modeler, well…. just let loose your creativity for your own 3D character.</p><p>Besides, with the Bitclout strategy model, you are now armed with the knowledge that can bust open many wallets.</p><h3>Want more from me?</h3><ol><li><a href="https://kanlanc.medium.com/subscribe"><strong>Subscribe</strong></a><strong> </strong>to get notified when I publish articles and for receiving updates as soon as I complete how to get into XR and 3D modeling roadmaps.</li><li><a href="https://kanlanc.medium.com/membership"><strong>Support my writing with no extra cost</strong></a> to you by becoming a referred Medium member.</li><li>Connect and reach me on <a href="https://www.linkedin.com/in/vikranth-kanumuru-751a73125/"><strong>Linkedin</strong></a><strong> and </strong><a href="https://twitter.com/kanlanc"><strong>Twitter</strong></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db67e9d4e2d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kanlanc/the-next-step-in-nfts-and-why-3d-designers-are-gonna-be-the-next-millionaires-db67e9d4e2d5">The Next Step in NFT’s and Why 3D Designers are Gonna Be the Next Millionaires</a> was originally published in <a href="https://medium.com/kanlanc">Kanlanc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Expensive Lessons Learned Investing 50000Rs in Crypto as a Complete Beginner From a Software…]]></title>
            <link>https://medium.com/kanlanc/7-lessons-learned-investing-50000rs-in-crypto-as-a-complete-beginner-from-a-software-engineer-28438e49e50a?source=rss----1afe9a8a999b---4</link>
            <guid isPermaLink="false">https://medium.com/p/28438e49e50a</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Vikranth Kanumuru]]></dc:creator>
            <pubDate>Sat, 16 Oct 2021 07:58:49 GMT</pubDate>
            <atom:updated>2021-10-17T14:08:37.082Z</atom:updated>
            <content:encoded><![CDATA[<h3>7 Expensive Lessons Learned Investing 50000Rs in Crypto as a Complete Beginner From a Software Engineer</h3><h4>Beware! It gets addictive as F*ck!!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WTORZegIi-dIcaZ0" /><figcaption>Photo by <a href="https://unsplash.com/@artrachen?utm_source=medium&amp;utm_medium=referral">Art Rachen</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This one day, I had a call with one of my friends who I consider my part-time therapist and a full-time mentor. He has a business that is doing extremely well despite Covid and goes on trips every weekend…yes, the perfect mentor material.</p><p>While catching up, we somehow ended up on the topic of investing the money we earn every month.</p><p>He explained that he recently came across an investing strategy that advocates a barbell as its symbol and being a gym addict, I was pretty intrigued to what exactly a barbell got to do with investing strategies.</p><p>Basically, this strategy explains that you should always take both ends of the extremes, the safe, and the risky bets but never the moderate ones.</p><p>It explains that if you take moderate risks, you are neither so well of that you can retire immediately nor are you so down in the gutter that it keeps you awake at night.</p><p>This strategy tells you to put 90% into safe bets and the other 10% into more risky and volatile bets.</p><p>Nowadays, the words risky and volatile are basically synonyms for crypto’s and that&#39;s how while searching for risky bets, I got introduced to this next-gen currency system that is believed to become the backbone of Web 3.0</p><p>I immediately got to work on searching for ways to get started with investing in crypto.</p><p>At that point, in all honesty, I wasn’t keeping my hopes up because first I was in India, and second I remember hearing something about a crypto ban.</p><p>But to my surprise, I found Wazirx which made getting into crypto very easy for Indian users but after using it for a while, I started to notice that it felt a little too….basic. There were very few crypto coins available for purchase and the toolset was pretty rudimentary too.</p><p>In the subsequent pursuit for a better platform, I came across <a href="https://accounts.binance.com/en-IN/register?ref=217897871">Binance</a> which immediately won me over with its tools for both beginners and advanced users.</p><p><strong>I haven’t withdrawn any funds yet so apart from that front, I can vouch for </strong><a href="https://accounts.binance.com/en-IN/register?ref=217897871"><strong>Binance</strong></a><strong> with complete confidence.</strong></p><p>There is a bit of a learning curve but once you get the gist of it, it has amazing tools, various ways of earning passive incomes(which I go into below), and great security.</p><p>That&#39;s how my journey into Web 3.0 started. Now, let me part to you my mistakes and lessons learned…</p><h3>Lesson #1: Partitioning Is Key</h3><p>Every time my salary got deposited into my bank after debugging cryptic code that looked fine but never worked as it is intended to and attending an inhumane number of meetings every day, I used to think “Alright! Today is the day my road to financial independence begins and it all shall start with the 50/30/20 Financial Rule.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nMPaN1pRnutjxPdg" /><figcaption>Photo by <a href="https://unsplash.com/@blankerwahnsinn?utm_source=medium&amp;utm_medium=referral">Fabian Blank</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>“Why the rule”, you ask? Let me explain…</p><p>People think working remotely from home, you can cut some major expenses like food(Eating out), transportation costs, and rent.</p><p>It is absolutely true, but living at home comes with its own expenses like all the household repairs, buying all the new gadgets…etc.</p><p>This is what went on in my house as soon as my first salary landed in my bank account…</p><p>Mom goes like: “Arey my son, seeing that you don’t have any expenses right now, our fridge has become very old and is barely doing its job so why not put an order in Amazon for a new one and also, our neighbor&#39;s wife told me electric toothbrushes clean much better than regular ones, so put those as well for everyone in the family, and lastly, our mixer got very old da, so why not get that new mixer that turns off automatically too!”.</p><p>My father on the other hand just says “Our TV is looking quite small, no? Hmm….”.</p><p>Finally, coming to my brother, all he says is “I need chocolates, give me 200 bucks” and just stares at me until I give in.”</p><p>This is all without taking my own impulses out of the situation, but my point is expenses always exist and just like the <strong>Parkinson’s Law(Work expands to fill available time for it), </strong>your expenses expand to eat all your current bank balance.</p><p>After learning this invaluable life lesson, I decided to cut my bank balance according to the 50/30/20 Financial Rule.</p><p>If you have never heard of it, it goes like this</p><blockquote>On the basis of these three expenses, 50–30–20 rule of budgeting of one’s income comes into play where one devotes 20 per cent of its income for savings, 50 per cent for important and necessary expenses while 30 per cent of the income is devoted to those expenses that is important but not necessary.</blockquote><p>Before you put all your 20% income into crypto investments, it should be noted that crypto is quite volatile, so a golden rule when investing in risky assets like crypto goes like this, “Never invest money that you can’t afford to lose”.</p><p>Many people literally put all their money into risky assets expecting massive returns quickly but all they see is their money disappearing into thin air and then selling all their assets in a panic only to end up with less than what they put in.</p><p><strong>To avoid this, always partition your income cash flow into divisions of expenses, savings, and investments(It can be in any ratio) and sub divide your investments further into safe and risky.</strong></p><p><strong>Finally, always think you are gonna lose all your risky investments and if that scares you, reduce it and put more of it into safe investments like bonds, but also understand most of the time, risky means more reward.</strong></p><p>Furthermore, if I didn’t have this restriction of only putting a set amount, I really believe I would have dumped whatever I had into crypto, this stuff is that addictive.</p><h3>Lesson #2: Invest In Different Types of Cryptocurrency</h3><p>I don’t mean investing in multiple crypto coins but in multiple types of crypto coins.</p><p>For example in Stable coins, Meme coins, Utility Coins...etc, and also in platform tokens you trust will become something big like DESO from <a href="https://bitclout.com/u/kanlanc">Bitclout</a> or BNB from <a href="https://accounts.binance.com/en-IN/register?ref=217897871">Binance</a>.</p><blockquote>In other words,<strong> not every Cryptocurrency is built the same</strong></blockquote><p>Each coin has a purpose on why it was invented even if that was a joke(looking at you Dogecoin), and so learn about these purposes and only invest in them if you personally believe it has potential.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ws3gJve7Vy8t2BYR" /><figcaption>Photo by <a href="https://unsplash.com/@executium?utm_source=medium&amp;utm_medium=referral">Executium</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I won’t go into detail in this article but if you are interested, let me know in the comments if you want to learn more about the purpose of each of them.</p><h3>Lesson #3: Don’t Invest In Every Crypto Currency You Hear About</h3><p>In the first few months of my now 6 months journey, you tell me about a coin and if it is found in Binance I would put 2k–4k into it depending on how much I think it would it which were again based on whatever I’ve heard and think.</p><p>Simply put, <strong>DON’T DO THIS!!</strong></p><p>Some coins are simply scam coins and I was lucky enough that Binance filters through most of them and I didn&#39;t end up in any but not everyone gets as lucky as me so understand you are trading your time you spent earning that money into that coin and if you don’t understand or believe in the project, you know what to do.</p><h3>Lesson #4: There Are More Ways To Earn Crypto Than Just Buying Them</h3><h4>Staking, DeFi Farming, Liquidity Pools and many more</h4><p>I am primarily a Binance user, so I am not sure about other Crypto Exchanges but most probably, your exchange allows you to do something called as staking your token.</p><p>To understand staking, you should understand a consensus protocol called Proof of Staking(POS).</p><p>Consensus protocol means a fixed process to confirm transactions and reach consensus to ensure validity in the blockchain</p><p>A good resource for that is here:</p><p><a href="https://www.bitdegree.org/crypto/tutorials/proof-of-work-vs-proof-of-stake">Proof of Work vs Proof of Stake: What&#39;s The Difference?</a></p><p>In summary, POS model gives you a transaction fee for every block you validate.</p><p>The probability of getting a block to validate depends on how many tokens you stake and this is usually a huge amount and you lose your stake if you validate a bad block.</p><p>For example, DASH coin needs at least 1000 coins to be staked for you to become a validator which is $1.5M.</p><p>Since the upfront investment is way too much, Crypto Exchanges organize something called a staking pool where you pool tokens from all over the customers and distribute the rewards based on how much they contributed to the pool.</p><p>There are other ways such as providing liquidity to Liquidity Pools, DeFi Staking, Yield Farming, and many more. Some are safe while others come with a bit more risk attached.</p><p>For more detailed info, check out</p><ul><li><a href="https://www.binance.com/en-IN/support/faq/bc076f0eb7fb4ae182de6c5eb8968dec">About Binance Earn | Binance Support</a></li><li><a href="https://academy.binance.com/en/articles/your-guide-to-binance-earn">Your Guide to Binance Earn | Binance Academy</a></li></ul><h4><strong>Playing Crypto Games and Earning Through NFT’s</strong></h4><p>This is a new one for me too but I learned of this method from Axis Infinity and <a href="https://godsunchained.com/account/register?referral=eVXhoovWlL">Gods Unchained</a>(Kind of like Yu-Gi-Oh! or Hearthstone on blockchain).</p><p>By playing the game as I earn rarer cards, I can put them up on the trading platform like Tokentrove or Immutable X and sell them for a price I set in eth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S3RoeGsKz9sIL29Y4X56nQ.png" /><figcaption>Screenshot of Token Trove Gods Unchained</figcaption></figure><blockquote>I sold a card that I had earned for free, just by playing the game, for a little over 30$. That was the moment P2E(Play to Earn) became real for me</blockquote><blockquote>- CautionFun</blockquote><h3>Lesson #5: Understand the Difference In Blockchain Networks When Transferring Crypto To Wallets Like Metamask</h3><p>This is the first thing a friend cautioned me to take care about because he lost around 7K for transferring to the correct address but on a different blockchain network but his advice came to me too late.</p><p>When dealing with most of the Dapps using Binance and Metamask, the two main networks you would interact with are:</p><ul><li>Ethereum Mainnet(ETH20 and ETH721 Tokens) and</li><li>Binance Smart Chain Network(BEP20 and BEP721 Tokens)</li></ul><p>The tokens ending with 20 are your crypto’s and the one’s ending with 721 are your NFT’s</p><p>Metamask doesn’t come preconfigured with BSC(Binance Smart Chain Network), but it’s very easy to configure it and you can find the how to’s here.</p><p><a href="https://academy.binance.com/en/articles/connecting-metamask-to-binance-smart-chain">Connecting MetaMask to BNB Smart Chain | Binance Academy</a></p><p>If you are curious about other popular networks, check out:</p><p><a href="https://www.blockchain-council.org/blockchain/top-10-blockchain-platforms-you-need-to-know-about/">Top 10 Blockchain Platforms You Need To Know About</a></p><p><strong>It is very important you understand that a Dapp or wallet which is one particular network, for example, Ethereum Mainnet will not accept a BSC network token or asset and should you attempt to transfer despite that, the token or asset may be lost forever.</strong></p><p>There are cases where it can be recovered, but also one’s where it cannot be and it’s better to be safe than sorry.</p><p>To transfer between networks, you will have to use something called bridges.</p><p>When I first started my journey through crypto, I wanted to transfer Eth to my Metamask wallet to buy a few Gods Unchained cards.</p><p>But because the me then didn’t have someone writing their painful crypto lessons here, I chose the BSC network in the Binance platform to withdraw my eth asset into Metamask(which was by default in the Ethereum Mainnet network) because of the huge difference in fees.</p><p>To give you more details, the withdrawal fees of Eth for BSC network was 18 Rs(&lt;1$) and Ethereum Network was 958 Rs(~14$), so now you know it wasn’t a few bucks I was trying to save.</p><p>Those assets were never to be found in my wallet despite all the waiting and address rechecking but it was only after one of my crypto-savvy friend knocked me in the head and explained my mistake did I realize what a stupid one I had committed.</p><p>Fortunately, it was only a small amount of 2k Rs worth of Eth but the lesson was big enough to remember the rest of my life.</p><h3>Lesson #6: Lower Your Transaction Fees by Transferring In The Right Crypto’s</h3><p>From the previous lesson, you would have realized that I got a painful surprise with the transaction fees of the widely touted next financial revolution, but turns out this is only because I was still inexperienced.</p><p>Your next lesson is to learn how to lower the transaction fees to a fraction of what you saw earlier.</p><p>But first, let me answer the two questions you got in your head.</p><p>Why are we even charged transaction fees? and why is there such a big difference between the two networks?</p><p>To answer the first question, I would have to explain one of the core actors in a blockchain ecosystem called validators. Validators are nodes or computers that are required to do only one thing, which is to keep the blockchain safe from fraud and other malicious activities. They do this through different means and it depends on the protocol used by the blockchain.</p><p>Since there is no one single entity that manages a blockchain, validators are nodes that are run by people just like you and me but…why would they waste their time and pay for excess electricity usage for no reason?</p><p>That would be because for every block they mine, they get rewards from the blockchain and these rewards come from the transaction fees.</p><p>To answer your second question, based on the demand, congestion, and throughput of the network, transaction fees vary drastically between networks. Even in a particular network, transaction fees always keep changing day to day.</p><h4>How To Drastically Lower Your Transaction Fees When Withdrawing?</h4><p>Do you remember Lesson #2?</p><p>Of course, you would. It’s literally a few scrolls away!</p><p>Referencing it, you now understand that different coins were made for different reasons. Similarly, some coins were made to be transacted around to other users like XLM, CELO, Litecoin, and a few others.</p><p>Using these coins to move between wallets drastically reduces your transaction fees.</p><p>Let me give you an example, a new token named $GODS was coming out on Coinlist based on my latest favorite game(You know it! GODS UNCHAINED for the win!!)</p><p>They accepted payments in BTC, ETH, and USDC but I didn’t want to give up half of my investment money for transaction fees(I am a poor bloke).</p><p>So, I checked the above coins I mentioned and found that Algo only takes 0.001 Algo for transaction fees which is ~1$ when compared to 14–20$ transaction fees moving eth!!</p><p>So, this is my step-by-step approach</p><ul><li>Convert my fiat currency to BUSD in Binance</li><li>Convert BUSD to ALGO</li><li>Withdraw from Binance and Deposit AlGO into Coinlist</li><li>Convert the deposited ALGO into BTC</li></ul><p>And I was locked and loaded with funds to buy GODS Tokens with most my investment money intact!!</p><p>Furthermore, this entire process took me no more than 10 minutes from start to finish.</p><h3>Lesson #7: Understand Technical Analysis And How To Use The Platform</h3><p>You don’t need to be a pro but just understanding how to read the charts, what are stop-limit orders, how to cut losses by setting up stop-loss orders, what is dollar-cost averaging, and a few other fundamentals, you would be way better off than just panicking at all the options available and never taking advantage of all the tools available at your disposal.</p><p>Also, always do your research before you put your dime into a coin.</p><p>Here is a helpful video I found to doing crypto research:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FHCLWDGYnAzk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DHCLWDGYnAzk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FHCLWDGYnAzk%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/309dd37fab57d36822ac8d4ae1c97c0a/href">https://medium.com/media/309dd37fab57d36822ac8d4ae1c97c0a/href</a></iframe><h3>Bonus Lesson: Learn The Inner Workings Of A Blockchain Like Gas, Smart Contract</h3><p>If you want to understand why some coins are deemed much more valuable than others, you need to understand the inner working of a blockchain.</p><p>This lesson is even more important if you are a developer because this helps open up new worlds to you. For example, just like how YGG games capitalized on the opportunity that axis has become too expensive to buy upfront, so they developed a system where you can rent them.</p><p>I have also found similar situations in other games and am looking into developing solutions for them. This only happened because I learned the interior of blockchains. If the game I am rooting for skyrockets to popularity, I would be looking at quite a windfall but again there is a big IF there.</p><p>These are youtube channels I found helpful</p><ul><li><a href="https://www.youtube.com/c/WhiteboardCrypto">Whiteboard Crypto</a></li><li><a href="https://www.youtube.com/channel/UCqK_GSMbpiV8spgD3ZGloSw">Coin Bureau</a></li></ul><h3>Conclusion</h3><p>These are all the lessons I learned throughout my journey and I hope you find them helpful, so you don’t make the same mistakes I did and save quite a bit of money.</p><p>Happy Trading!</p><p>For mind-blowing perspectives in AI, XR, and blockchain domains including how to combine them, lessons I learned doing something, do subscribe to the newsletter.</p><h3>Want more from me?</h3><ol><li><a href="https://kanlanc.medium.com/subscribe"><strong>Subscribe</strong></a><strong> </strong>to get notified when I publish articles.</li><li><a href="https://kanlanc.medium.com/membership"><strong>Support my writing</strong></a> by becoming a referred Medium member.</li><li>Connect and reach me on <a href="https://www.linkedin.com/in/vikranth-kanumuru-751a73125/"><strong>Linkedin</strong></a><strong> and </strong><a href="https://twitter.com/kanlanc"><strong>Twitter</strong></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28438e49e50a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kanlanc/7-lessons-learned-investing-50000rs-in-crypto-as-a-complete-beginner-from-a-software-engineer-28438e49e50a">7 Expensive Lessons Learned Investing 50000Rs in Crypto as a Complete Beginner From a Software…</a> was originally published in <a href="https://medium.com/kanlanc">Kanlanc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This Innovative Blockchain Project Now Allows You To Cash In On Your Fame!]]></title>
            <link>https://medium.com/kanlanc/you-can-now-turn-your-fame-into-a-side-hustle-with-blockchain-78c23ef2226e?source=rss----1afe9a8a999b---4</link>
            <guid isPermaLink="false">https://medium.com/p/78c23ef2226e</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Vikranth Kanumuru]]></dc:creator>
            <pubDate>Thu, 16 Sep 2021 10:43:54 GMT</pubDate>
            <atom:updated>2021-10-23T09:17:38.942Z</atom:updated>
            <content:encoded><![CDATA[<h4>And you thought 2021 couldn’t get weirder, huh!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mxLsWYJrUTcxQMpy" /><figcaption>Photo by <a href="https://unsplash.com/@sharonmccutcheon?utm_source=medium&amp;utm_medium=referral">Sharon McCutcheon</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Before blockchain, the only way you can mint money with actual value is to either contribute to war for a nation that impacts the very destiny of it or have a dictatorship throne like North Korea’s passed down in the family.</p><p>But with the advent of blockchain and a few extraordinary minds, you can now put a value on your social reputation!!</p><blockquote>The value of someone’s coin should be correlated to that person’s standing in society.</blockquote><blockquote>For example, if Elon Musk succeeds in landing the first person on Mars, his coin price should theoretically go up. And if, in contrast, he makes a racial slur during a press conference, his coin price should theoretically go down.</blockquote><blockquote>Thus, people who believe in someone’s potential can buy their coin and succeed with them financially when that person realizes their potential. And traders can make money buying and selling the ups and downs.</blockquote><blockquote>— Diamond Hands</blockquote><p>Before we get ahead of ourselves, let’s first address the most important question if you are not exactly tech-savvy</p><h3>What the heck is Blockchain?</h3><p>Now unless you&#39;ve just come out of a coma(Congrats!!) or been living under a rock, I am sure you&#39;ve been tempted to buy some Bitcoin, Ethereum, or some other crypto with all the hype going on around them.</p><p>To put it in very simple terms, blockchain tech is what powers them.</p><p>To go into more detail, blockchain is a distributed database that keeps track of all transactions going on in the network. Once a certain number of transactions are recorded, they are clubbed together to form a block and then “mined”( Different protocols exist for mining, a popular one would be proof of work used by bitcoin)</p><p>This mined block is then added to a series of other “mined blocks” which other nodes in the network keep a copy of.</p><p>So, if someone wanted to tamper with an older transaction from an earlier block, they would have to change all the copies in the network which is not possible with existing computational power…..for now(Quantum Computing is coming!!)</p><p>If you would like to understand more about the inner working of a blockchain and or read more about the mining protocols, check out this article</p><p><a href="https://www.mangoresearch.co/blockchain-consensus-vs-validation/">How Are Blockchain Transactions Validated? Consensus VS Validation - Mango Research</a></p><h3>“But…How exactly did you Mint Coins using Blockchain?!!”</h3><blockquote>“If this man says that I have to write code with some kind of programming language when I still am trying to find that value of x from math’s class or make some kind of hi-tech mining blockchain node that will cost me 1000’s of dollars, I am going to find this dude and strangle him till he meets his maker.” …..violent but probably what you are thinking.</blockquote><p>Don’t worry, for the sake of both surviving a bit longer and to incentivize you for reading this article til here, I’ll show you an easy solution to mint your own coins and even show you how to increase their value by investing in them like stocks. What’s the point, you ask?</p><h3>BitClout</h3><blockquote><strong>BitClout is a new type of social network that mixes speculation and social media, and it’s built from the ground up as its own custom blockchain.</strong> Its architecture is similar to Bitcoin, only it can support complex social network data like posts, profiles, follows, speculation features, and much more at significantly higher throughput and scale. Like Bitcoin, BitClout is a fully open-source project and there is no company behind it — it’s just coins and code.</blockquote><p>Put into simpler words, it’s a blockchain version of Twitter that also has features like turning your posts into NFT’s, minting coins with your name on them thus essentially putting a $ sign beside your social status.</p><p>Your next question would be……</p><h3>Why the Heck Would Someone Buy My Coins?</h3><p>Great question and the answer is pretty simple too. The reason is the same as why someone would invest in a stock they think would rise.</p><p>Hear me out, say you invest in <a href="https://bitclout.com/u/kanlanc">Kanlanc coins</a> which currently have a dollar value of approximately 7$ per coin(thanks to everyone who believe in me!!), and because I will be continuously creating content in the coming future and branch out to other platforms, it will lead to an increase in investment in the coins by others thus raising its value and hence also increasing the returns of those who already invested before its rise in value.</p><p>Similarly, if you create just about anything in the world that provides value to others, you should definitely allow others who believe in you to invest in you.</p><p>Another thing you can provide to the buyer of your coins is exclusive content, members-only merchandise, one-one meetings with your true fans, and many more.</p><blockquote>The sky is the limit!</blockquote><h3>“But What if I Only Like to Consume Content? Is this Platform not for Me?”</h3><p><strong>You are as important if not even more than a content creator, my friend.</strong></p><p>As I’ve mentioned before, Bitclout is essentially a platform where you can invest in stocks except the stocks are creators. See where I’m going with this?</p><p>I love <a href="https://medium.com/u/b6d641be1066">Tim Denning</a> and I believe this man will rise to greater heights, so what do you think I did as soon as I learned he has a Bitclout account and his own coins?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1lF4uh43tgvRGYVE1JX12A.png" /></figure><p>I still pray to the gods every day that he be in good health and live longer. I believe this is one of the best ways you can support your favorite creators while also making money on the side.</p><p>The price for each coin keeps increasing as more people invest so <strong>You basically earn money while the Creators work!</strong></p><p>Even Tim agrees(The ‘+’ was an accident I couldn’t correct),</p><h3>Vikranth Kanumuru on Twitter: &quot;Hey @Tim_Denning, as the saying goes, &quot;Now you got your skin in the game&quot;, just bought a few of your coins on @BitClout, please don&#39;t stop posting amazing content lol+ pic.twitter.com/hGqDSIOMRy / Twitter&quot;</h3><p>Hey @Tim_Denning, as the saying goes, &quot;Now you got your skin in the game&quot;, just bought a few of your coins on @BitClout, please don&#39;t stop posting amazing content lol+ pic.twitter.com/hGqDSIOMRy</p><h3>Tim Denning 🇦🇺 | Self-Help | Money | Writing on Twitter: &quot;Wow appreciate it Vikranth! Your support means a lot to me. / Twitter&quot;</h3><p>Wow appreciate it Vikranth! Your support means a lot to me.</p><p><strong>So, your next mission should you choose to accept it is to get on the platform and snatch your favorite writer/YouTuber/creator coins ASAP.</strong></p><blockquote>Grab em hot and cheap!!</blockquote><p><strong>Another thing to note is that after doing the math I realized that if you buy coins that are lower priced but have huge growth potential you will have significantly better returns on your investment when compared to investing in higher priced coins.</strong></p><p>Links to <a href="https://bitclout.com/">Bitclout</a> and <a href="https://bitclout.com/u/kanlanc">Kanlanc Coins</a></p><p>Another thing I realized is that you don’t have to be a content creator or an investor to jump onto this platform. Other professions I believe will benefit from this platform are academics of different fields, open-source contributors because their research or contribution if succeeds in a breakthrough will lead to an investment in them thus essentially doing the same as content creators.</p><h3>Want more from me?</h3><ol><li><a href="https://kanlanc.medium.com/subscribe"><strong>Subscribe</strong></a><strong> </strong>to get notified when I publish articles.</li><li><a href="https://kanlanc.medium.com/membership"><strong>Support my writing with no extra cost</strong></a> to you by becoming a referred Medium member.</li><li>Connect and reach me on <a href="https://www.linkedin.com/in/vikranth-kanumuru-751a73125/"><strong>Linkedin</strong></a><strong> and </strong><a href="https://twitter.com/kanlanc"><strong>Twitter</strong></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78c23ef2226e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kanlanc/you-can-now-turn-your-fame-into-a-side-hustle-with-blockchain-78c23ef2226e">This Innovative Blockchain Project Now Allows You To Cash In On Your Fame!</a> was originally published in <a href="https://medium.com/kanlanc">Kanlanc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[File Handling Made Easy using Cloudinary for Nodejs]]></title>
            <link>https://medium.com/kanlanc/file-handling-made-easy-using-cloudinary-for-nodejs-a2e149857917?source=rss----1afe9a8a999b---4</link>
            <guid isPermaLink="false">https://medium.com/p/a2e149857917</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Vikranth Kanumuru]]></dc:creator>
            <pubDate>Sun, 05 Sep 2021 12:32:09 GMT</pubDate>
            <atom:updated>2021-09-05T12:32:09.311Z</atom:updated>
            <content:encoded><![CDATA[<h4>You won’t need another tutorial after this for file uploading</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*cSqpRDifuX2u-baqznbUUw.png" /></figure><p>I have come across many articles regarding uploading of files using mutler, but doing so we store the files in the server and there are many services that offer third party services for storage. One such service is cloudinary and the trade-offs are very good.</p><p>Although the documentation for cloudinary service is pretty good, it never mentioned the whole workflow and I had to figure it out on my own, so I am writing this article to make it easier for other people and not spend much time for that aspect.</p><p>If you would like to look at the project I have used it for, click <a href="https://github.com/highskillzz/Gotemps/">here</a></p><p>The frontend would be like</p><pre>&lt;form  action=&quot;/&quot; enctype=&quot;multipart/form-data&quot;  method=&quot;POST&quot;&gt;<br>&lt;div class=&quot;form-group&quot;&gt;                                                   Data or Responses file                                               &lt;input class=&quot;form-control&quot; name=&quot;dataFile&quot; type=&quot;file&quot;&gt;                                           &lt;/div&gt;<br>&lt;/form&gt;</pre><p>The backend would be like</p><p>Package.json:</p><pre>{<br>&quot;name&quot;: &quot;google_templates&quot;,<br>&quot;version&quot;: &quot;1.0.0&quot;,            <br>&quot;description&quot;: &quot;&quot;,<br>&quot;main&quot;: &quot;app.js&quot;,<br>&quot;scripts&quot;: { <br>&quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;,                           &quot;start&quot;: &quot;node app.js&quot;,<br>&quot;start1&quot;: &quot;nodemon app.js&quot;<br>},<br>&quot;author&quot;: &quot;Vikranth Kanumuru&quot;,<br>&quot;license&quot;: &quot;ISC&quot;,<br>&quot;dependencies&quot;: {<br> &quot;body-parser&quot;: &quot;^1.18.2&quot;,<br>&quot;cloudinary&quot;: &quot;^1.11.0&quot;,         ---------&gt;cloudinary npm module<br>&quot;connect-flash&quot;: &quot;^0.1.1&quot;,<br> &quot;connect-multiparty&quot;: &quot;^2.2.0&quot;, ---------&gt;frontend uploading files<br> &quot;dotenv&quot;: &quot;^4.0.0&quot;, <br> &quot;ejs&quot;: &quot;^2.5.7&quot;, <br> &quot;express&quot;: &quot;^4.16.1&quot;, <br> &quot;express-session&quot;: &quot;^1.15.6&quot;,  <br> &quot;fs&quot;: &quot;0.0.1-security&quot;,<br>&quot;method-override&quot;: &quot;^2.3.10&quot;,<br> &quot;mongoose&quot;: &quot;^4.12.1&quot;, <br>&quot;nodemailer&quot;: &quot;^4.6.8&quot;, <br> &quot;passport&quot;: &quot;^0.4.0&quot;,<br> &quot;passport-local&quot;: &quot;^1.0.0&quot;,<br>&quot;passport-local-mongoose&quot;: &quot;^4.4.0&quot; <br> }, <br>&quot;devDependencies&quot;: {  <br> &quot;morgan&quot;: &quot;^1.9.1&quot;                         }                       }</pre><p>Routing Code :</p><pre>var express = require(&quot;express&quot;);<br>var mongoose = require(&quot;mongoose&quot;);                                                                     var fs = require(&quot;fs&quot;);<br>var cloudinary = require(&quot;cloudinary&quot;).v2;                                               var multipart = require(&quot;connect-multiparty&quot;);                        <br>var multipartMiddleware = multipart();</pre><pre>//Enter your credentials below                                              cloudinary.config({cloud_name: &quot;&quot;, <br>api_key: &quot;&quot;, <br>api_secret: &quot;&quot;                       <br>});</pre><pre>var router = express.Router();</pre><pre>router.post(&quot;/&quot;, multipartMiddleware, function(req,res) {</pre><pre>let filename = req.files.dataFile.path;                                                     cloudinary.uploader.upload(filename,{ tags: &quot;gotemps&quot;,resource_type: &quot;auto&quot; })<br>.then(function(file) {                                                                  console.log(&quot;Public id of the file is  &quot; + file.public_id);                                 console.log(&quot;Url of the file is  &quot; + file.url);</pre><pre>/* Below variable template is part of my project and I have removed some of the unnecessary code so instead of template use whatever fits your situation */</pre><pre>template.dataFile=file.url;  //save the url to your model                            template.save(); //save the model as you have changed it                                  res.redirect(&quot;/templates&quot;);<br>})<br>.catch(function(err) {                                                                  if (err) {<br> console.warn(err);<br>}                <br>});                                                     res.redirect(&quot;/templates&quot;); <br>}<br>});<br>});</pre><p>Thank you for reading. I mostly write tutorials on the problems I have faced and whatever new tech I explore, so stay tuned for the next article.</p><h3>Want more from me?</h3><ol><li><a href="https://kanlanc.medium.com/subscribe"><strong>Subscribe</strong></a><strong> </strong>to get notified when I publish articles.</li><li><a href="https://kanlanc.medium.com/membership"><strong>Support my writing</strong></a> by becoming a referred Medium member.</li><li>Connect and reach me on <a href="https://www.linkedin.com/in/vikranth-kanumuru-751a73125/"><strong>Linkedin</strong></a><strong> and </strong><a href="https://twitter.com/kanlanc"><strong>Twitter</strong></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2e149857917" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kanlanc/file-handling-made-easy-using-cloudinary-for-nodejs-a2e149857917">File Handling Made Easy using Cloudinary for Nodejs</a> was originally published in <a href="https://medium.com/kanlanc">Kanlanc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Solve Github’s Password Authentication Removed Error in AWS EC2]]></title>
            <link>https://medium.com/kanlanc/how-to-solve-githubs-password-authentication-removed-error-in-aws-ec2-bfbc79ad598b?source=rss----1afe9a8a999b---4</link>
            <guid isPermaLink="false">https://medium.com/p/bfbc79ad598b</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Vikranth Kanumuru]]></dc:creator>
            <pubDate>Thu, 02 Sep 2021 17:23:44 GMT</pubDate>
            <atom:updated>2021-10-23T09:16:48.561Z</atom:updated>
            <content:encoded><![CDATA[<h4>Your remote private git projects are probably broken with the update!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*82bwE_vxyPpqd_sn" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Just another day at work, and I was trying to pull the changes made to the Code repository hosted in Github manually. It was just shutting down the application, running the git pull command, and restarting the application. Something even a high schooler was able to do, but it all changed after the 13th of August!!</p><p>Now, I was faced with this error that was never seen prior to that fateful day</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mBzL48E8_absYeCY3OXkig.jpeg" /><figcaption>Image by Author</figcaption></figure><blockquote>remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see <a href="https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/">https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/</a> for more information. fatal: unable to access “…” : The requested URL returned error: 403</blockquote><h3>Why did this happen?</h3><p>Let me first let you know, this is no fault of your own.</p><p>Github has been saying it will get rid of the username, password mechanism for quite a while….we just didn’t pay attention to it.</p><p>The reason Github gave was that it’s common for people to accidentally leak their passwords, and while a personal access token can be restricted to limit the damage, a password cannot.</p><p>So, to reduce possible security issues, they removed the password mechanism outright.</p><h3>How to Solve it?</h3><p>It is quite a simple issue to fix, just follow along.</p><p>Go to Github’s website and Navigate to Settings in the profile menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXX4DUX5BQAACxHBGkByXw.png" /><figcaption>Image by Author</figcaption></figure><p>Scroll down to find the developer settings on the Settings page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mx0sKpFPF2qYq67PfvIUww.png" /><figcaption>Image by Author</figcaption></figure><p>Then click on “Personal access tokens” and then “Generate new token”. Dont worry about the AWS EC2 token in mine, yours should be empty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e_VGyQZJ0Sco2wqrosleVg.png" /><figcaption>Image by Author</figcaption></figure><p>Give it a name and <strong>mark the repo checklist as true. </strong>This is important because it allows the users with this token to access your private repo’s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHapi3_lnBTJSr6fGP1BmQ.png" /><figcaption>Image by Author</figcaption></figure><p>Now, hit the generate token and you should be shown something like this (don’t worry I revoked this token after I finished writing this article).</p><p>Don’t forget to save this token, because once you go off the page you won’t see it again, and will have to regenerate another token from the start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_70iAlmjXMsusYXt84IIeg.png" /><figcaption>Image by Author</figcaption></figure><p>Pat yourself in the back, because you have reached the final step!!</p><p>There are two ways to do it,</p><p>The first way is to go into your EC2 repository and try pulling the code.</p><p><strong>When you are asked the username and password, add your username in the username but for the password paste your token.</strong></p><p>The second way is to change the remote URL of your AWS EC2 project local repository with</p><pre>git remote set-url origin https://&lt;token&gt;@github.com/&lt;username&gt;/&lt;repo&gt;</pre><p>Both of these methods work and everything should be back to normal.</p><p>Happy coding :)</p><h3>Want more from me?</h3><ol><li><a href="https://kanlanc.medium.com/subscribe"><strong>Subscribe</strong></a><strong> </strong>to get notified when I publish articles.</li><li><a href="https://kanlanc.medium.com/membership"><strong>Support my writing with no extra cost</strong></a> to you by becoming a referred Medium member.</li><li>Connect and reach me on <a href="https://www.linkedin.com/in/vikranth-kanumuru-751a73125/"><strong>Linkedin</strong></a><strong> and </strong><a href="https://twitter.com/kanlanc"><strong>Twitter</strong></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfbc79ad598b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kanlanc/how-to-solve-githubs-password-authentication-removed-error-in-aws-ec2-bfbc79ad598b">How to Solve Github’s Password Authentication Removed Error in AWS EC2</a> was originally published in <a href="https://medium.com/kanlanc">Kanlanc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dockerize a React Nodejs App and Deploy in AWS EC2 — The Startup Way Part-2]]></title>
            <link>https://medium.com/kanlanc/dockerize-a-react-nodejs-app-and-deploy-in-aws-ec2-the-startup-way-part-2-303921149faf?source=rss----1afe9a8a999b---4</link>
            <guid isPermaLink="false">https://medium.com/p/303921149faf</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Vikranth Kanumuru]]></dc:creator>
            <pubDate>Thu, 02 Sep 2021 17:23:28 GMT</pubDate>
            <atom:updated>2021-06-24T11:54:31.599Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dockerize a React Nodejs App and Deploy in AWS EC2 — The Startup Way Part-2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5E65pZE8kv8TaJ_XiiCUaQ.png" /></figure><p>After getting started with your EC2 instance, and getting all the security rules and everything, connect to your EC2 instance either through SSH or through the connect option after clicking on the instance as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*FZI9dGR2nlOtpr-EMNxt6Q.gif" /></figure><p>Follow the below instructions to install docker and docker-compose in your Ec2, so that we have our environment setup.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c5f7c7dd4f6e6edf16850ade85b3438e/href">https://medium.com/media/c5f7c7dd4f6e6edf16850ade85b3438e/href</a></iframe><p>Now, clone your Github project into the EC2 using</p><pre>git clone &lt;your repo url&gt;</pre><p>Now, this is just advice, and you can do proceed however you would like, but make sure to have different branches like develop, test, stage, and production.</p><p>Branch “develop” is for developing new features, and this is where people should fork from to make new features. Branch “test” is where you test your next deployment. Branch “stage” is where your tested next deployment sits( it should be ready for your next deployment), and finally, production should be what is being deployed sits.</p><p>In our case, <strong>with the power of docker-compose, the only file in your production branch would be the docker-compose.prod.yml file</strong></p><p>( <strong>Caveat:</strong> I am assuming you are using an RDS instance for your database needs, if not I absolutely recommend you to do so because running a database in docker is not a good way to go forward with, but I will be mentioning how to do the latter here and the former in a different tutorial and if you are here from the previous article, I configure the database settings in a .env file which I for obvious reasons cannot show, so make sure to make one and set the variables in a .env file or replace them with your own values)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/0*B4wjFKX1CEbHM8W7.png" /></figure><p>You can ignore the other two things as they are not necessary for deployment.</p><p>I know what your thinking, “ It can’t be thaaat simple, right??”, but believe me it is. That is the power of Docker and Docker-compose.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Ffwta5c1e0O2hymy9p3%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FJim-Carrey-jim-carrey-i-got-the-power-fwta5c1e0O2hymy9p3&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Ffwta5c1e0O2hymy9p3%2Fgiphy-downsized-large.gif%3Fcid%3D790b761135f618e1ed0733c90c4912bf228df0b6ec85696b%26rid%3Dgiphy-downsized-large.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/c556a8d74f0cb76de99d16f3e8dc20bf/href">https://medium.com/media/c556a8d74f0cb76de99d16f3e8dc20bf/href</a></iframe><p>Once, you pulled the git repository into your EC2, use the command below to login into your docker hub account</p><pre>docker login</pre><p>Now, the moment of truth, type in the command below to get your application up and running</p><pre>cd &lt;YOUR FOLDER HERE&gt;</pre><pre>docker-compose -f docker-compose.prod.yml up</pre><blockquote><em>NOTE: If you haven’t read the first article, here’s the link to it(</em><a href="https://ai.plainenglish.io/dockerize-a-react-nodejs-app-and-deploy-in-aws-ec2-the-startup-way-part-1-b398d71c384b?source=your_stories_page-------------------------------------"><em>here</em></a><em> or </em><a href="https://kanlanc.com/dockerizing-react-node-app-deploying-to-ec2/"><em>here</em></a><em>)</em></blockquote><p>That’s it!! You have now an application running on EC2 that can receivetraffic from the outside using its public IPV4 address, but to take it a step further, add an <strong>elastic IP address</strong> to your EC2 instance( it’s free) and if you have a domain, go to the DNS management of your domain and use an A record to point your domain to the elastic IP address and you should have a proper working website.</p><h3>Adding HTTPS To Your Application</h3><blockquote>NOTE: Before you proceed further, please note that you absolutely need a domain name for adding HTTPS to your application. I also recommend getting one for your startup as it builds credibility as well.</blockquote><p>Now, one potential downside, to using docker is that it is a big hassle to setup <em>HTTPS </em>for your application(atleast I barely found a method after a lot of searching which is still not easy), but there is another method that is hassle free and will make your application a lot more robust and scalable but would cost a bit more money. I know as a startup, we are focused on minimising the costs but we had the luck of having Harvard’s help by being incubated, so we had a good amount of AWS credits, and hence I was not under pressure to overly save credits compared to getting the application up and running.</p><p>I’ll link whatever I found in my research below if you would like to proceed without spending, and if you succeed, please let me know so that it can help future visitors.</p><p>Now, that’s out of the way, the method I used to add HTTPS to my application was to use Route53, ALB, and scalable EC2 together.</p><p>Route 53 routes the traffic to ALB which in turn adds the necessary SSL certificate for HTTPS( I will explain how to get and add the SSL certificate below), and routes the traffic to your EC2.</p><p>SO, to add HTTPS, you need:</p><ol><li>Route 53 hosted zone that handles traffic to your domain name</li><li>SSL Certificate</li><li>Application Load Balancer(ALB) configured with the above SSL certificate</li></ol><h3>Route 53</h3><h3>What is Route 53</h3><p>Coming directly from the horse’s mouth(AWS Website)</p><blockquote><em>Amazon Route 53 is a highly available and scalable cloud </em><a href="https://aws.amazon.com/route53/what-is-dns/"><em>Domain Name System (DNS)</em></a><em> web service. It is designed to give developers and businesses an extremely reliable and cost effective way to route end users to Internet applications by translating names like </em><a href="http://www.example.com/"><em>www.example.com</em></a><em> into the numeric IP addresses like 192.0.2.1 that computers use to connect to each other. Amazon Route 53 is fully compliant with IPv6 as well.</em></blockquote><p>In other words, it is a DNS system managed by AWS that allows us to access other AWS components that are otherwise inaccessible(ALB, Amazon provisioned SSL certificate..etc).</p><h3>Building and Configuring Your Hosted Zone in Route53</h3><p>In the AWS search bar, look for Route53 and you should be looking at this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SwD3z84yazXosgyx.png" /></figure><p>Choose Route53 and click on hosted zones in the dashboard. Next, click on the top right orange icon that says “Create Hosted Zone”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j2ir0Exsk2YtY0YN.png" /></figure><p>Fill out the necessary details such as domain name and everything, and click on the “Create Hosted Zone” at the bottom once you are done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f3wl82Bh7LWGwLzz.png" /></figure><p>When your zone is created, you are presented with details such as nameservers and such like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QwcGAVB3_bcinjQ6.png" /></figure><p><strong>Changing Domain Nameservers to Route 53</strong></p><p>Once you get your name servers, you need to go to the DNS dashboard of your domain name provider. For Namecheap, the DNS system would look something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NfiWDGeBe35yN4KK.png" /></figure><p>At the spot that says nameservers, change the field from Namecheap Basic DNS to custom DNS and add the settings you got from your route53 page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YQDR2PHDGGrCzAkl.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*afl43-ebH-7CIS1R.png" /></figure><p>Mine are different, so you should add your own nameservers here.</p><h3>Waiting ( The Hardest Step)</h3><p>Finally…. you gotta wait for a day or two until the DNS gets propagated, but while this happens you can do the rest of the steps, so continue on soldier!!</p><h3>SSL Certificate</h3><p>For any HTTPS application, an SSL certificate is a must and in this section, I will show you exactly how to get it from AWS for FREE.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FW56eV2fuHFWY5ixUnj%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FW56eV2fuHFWY5ixUnj%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FW56eV2fuHFWY5ixUnj%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee7505232b80240b4eb0a3020277748b/href">https://medium.com/media/ee7505232b80240b4eb0a3020277748b/href</a></iframe><p>Now, you know WHY you need it, but for the folks who are not sure what it is, let’s first know</p><h3>What is SSL?</h3><p>Cloudflare website says,</p><blockquote><em>An SSL certificate is a data file hosted in a website’s </em><a href="https://www.cloudflare.com/learning/cdn/glossary/origin-server/"><em>origin server</em></a><em>. SSL certificates make </em><a href="https://www.cloudflare.com/learning/ssl/what-is-ssl/"><em>SSL/TLS encryption</em></a><em> possible, and they contain the website’s </em><a href="https://www.cloudflare.com/learning/ssl/how-does-public-key-encryption-work/"><em>public key</em></a><em> and the website’s identity, along with related information. Devices attempting to communicate with the origin server will reference this file to obtain the public key and verify the server’s identity. The private key is kept secret and secure.</em></blockquote><h3>SSL Certificate from AWS</h3><p>In the AWS search bar, search for certificate manager and you should be greeted like the picture below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0h2ovw7VxgtQ6DZS.png" /></figure><p>In the next page, click on the “Request A Certificate” blue button in the dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_OclZqRPu2ecxwly.png" /></figure><p>Choose “Public Certificate” if asked, if not you should be shown this page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1DTN7ruPYOLwpJ_M.png" /></figure><p>Add your domain names in both with and without www like the picture above. On the next page, choose “DNS Validation” and keep proceeding further until you come to this page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eLuxRCk-jdhiQTDc.png" /></figure><p>If you expand them, you should be shown the option to add these records to your route53 Hosted Zone like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U939dKhB8F0K5p64.png" /></figure><p>Add both of these records to the appropriate hosted zone and you’re done with SSL certificate provisioning.</p><h3>Waiting ( The Second Hardest Step)</h3><p>Well!! Hello there soldier, sadly you will have to stop here cause you need the DNS propagation to go through before moving forward. You can always check its progress on this website, and continue on when it’s done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-QaGDqk1_oiQl7bE.png" /></figure><p>But, until then</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fc16VH0CFMh7gOqqXOM%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fhold-braveheart-brave-heart-c16VH0CFMh7gOqqXOM&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fc16VH0CFMh7gOqqXOM%2Fgiphy.gif%3Fcid%3D790b761148c49a8595ff240a7747a04151ce49265a87ac6e%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="184" frameborder="0" scrolling="no"><a href="https://medium.com/media/ebf36f33960f790370c63c72f3ac3b86/href">https://medium.com/media/ebf36f33960f790370c63c72f3ac3b86/href</a></iframe><h3>Application Load Balancer(ALB)</h3><p>An ALB is a reverse-proxy sitting in front of your application, that routes traffic to your application. In our case, we modify it so that it takes in HTTPS traffic, shows the SSL obtained from before, and routes it to the EC2 with HTTP traffic, so the application can deal accordingly.</p><h3>Benefits of Using ALB</h3><p>There are many benefits of using an Application Load Balancer, but most importantly they bring security, and scalability to your applications</p><h3>ALB SETUP</h3><p>In the AWS search bar, search for “Application Load balancer” and you should be greeted like the picture below, choose the EC2 Loadbalancer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s9cWl2qFjXJUU7c8.png" /></figure><p>Click on the “Create Load Balancer” blue button in the dashboard and choose “Application Load Balancer” in the three options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P94g02axj_-nR_KY.png" /></figure><p>On the next page, give it any name and make sure to add HTTPS protocol like in the picture below by clicking add listener.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vCguHh_IcDXVpv_V.png" /></figure><p>Also, check all the boxes in the availability zone and move on to the next page by clicking the “Next: Configure the Security Settings” button at the bottom left.</p><p>If your DNS got through, there should be a certificate automatically selected, and you can move on to the next page, if not BE PATIENT BOY!! (GOD OF WAR Version)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jGxYOlwY5uUHeIAQ.png" /></figure><p>On the next page, choose “Create New Security Group” and add the following rules</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kWTxxvlLVbNSYU0J.png" /></figure><p>On the next page, make a new target group which should have your new Ec2 instance that has docker running from above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UbTZEs79oTWI5ndZ.png" /></figure><p>Register your Ec2 on the next page, by choosing the Ec2 and clicking “Add to registered” and move on by clicking “Review”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kxfoIiq-VmVCdvYN.png" /></figure><p>Finally, click “Create” and you now have an ALB provisioned.</p><h3>Adding ALB Records to Route53</h3><p>You are at the finishing line, the final step is to add two A records that point to this ALB in your Route53 Hosted Zone, and you are done.</p><p>Go back to your Rout53 hosted zone and click on “Create Record”. Leave the first field empty, and turn on alias in the third field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bTCOimBNoVTMFqWC.png" /></figure><p>Then choose “Alias to Application and Classic Load Balancer”, then the hosted place for your ALB which in most cases is “Ohio” and finally the ALB which should appear as the options, and click “Create Records”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FYrnbuq7kgvmxTxN.png" /></figure><p>Repeat the above step but add “www.” to the first field this time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tX_o-FYGZ1EAenjC.png" /></figure><p>That’s it!! You’ve reached the end of this article as well as added HTTPS protocol for your website. Congratulations!!</p><p>For all the hassle, you’ve been through, I sincerely hope whatever you are working on succeeds. If you have any questions, do let me know in the comments and I will try my best to help.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FKEVNWkmWm6dm8%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FKEVNWkmWm6dm8%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExMmRzaXo2NHl0Y3pvNWNhcWZzd2xsN293dnA0eXg4enRlZm96OW1icyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FKEVNWkmWm6dm8%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="248" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ba47ce913dc890f4b0e8fc947c9267a/href">https://medium.com/media/6ba47ce913dc890f4b0e8fc947c9267a/href</a></iframe><h3>References:</h3><p><a href="https://www.cloudflare.com/learning/ssl/what-is-an-ssl-certificate/">https://www.cloudflare.com/learning/ssl/what-is-an-ssl-certificate/</a></p><p><a href="https://www.cloudflare.com/learning/ssl/what-is-an-ssl-certificate/">https://</a><a href="https://medium.com/aws.amazon.com/route53">aws.amazon.com/route53</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=303921149faf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kanlanc/dockerize-a-react-nodejs-app-and-deploy-in-aws-ec2-the-startup-way-part-2-303921149faf">Dockerize a React Nodejs App and Deploy in AWS EC2 — The Startup Way Part-2</a> was originally published in <a href="https://medium.com/kanlanc">Kanlanc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dockerize a React Nodejs App and Deploy in AWS EC2 — The Startup Way Part-1]]></title>
            <link>https://medium.com/kanlanc/dockerize-a-react-nodejs-app-and-deploy-in-aws-ec2-the-startup-way-part-1-b398d71c384b?source=rss----1afe9a8a999b---4</link>
            <guid isPermaLink="false">https://medium.com/p/b398d71c384b</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Vikranth Kanumuru]]></dc:creator>
            <pubDate>Thu, 26 Aug 2021 14:09:35 GMT</pubDate>
            <atom:updated>2021-07-03T18:19:27.853Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dockerize a React Nodejs App and Deploy in AWS EC2 — The Startup Way Part-1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*is8f0WD8_-u7wamPdEFMqg.jpeg" /></figure><h3>Introduction</h3><p>The startup way part of the heading might be misleading, but when I was looking into tutorials that could help me deploy a <strong>React + Node + Postgres application</strong> for a startup I was freelancing for, all I got were ECS tutorials, or tutorials that only show dockerizing for development purposes which did absolutely nothing to harness the power of react building or docker for that case.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FdQ5XTlqXTysQdGVdWB%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FdQ5XTlqXTysQdGVdWB%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FdQ5XTlqXTysQdGVdWB%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="222" frameborder="0" scrolling="no"><a href="https://medium.com/media/d6a99b1eefeaa844d739f2d191aff659/href">https://medium.com/media/d6a99b1eefeaa844d739f2d191aff659/href</a></iframe><p>For the startup, I was working for, they only wanted to deploy the app for beta testers for a few days and so, the hassle or the cost of going through ECS was just too much.</p><p><strong>Hence, I wanted to make a tutorial that dockerises three services(following a microservices architecture):</strong></p><ol><li><strong>UI service : </strong>Frontend that nginx to serve static assets created by the command “npm run build” in React</li><li><strong>API service :</strong> Backend built with Expressjs( Node framework)</li><li><strong>Postgres service :</strong> A service that serves Postgresql Database</li></ol><p><strong>and make these services cooperate through docker-compose</strong></p><p>If you are unfamiliar with docker or docker-compose, I would recommend going through the youtube video below</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQw9zlE3t8Ko%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQw9zlE3t8Ko&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQw9zlE3t8Ko%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/5edc88d627710277de2c5d62093b128b/href">https://medium.com/media/5edc88d627710277de2c5d62093b128b/href</a></iframe><p>For not overloading you with info, I divided the process into two parts:</p><p>Part-1 : Dockerising the application and,</p><p>Part-2 : Deploying the dockerised application to EC2</p><p>Now, since that’s explained, let’s start with Part-1 of the article.</p><h3>Project File Structure</h3><p>The file structure for the entire project was as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*DAPMZMzyF5MY024Xo5yZGg.png" /></figure><p>You can ignore the .github which was used to make github actions for CI/CD, appspec.yml file( for Continuous Deployment with AWS), and the scripts folder. (If you would like a tutorial for those, let me know in the comments)</p><h3>1. UI service (Frontend)</h3><p>For the frontend which used react, I made a Dockerfile that uses multi-staging to reduce the image size.</p><p>Let’s first start with the <strong>file structure </strong>of the UI folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*g-sUmq2xpfIlcPztkn2POQ.png" /></figure><p>In this file structure, the four things to focus on are:</p><ul><li>Dockerfile</li><li>.dockerignore</li><li>package.json and</li><li>nginx.conf file in nginx folder</li></ul><h3>Dockerfile</h3><pre>FROM node:15-alpine3.10 as build <br>ENV NODE_ENV production <br>LABEL version=”1.0&quot; <br>LABEL description=”This is the base docker image for prod frontend react app.”<br>LABEL maintainer = [“abc@gmail.com”, “anc@gmail.com”]</pre><pre>WORKDIR /app</pre><pre>COPY [“package.json”, “./”]</pre><pre>RUN npm install — production</pre><pre>COPY . ./</pre><pre>RUN npm run build</pre><pre># production environment<br>FROM nginx:1.19.10-alpine<br>COPY --from=build /app/build /usr/share/nginx/html</pre><pre>COPY --from=build /app/nginx/nginx.conf /etc/nginx/conf.d/default.conf<br>EXPOSE 80<br>EXPOSE 443<br>CMD [&quot;nginx&quot;, &quot;-g&quot;, &quot;daemon off;&quot;]</pre><p>Here, we are first building the react environment in the build stage, and later in the production environment we are discarding everything except for the build part which helps reduce the docker image size by compressing the CSS, js files, and keeping only the essentials.</p><p>In the next part, these essentials which are static assets are served with Nginx. You can use other tools like apache, but Nginx is considered the best for static assets.</p><h3>.dockerignore</h3><pre>node_modules<br>npm-debug.log<br>build</pre><p>This makes docker ignore these files</p><h3>package.json</h3><pre>{<br>  &quot;name&quot;: &quot;client&quot;,<br>  &quot;version&quot;: &quot;0.1.0&quot;,<br>  &quot;private&quot;: true,<br>  &quot;dependencies&quot;: {<br>    &quot;<a href="http://twitter.com/cleandersonlobo/react-mic">@cleandersonlobo/react-mic</a>&quot;: &quot;^1.2.0&quot;,<br>    &quot;<a href="http://twitter.com/react">@react</a>-rxjs/core&quot;: &quot;^0.7.1&quot;,<br>    &quot;<a href="http://twitter.com/testing">@testing</a>-library/jest-dom&quot;: &quot;^4.2.4&quot;,<br>    &quot;<a href="http://twitter.com/testing">@testing</a>-library/react&quot;: &quot;^9.3.2&quot;,<br>    &quot;<a href="http://twitter.com/testing">@testing</a>-library/user-event&quot;: &quot;^7.1.2&quot;,<br>    &quot;<a href="http://twitter.com/use">@use</a>-it/event-listener&quot;: &quot;^0.1.6&quot;,<br>    &quot;axios&quot;: &quot;^0.19.2&quot;,<br>    &quot;bootstrap&quot;: &quot;^4.5.3&quot;,<br>    &quot;font-awesome&quot;: &quot;^4.7.0&quot;,<br>    &quot;moment&quot;: &quot;^2.29.1&quot;,<br>    &quot;query-string&quot;: &quot;^6.13.7&quot;,<br>    .......<br>  },<br>  &quot;scripts&quot;: {<br>    &quot;start&quot;: &quot;react-scripts start&quot;,<br>    &quot;build&quot;: &quot;react-scripts build&quot;,<br>    &quot;test&quot;: &quot;react-scripts test&quot;,<br>    &quot;eject&quot;: &quot;react-scripts eject&quot;<br>  },<br>  &quot;eslintConfig&quot;: {<br>    &quot;extends&quot;: &quot;react-app&quot;<br>  },</pre><pre>&quot;proxy&quot;: &quot;<a href="http://api:4000/">http://api:4000</a>&quot;,    &lt;--------- ADD THIS LINE<br>  <br>}</pre><p>Make sure to add the proxy line which is at the end</p><h3>nginx.conf</h3><pre>server {</pre><pre>listen 80;</pre><pre>location / {<br>    root   /usr/share/nginx/html;<br>    index  index.html index.htm;<br>    try_files $uri $uri/ /index.html;<br>  }</pre><pre>location /api {<br>    resolver 127.0.0.11;<br>    proxy_set_header X-Forwarded-Host $host;<br>    proxy_set_header X-Forwarded-Server $host;<br>    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>    proxy_pass <a href="http://api:4000/">http://api:4000</a>;<br>  }</pre><pre>error_page   500 502 503 504  /50x.html;</pre><pre>location = /50x.html {<br>    root   /usr/share/nginx/html;<br>  }</pre><pre>}</pre><p>Add this file in an nginx folder in the UI folder. This file is essential because it tells nginx where to find the static files and where to send the HTTP methods that you use in your react app like get and post.</p><p>Also, it creates a server which listens on the port 80, and the /api part is so that nginx can differentiate which are requests to send to the backend and which requests are not for the backend service. Please note that you are requried to prefix your backend requests with “/api” like if you were sending requests to your backend like:</p><pre>axios.post(“/users/login”)</pre><p>is changed to</p><pre>axios.post(“/api/users/login”)</pre><p>and you are done with the frontend part of your project.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FhrXNZuo6SYYx079zvd%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FhrXNZuo6SYYx079zvd%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FhrXNZuo6SYYx079zvd%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/e7d8b417526786f3e23ba29375990368/href">https://medium.com/media/e7d8b417526786f3e23ba29375990368/href</a></iframe><h3>2. API service</h3><p>File structure of the API service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/1*cpONLUyJuTsLc1qTCXGEqA.png" /></figure><p>**NOTE: You need to setup your backend routes to match up with your frontend changed routes **</p><pre>app.use(“/api”, indexRouter);<br>app.use(“/api/users”, usersRouter);<br>app.use(“/api/auth”, authRoutes);<br>app.use(“/api/cases”, caseRoutes);</pre><p>In this file structure, there are three things to focus on. They are:</p><ul><li>Dockerfile</li><li>.dockerignore</li><li>.env</li></ul><h3>Dockerfile</h3><pre>FROM node:15-alpine3.10<br>ENV NODE_ENV production<br>LABEL version=&quot;1.0&quot;<br>LABEL description=&quot;This is the base docker image for Humaine frontend react app.&quot;<br>LABEL maintainer = [&quot;<a href="/service/mailto:saivicky2015@gmail.com">saivicky2015@gmail.com</a>&quot;, &quot;<a href="/service/mailto:akashsmaran@gmail.com">akashsmaran@gmail.com</a>&quot;]</pre><pre>WORKDIR /app</pre><pre>COPY [&quot;package.json&quot;, &quot;package-lock.json&quot;, &quot;./&quot;]</pre><pre>RUN npm install --production</pre><pre>COPY --chown=node:node . .</pre><pre>USER node</pre><pre>EXPOSE 4000</pre><pre>CMD &quot;npm&quot; &quot;start&quot;</pre><p>This is a standard nodejs dockerfile</p><h3>.dockerignore</h3><pre>node_modules<br>npm-debug.log</pre><h3>.env file</h3><pre>DB_USER=postgres<br>DB_PASSWORD=abc12345<br>DB_HOST=localhost<br>DB_PORT=5432<br>DB_DATABASE= vikranth<br>DB_HOST_DOCKER=postgres</pre><p>This is an env file that I customised for my use, feel free to change the DB_USER, DB_PASSWORD and the DB_DATABASE fields</p><p>That’s it!! You are done with the backend service too.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FhVazFLob1BnLpuWoXx%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FhVazFLob1BnLpuWoXx%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FhVazFLob1BnLpuWoXx%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/8200c11ddf83acdd386e3f4ec4d150ee/href">https://medium.com/media/8200c11ddf83acdd386e3f4ec4d150ee/href</a></iframe><h3>3. Postgres service</h3><p>This is the database part of the project which is relatively very simple.</p><p>Make a config folder in the API folder as shown in the picture below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*p-1b6yLd_1HNeKwah2U0Rg.png" /></figure><p>If you would like to prepopulate your database with the schema or the data, make a dump file using pg_dump meant for postgres sql</p><p>The command is :</p><pre>pg_dump -U postgres vikranth &gt; C:\Users\saivi\OneDrive\Desktop\vikranth_backup_latest.sql</pre><p>change “vikranth” to your database name and store it in the API/config folder.</p><p>Also, add the following files to the folder,</p><ul><li>database.js</li><li>Dockerfile.db</li></ul><h3>database.js</h3><pre>var pg = require(&quot;pg&quot;);<br>const { Client } = require(&quot;pg&quot;);<br>require(&quot;dotenv&quot;).config();<br>const client = new Client({<br>  user: process.env.DB_USER,<br>  // For dev, use below<br>  // host: process.env.DB_HOST,<br>  host: process.env.DB_HOST_DOCKER,<br>  database: process.env.DB_DATABASE,<br>  password: process.env.DB_PASSWORD,<br>  port: process.env.DB_PORT,<br>});<br>client<br>  .connect()<br>  .then((result) =&gt; {<br>    console.log(&quot;Database connection successful&quot;);<br>  })<br>  .catch((err) =&gt; console.log(err));</pre><pre>module.exports = {<br>  database: client,<br>};</pre><h3>Dockerfile.db</h3><pre>#FROM postgres:13.3-alpine THis is not working with initialization</pre><pre>FROM postgres:11.2-alpine<br>COPY ./vikranth_backup_latest.sql /docker-entrypoint-initdb.d/</pre><p>The second line is this file handles prepopulating your container database with the data you exported into the SQL file earlier</p><p>Thats it!! You have reached the final part of the entire thing</p><p>Finally, getting to</p><h3>4. docker-compose file</h3><pre>version: &quot;3.7&quot;</pre><pre>services:<br>  ##############################<br>  # Backend Container<br>  ##############################<br>  postgres:<br>    image: kanlanc/vikranth:production_03062021_postgres<br>    hostname: postgres<br>    container_name: postgres<br>    restart: always<br>    build:<br>      context: ./API/config<br>      dockerfile: Dockerfile.db<br>    ports:<br>      - &quot;5432:5432&quot;<br>    environment:<br>      POSTGRES_DB: vikranth<br>      DB_USER: postgres<br>      DB_PASSWORD: abc12345</pre><pre>volumes:<br>      - vikranth:/var/lib/postgresql/data<br>  api:<br>    env_file: &quot;./API/.env&quot;<br>    container_name: api<br>    restart: always<br>    build:<br>      context: ./API<br>      dockerfile: ./Dockerfile<br>    image: &quot;kanlanc/vikranth:production_03062021_api&quot;<br>    depends_on:<br>      - postgres</pre><pre>ports:<br>      - &quot;4000:4000&quot;</pre><pre>##############################<br>  # UI Container<br>  ##############################<br>  ui:<br>    build:<br>      context: ./UI<br>      dockerfile: ./Dockerfile<br>    image: &quot;kanlanc/vikranth:production_03062021_ui&quot;<br>    restart: always<br>    container_name: ui<br>    ports:<br>      - &quot;80:80&quot;<br>      - &quot;443:443&quot;<br>    depends_on:<br>      - api</pre><pre>##############################<br># Pgadmin Container<br>##############################<br># pgadmin:<br>#   container_name: pgadmin4_container<br>#   image: dpage/pgadmin4<br>#   restart: always<br>#   environment:<br>#     PGADMIN_DEFAULT_EMAIL: <a href="/service/mailto:a@a.com">a@a.com</a><br>#     PGADMIN_DEFAULT_PASSWORD: root<br>#   ports:<br>#     - &quot;5050:80&quot;</pre><pre>volumes:<br>  vikranth:</pre><p>In this file, I’m first building the postgres service, then the api service and finally the UI service.</p><p>Now, if you type the command</p><pre>docker-compose up</pre><p>You should see</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IxKRD_Siw_llZE2Wu2aqCA.png" /></figure><p>Congratulations!! You are finally done with dockerising your application and also succeded in moving to a microservices architecture.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FKEVNWkmWm6dm8%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FKEVNWkmWm6dm8%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExMmRzaXo2NHl0Y3pvNWNhcWZzd2xsN293dnA0eXg4enRlZm96OW1icyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FKEVNWkmWm6dm8%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="248" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ba47ce913dc890f4b0e8fc947c9267a/href">https://medium.com/media/6ba47ce913dc890f4b0e8fc947c9267a/href</a></iframe><p>But to take this a step further, push all your images that are built from the previous docker-compose file to your docker hub using the command line or using Docker Desktop. You need to have a docker account for this step. Create a repo with any name. <strong>Since you would have your own username and repo, make sure to change “kanlanc” to your username and “vikranth” to your repo name in all the files.</strong></p><pre>docker push &lt;your username&gt;/&lt;reponame&gt;:production_14062021_postgres<br>docker push &lt;your username&gt;/&lt;reponame&gt;:production_14062021_api<br>docker push &lt;your username&gt;/&lt;reponame&gt;:production_14062021_ui</pre><pre>example:<br>docker push kanlanc/vikranth:production_14062021_ui</pre><pre>(or)</pre><pre>docker push &lt;your username&gt;/&lt;reponame&gt; --all-tags</pre><p>Once you have finished pushing, all you need is the below docker-compose file alone to deploy( like seriously only one file)</p><p><strong>docker-compose.prod.yml</strong></p><pre>version: &quot;3.7&quot;</pre><pre>services:<br>  ##############################<br>  # Backend Container<br>  ##############################<br>  postgres:<br>    image: kanlanc/vikranth:production_14062021_postgres<br>    hostname: postgres<br>    container_name: postgres<br>    restart: always<br>    ports:<br>      - &quot;5432:5432&quot;<br>    environment:<br>      POSTGRES_DB: vikranth<br>      DB_USER: postgres<br>      DB_PASSWORD: abc12345<br>      POSTGRES_PASSWORD: abc12345<br>    volumes:<br>      - vikranth:/var/lib/postgresql/data<br>  api:<br>    container_name: api<br>    restart: always<br>    image: &quot;kanlanc/vikranth:production_14062021_api&quot;<br>    depends_on:<br>      - postgres</pre><pre>ports:<br>      - &quot;4000:4000&quot;</pre><pre>##############################<br>  # UI Container<br>  ##############################<br>  ui:<br>    image: &quot;kanlanc/vikranth:production_14062021_ui&quot;<br>    restart: always<br>    container_name: ui<br>    ports:<br>      - &quot;80:80&quot;<br>      - &quot;443:443&quot;<br>    depends_on:<br>      - api<br>    # volumes:<br>    #   - ./UI/nginx/certbot/conf:/etc/letsencrypt<br>    #   - ./UI/nginx/certbot/www:/var/www/certbot</pre><pre># ##############################<br>  # # Certbot Container<br>  # ##############################<br>  # certbot:<br>  #   image: certbot/certbot:latest<br>  #   volumes:<br>  #     - ./UI/nginx/certbot/conf:/etc/letsencrypt<br>  #     - ./UI/nginx/certbot/www:/var/www/certbot</pre><pre>##############################<br># Pgadmin Container<br>##############################<br># pgadmin:<br>#   container_name: pgadmin4_container<br>#   image: dpage/pgadmin4<br>#   restart: always<br>#   environment:<br>#     PGADMIN_DEFAULT_EMAIL: <a href="/service/mailto:a@a.com">a@a.com</a><br>#     PGADMIN_DEFAULT_PASSWORD: root<br>#   ports:<br>#     - &quot;5050:80&quot;</pre><pre>volumes:<br>  humaine:</pre><p>Pat yourself in the back for completing your objective of dockerising and if you wanna deploy this to an AWS EC2, read Part-2 of this article <a href="https://itnext.io/dockerize-a-react-nodejs-app-and-deploy-in-aws-ec2-the-startup-way-part-2-303921149faf">here</a> where I can show you the power of docker-compose.</p><p>If you really liked the article, consider dropping me a few claps, so I can be a bit more motivated to write more articles like these.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b398d71c384b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kanlanc/dockerize-a-react-nodejs-app-and-deploy-in-aws-ec2-the-startup-way-part-1-b398d71c384b">Dockerize a React Nodejs App and Deploy in AWS EC2 — The Startup Way Part-1</a> was originally published in <a href="https://medium.com/kanlanc">Kanlanc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beware! You Might Unknowingly Harm Your Company if You Use Github AI Copilot]]></title>
            <link>https://medium.com/kanlanc/beware-you-might-harm-your-company-if-you-use-github-ai-copilot-89ca5102ff2?source=rss----1afe9a8a999b---4</link>
            <guid isPermaLink="false">https://medium.com/p/89ca5102ff2</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Vikranth Kanumuru]]></dc:creator>
            <pubDate>Thu, 26 Aug 2021 14:08:39 GMT</pubDate>
            <atom:updated>2021-08-25T20:42:16.291Z</atom:updated>
            <content:encoded><![CDATA[<h4>You have been warned!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HybMPc3OarF8_vC3" /><figcaption>Photo by <a href="https://unsplash.com/@roadtripwithraj?utm_source=medium&amp;utm_medium=referral">Road Trip with Raj</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>One fine Saturday morning, I wake up with this email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*Iv_eZqNPqXXaTb1yiqFIjg.png" /><figcaption>Image by Author</figcaption></figure><p>Now unless you have been living under a rock, you must have come across the hype surrounding Github’s latest AI advancement.</p><p>I was no exception so extremely excited I rush to my home workspace and impatiently clicked the invitation probably a million plus one times. Did I mention I was very excited?</p><p>But it was then I faced my first roadblock to accessing Copilot, the software I almost dreamed about in my sleep, which was enabling two-factor authentication.</p><p>Now, I know my password is strong enough to occupy 5 years of the hacker’s RAM should anyone be stupid enough to attempt to crack it, but seeing that there is no other way to access the project, I had to enable the two-factor authentication albeit reluctantly.</p><p>The hype and allure of this product were almost tangible across the web so this was but a minor bump in the journey.</p><p>Once I set up everything and actually started hacking away to see Copilot&#39;s Power, in all honesty, the only thing going on in my head was</p><blockquote>“Damn! Damnn!! Damnnn!!!”</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F124Q7jtnpRb5MQ%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F124Q7jtnpRb5MQ%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F124Q7jtnpRb5MQ%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="241" frameborder="0" scrolling="no"><a href="https://medium.com/media/8458277b7f12dbdcdb71dfff749cc04b/href">https://medium.com/media/8458277b7f12dbdcdb71dfff749cc04b/href</a></iframe><p>Here‘s an example:</p><h3>Ale(ssandro) Segala on Twitter: &quot;I got to try @GitHub Copilot a while ago. Using it on a personal project, this GIF is an exact replica of that time Copilot LITERALLY BLEW MY MIND 🤯 it understood from a constant&#39;s name when to format something as Markdown or HTML 😳 pic.twitter.com/zshQPN5UmJ / Twitter&quot;</h3><p>I got to try @GitHub Copilot a while ago. Using it on a personal project, this GIF is an exact replica of that time Copilot LITERALLY BLEW MY MIND 🤯 it understood from a constant&#39;s name when to format something as Markdown or HTML 😳 pic.twitter.com/zshQPN5UmJ</p><p>It was quite a coincidence that it was earlier this month, I wrote another article about <a href="https://ai.plainenglish.io/harnessing-the-power-of-ai-to-improve-your-freelance-writing-income-53aa8198cde6">how AI can be used for freelance writing and blogging</a>, and now, I am looking at an AI software that can possibly replace software engineers.</p><p>AI is truly taking over the world lol.</p><h3>“Alright, Alright, But What the H*ck is Copilot?” You might ask</h3><p><em>“And how exactly are you gonna justify that clickbait title?” might be your follow-up question.</em></p><p>Let me answer both of them in this section</p><p>Starting off, Copilot is a new AI tool that can write user-compatible code and is much better at the task than its predecessor — GPT-3. The preview release <a href="https://github.blog/2021-06-29-introducing-github-copilot-ai-pair-programmer">is built on OpenAI Codex</a>, an AI system acquired by Microsoft from OpenAI. It’s a powerful source code analyzer compatible with dozens of popular programming languages.</p><p>As shown in the above tweet, it autocompletes code snippets, suggests new lines of code, and can even write whole functions based on the description provided. According to the <a href="https://github.blog/2021-06-29-introducing-github-copilot-ai-pair-programmer/">GitHub blog</a>, the tool is not just a language-generating algorithm based on user input — it is a virtual AI <em>pair programmer</em>.</p><p>Distributed as a VSCode extension, Copilot is like a vastly more powerful autocomplete that can fill in whole sections of code. It looks at what you’re writing and suggests new lines or entire self-contained functions.</p><p>After the initial honeymoon period with the new toy(software), being an engineer at heart, I asked the Copilot team in Github if I can contribute.</p><p>The answer I got disappointingly said I cannot with code but through usage examples.</p><p>Although my efforts for code contribution were in vain, I wanted to understand how this exquisite piece of software was built.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9rbm-UoWSi1AGPqwaefLsA.png" /><figcaption>Image by Author</figcaption></figure><p>Now, this is where the story gets very interesting,</p><h3>Questionable Training Data Sources</h3><p>After doing a bit of research, I came across articles that say, in prettier terms, that Copilot is trained on “Borrowed” code from Github Repositories, but in cruder terms, rephase it as Copilot has been trained on “Copyright infringement”-able code.</p><blockquote>Copilot has been trained using public GitHub projects with a wide variety of licenses. According to GitHub, this represents fair use of those projects. What’s less clear is your responsibilities should you accept a Copilot suggestion.</blockquote><p>The question comes when you ask what happens when the tool reproduces these code snippets? Is it legal? Can father organizations like Microsoft, OpenAI, and GitHub make money from this tool even if it is trained on free and open-source code?</p><p>Now even if we ignore the morality of using open-source code to monetize like this, you might wonder how exactly is it “Copyright infringement” if you use open source code because by definition open source means anyone can copy and use it right?</p><p>This is where the subtle definitions of licenses come into play. The different types of common open-source licenses are MIT, Apache, and GPL(General Public License). MIT and Apache let you have free reign over code under their licenses with none or a few constraints like attribution.</p><p>But GPL and other similar licenses stipulate derivative works must include the same permissions,<strong> so incorporating GPL code into a commercial product is a licensing breach.</strong></p><blockquote>Consequently, the use of Copilot has serious legal ramifications attached which you should evaluate before installing it. As Copilot <em>does</em> seem to emit code verbatim, without indicating the license accompanying the snippet, you could unknowingly commit copyright infringement by accepting a suggestion.</blockquote><h3>Armin Ronacher on Twitter: &quot;I don&#39;t want to say anything but that&#39;s not the right license Mr Copilot. pic.twitter.com/hs8JRVQ7xJ / Twitter&quot;</h3><p>I don&#39;t want to say anything but that&#39;s not the right license Mr Copilot. pic.twitter.com/hs8JRVQ7xJ</p><h3>eevee on Twitter: &quot;github copilot has, by their own admission, been trained on mountains of gpl code, so i&#39;m unclear on how it&#39;s not a form of laundering open source code into commercial works. the handwave of &quot;it usually doesn&#39;t reproduce exact chunks&quot; is not very satisfying pic.twitter.com/IzqtK2kGGo / Twitter&quot;</h3><p>github copilot has, by their own admission, been trained on mountains of gpl code, so i&#39;m unclear on how it&#39;s not a form of laundering open source code into commercial works. the handwave of &quot;it usually doesn&#39;t reproduce exact chunks&quot; is not very satisfying pic.twitter.com/IzqtK2kGGo</p><h3>Your API Keys and App Secrets might be at Risk</h3><p>Then there is a chance that it might leak your API keys and other secrets after gathering enough data from your time with it.</p><blockquote>Here’s where the trouble begins. Copilot still stands a chance of outputting code sections verbatim. Depending on the licenses surrounding those snippets, this could get your own project into hot water. As Copilot’s been trained on GitHub projects, you might even find personal data is injected into your source files.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/0*EAB1JMaM_njMbFMT.png" /><figcaption><a href="https://xkcd.com/2169/">Predictive models</a> [xkcd]</figcaption></figure><h3>In the Near Future, You might Pay for What You Helped Create</h3><p>This man explained it the best:</p><h3>Brian P. Hogan on Twitter: &quot;Hi. I know you&#39;re excited about copilot. GitHub scraped your code. And they plan to charge you for copilot after you help train it further.It&#39;s truly disappointing to watch people cheer at having their work and time exploited by a company worth billions. / Twitter&quot;</h3><p>Hi. I know you&#39;re excited about copilot. GitHub scraped your code. And they plan to charge you for copilot after you help train it further.It&#39;s truly disappointing to watch people cheer at having their work and time exploited by a company worth billions.</p><h3>Conclusion</h3><p>Copilot is very appealing to developers because it aims to take on one of the biggest headaches developers face which is writing boilerplate code, which in many cases can tend to be not very specific with the project at hand.</p><p>But just like the saying,</p><blockquote>Drinking poison to satisfy thirst</blockquote><p>Using Copilot as it is now, will only lead to more headaches and problems in the coming future.</p><p>If GitHub is able to somehow overcome these obstacles and develop Copilot further, I have no doubts saying it will be one the most widely used tool in a developer’s toolbox.</p><p>Let me know your thoughts.</p><h3>Want more from me?</h3><ol><li><a href="https://kanlanc.medium.com/subscribe"><strong>Subscribe</strong></a><strong> </strong>to get notified when I publish articles.</li><li><a href="https://kanlanc.medium.com/membership"><strong>Support my writing</strong></a> by becoming a referred Medium member.</li><li>Connect and reach me on <a href="https://www.linkedin.com/in/vikranth-kanumuru-751a73125/"><strong>Linkedin</strong></a><strong> and </strong><a href="https://twitter.com/kanlanc"><strong>Twitter</strong></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89ca5102ff2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kanlanc/beware-you-might-harm-your-company-if-you-use-github-ai-copilot-89ca5102ff2">Beware! You Might Unknowingly Harm Your Company if You Use Github AI Copilot</a> was originally published in <a href="https://medium.com/kanlanc">Kanlanc</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>