<?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: Bharat Kashyap</title>
    <description>The latest articles on DEV Community by Bharat Kashyap (@bharattttttt).</description>
    <link>https://dev.to/bharattttttt</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%2F10549%2F_RarU3ST.jpg</url>
      <title>DEV Community: Bharat Kashyap</title>
      <link>https://dev.to/bharattttttt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bharattttttt"/>
    <language>en</language>
    <item>
      <title>Add comments to your Gridsome app!</title>
      <dc:creator>Bharat Kashyap</dc:creator>
      <pubDate>Sun, 28 Nov 2021 20:06:47 +0000</pubDate>
      <link>https://dev.to/bharattttttt/add-comments-to-your-gridsome-app-258j</link>
      <guid>https://dev.to/bharattttttt/add-comments-to-your-gridsome-app-258j</guid>
      <description>&lt;p&gt;Recently, I had to go through the process of thinking about how to add comments to a magazine website that I had built a while back using Gridsome - a JAM-stack based static site generator for Vue. &lt;/p&gt;

&lt;h3&gt;
  
  
  TL;DR
&lt;/h3&gt;

&lt;p&gt;Of all the commenting engines, if you're looking for something that's free for low usage and easy to integrate: go ahead with Disqus.&lt;/p&gt;

&lt;p&gt;Use this excellent component to integrate Disqus for Vue packages : &lt;a href="https://ktquez.github.io/vue-disqus/components/disqus.html#usage"&gt;&lt;code&gt;vue-disqus&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Build your own comments?
&lt;/h3&gt;

&lt;p&gt;This is the option I began with. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If your application &lt;em&gt;already has authentication&lt;/em&gt;, then I'd say it might be worthwhile for you to be able to control and own your own comments data by building a comments component. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, any standard comments system would expect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;nested replies&lt;/li&gt;
&lt;li&gt;emoji reactions&lt;/li&gt;
&lt;li&gt;likes 
to be a part of it - things that rapidly start spinning out of the maintainability hand.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Disqus
&lt;/h3&gt;

&lt;p&gt;I'd seen Disqus being used across multiple websites for comment management, so I was inclined to integrate it. &lt;/p&gt;

&lt;p&gt;The other option I considered (but quickly abandoned) was NodeBB, but soon realised that it was more of a full-fledged discussions management solution, rather than an easy embeddable comments manager.&lt;/p&gt;

&lt;h3&gt;
  
  
  Usage
&lt;/h3&gt;

&lt;p&gt;Before integrating, all I had to do was: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Create a Disqus account and generate a "shortcode" for my app. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I followed the steps mentioned &lt;a href="https://ktquez.github.io/vue-disqus/components/disqus.html#usage"&gt;here&lt;/a&gt; and had no issues integrating.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Behind the scenes, the component embeds &lt;code&gt;&amp;lt;shortcode&amp;gt;.disqus.io&lt;/code&gt; as an &lt;code&gt;iframe&lt;/code&gt;, wherever you include it. &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Limitations
&lt;/h3&gt;

&lt;p&gt;Keep in mind that: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Disqus is &lt;strong&gt;not open source&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You don't own the comments data that comes in &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Although it's free to begin with, &lt;strong&gt;if you're anticipating high traffic or want to remove any ads being displayed on the page&lt;/strong&gt;, you might want to check out the pricing pages or investigate alternative solutions.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Happy commenting!&lt;/p&gt;

</description>
      <category>gridsome</category>
      <category>comments</category>
      <category>vue</category>
    </item>
  </channel>
</rss>
