<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: adithyakam</title>
    <description>The latest articles on DEV Community by adithyakam (@adithyakam).</description>
    <link>https://dev.to/adithyakam</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F407285%2F1753252e-3c1a-4f85-9c57-a18af538bbff.png</url>
      <title>DEV Community: adithyakam</title>
      <link>https://dev.to/adithyakam</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adithyakam"/>
    <language>en</language>
    <item>
      <title>Youtube Clone</title>
      <dc:creator>adithyakam</dc:creator>
      <pubDate>Wed, 07 Apr 2021 03:39:13 +0000</pubDate>
      <link>https://dev.to/adithyakam/youtube-clone-5f9o</link>
      <guid>https://dev.to/adithyakam/youtube-clone-5f9o</guid>
      <description>&lt;p&gt;This is the youtube clone which I did from the sonny sanga tutorials in youtube, The tutorial was good ,I have learnt many things also it includes Redux for the state management with stripe.&lt;/p&gt;

&lt;p&gt;I have added my own touch to build by adding the youtube trailer link for the movies &amp;amp; the stripe button with node server for stripe payments.&lt;/p&gt;

&lt;p&gt;Please find below how I have added stripe &amp;amp; trailer feature for netflix clone&lt;/p&gt;

&lt;p&gt;link to the project- &lt;a href="https://netfllicclonne.herokuapp.com/"&gt;https://netfllicclonne.herokuapp.com/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I added stripe button
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Install react-stripe-checkout from npm&lt;/li&gt;
&lt;li&gt;In client code add following code
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
   ` import React from 'react';
    import StripeCheckout from 'react-stripe-checkout';
    import axios from 'axios';

    const StripeCheckoutButton = ({ price }) =&amp;gt; {
    const priceForStripe = price * 100;
    const publishableKey =****;

    const onToken = token =&amp;gt; { 
     axios({
       url: 'payment',
       method: 'post',
       data: {
        amount: priceForStripe,
        token: token
       }
      })
      .then(response =&amp;gt; {
        alert('succesful payment');
      })
      .catch(error =&amp;gt; {
        console.log('Payment Error: ', error);
        alert(
          'There was an issue with your payment! Please make sure 
     you use the provided credit card.'
        );
      });
    };

  return (
    &amp;lt;StripeCheckout
      label='subscribe'
      name='Netflix-clone'
      billingAddress
      shippingAddress

image='https://assets.stickpng.com/images/580b57fcd9996e24bc43c529.png'
      description={`Your total is $${price}`}
      amount={priceForStripe}
      panelLabel='Pay Now'
      token={onToken}
      stripeKey={publishableKey}
    /&amp;gt;
  );
};

export default StripeCheckoutButton `


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3.Add an node server to run/open the stripe popup when hit /payment route&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

` app.post("/payment", (req, res) =&amp;gt; {
  console.log("inpayment");
  const body = {
    source: req.body.token.id,
    amount: req.body.amount,
    description: "test description",
    currency: "INR",
  };

  stripe.charges.create(body, (stripeErr, stripeRes) =&amp;gt; {
    if (stripeErr) {
      console.log("abc", stripeErr);
      res.status(500).send({ error: stripeErr });
    } else {
      console.log("abc2");

      res.status(200).send({ success: stripeRes });
     }
     }) `


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;4.Voila!! your stripe payment is ready &lt;/p&gt;

&lt;h3&gt;
  
  
  How To integrate Tmdb api with youtube-trailer
&lt;/h3&gt;

&lt;p&gt;1.install movie-trailer &amp;amp; react-youtube from npm&lt;/p&gt;

&lt;p&gt;2.Then fetch trailers id from the below link replace &lt;strong&gt;movie.id&lt;/strong&gt; by id of the movie,that  trailer to be fetched &lt;a href="https://api.themoviedb.org/3/movie/%24%7Bmovie.id%7D/videos?api_key=9d2bff12ed955c7f1f74b83187f188ae"&gt;https://api.themoviedb.org/3/movie/${movie.id}/videos?api_key=9d2bff12ed955c7f1f74b83187f188ae&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.store the key value from the results fetched from before ,&amp;amp; send it as trailer prop&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
   `&amp;lt;Youtube videoId={trailer} opts={
    height : "390",
    width : "100%",
    playerVars : {
        autoplay:1,
    }}/&amp;gt;`


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;4.Now you have working trailer popup for the movies&lt;/p&gt;

&lt;p&gt;please do share your feedback on this blog&lt;br&gt;
Thanks for your time :)&lt;/p&gt;

</description>
      <category>react</category>
      <category>redux</category>
      <category>javascript</category>
      <category>stripe</category>
    </item>
    <item>
      <title>The New porfolio: Github readme?</title>
      <dc:creator>adithyakam</dc:creator>
      <pubDate>Mon, 03 Aug 2020 03:44:00 +0000</pubDate>
      <link>https://dev.to/adithyakam/the-new-porfolio-github-readme-49j0</link>
      <guid>https://dev.to/adithyakam/the-new-porfolio-github-readme-49j0</guid>
      <description>&lt;p&gt;The Github released an new feature which makes your github profile look great. we can use markdown to edit too.&lt;br&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cic4aEC4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ygp9yots03xzxkhz0mqc.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cic4aEC4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ygp9yots03xzxkhz0mqc.PNG" alt="github"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This new feature has all the potential to replace the portfolio,we need to wait how it turnout to be.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to implement this
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Create an repository in same name as the github account with readme file.&lt;/li&gt;
&lt;li&gt;While creating this you will be notified as * you found a secret a &lt;strong&gt;special repository&lt;/strong&gt; *, Also make sure repo is Public.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Most of the users are briging there creativity to make it look impressive,cool&lt;/p&gt;

&lt;p&gt;Also you can add github stats,&lt;br&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8fK-NV01--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/czov2n69vgezayv741f3.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8fK-NV01--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/czov2n69vgezayv741f3.PNG" alt="Github stats"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;for this you just have to add belowline replace gitname to your github account name&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;gitName&lt;/span&gt; &lt;span class="nx"&gt;github&lt;/span&gt; &lt;span class="nx"&gt;stats&lt;/span&gt;&lt;span class="p"&gt;](&lt;/span&gt;&lt;span class="nx"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//github-readme-stats.vercel.app/api?username=gitname)](https://github.com/gitname/github-readme-stats)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;for more info on this please check out &lt;a href="https://github.com/anuraghazra/github-readme-stats"&gt;Anurag ghazra&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also you can also automate the readme toget your latest post check out &lt;a href="https://github.com/gautamkrishnar"&gt;gautam krishnar&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for your time :)&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>github</category>
      <category>portfolio</category>
      <category>git</category>
    </item>
    <item>
      <title>How to be an Web dev in 2020</title>
      <dc:creator>adithyakam</dc:creator>
      <pubDate>Mon, 15 Jun 2020 08:01:12 +0000</pubDate>
      <link>https://dev.to/adithyakam/how-to-be-an-web-dev-in-2020-3bko</link>
      <guid>https://dev.to/adithyakam/how-to-be-an-web-dev-in-2020-3bko</guid>
      <description>&lt;p&gt;Hi Guys,&lt;/p&gt;

&lt;p&gt;This is my very first blog where I give little detail about how to be an web dev in 2020.&lt;/p&gt;

&lt;h3&gt;
  
  
  Background
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;How Internet/Web works.&lt;/li&gt;
&lt;li&gt;Background on server,DNS.&lt;/li&gt;
&lt;li&gt;Little bit of Networkinglike TCP/Ip...&lt;/li&gt;
&lt;li&gt;Json&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  FrontEnd
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;HTML,CSS,JS&lt;/li&gt;
&lt;li&gt;CSS Framework(like Bootstarp,MaterializeCSS)&lt;/li&gt;
&lt;li&gt;JS Framework or Library(Like react,Angular,Vue)&lt;/li&gt;
&lt;li&gt;Project Mangement(like NPM/Yarn ,Github)&lt;/li&gt;
&lt;li&gt;CI/CD (Github , Jenkins)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  BackEnd
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;NodeJS,Express or Java or PHP or Python&lt;/li&gt;
&lt;li&gt;Rest API or GraphQL&lt;/li&gt;
&lt;li&gt;Autentication(Firebase,Token-based)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  DataBase
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;SQL or NoSQL anyone is prefferred to have knowledge.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Advance Topics
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Datastructure &amp;amp; Algorithmns.&lt;/li&gt;
&lt;li&gt;SSH,certificates.&lt;/li&gt;
&lt;li&gt;Big-O&lt;/li&gt;
&lt;li&gt;PWA,Cloud(AWS,Azure)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks for your time. &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>frontenddeveloper</category>
      <category>fullstackdeveloper</category>
    </item>
  </channel>
</rss>
