<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dhanasekaran Ravichandran on Medium]]></title>
        <description><![CDATA[Stories by Dhanasekaran Ravichandran on Medium]]></description>
        <link>https://medium.com/@dhanar98?source=rss-4705cd2985b1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BCsEFL5wZUDI8sRR171QCg.jpeg</url>
            <title>Stories by Dhanasekaran Ravichandran on Medium</title>
            <link>https://medium.com/@dhanar98?source=rss-4705cd2985b1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:00:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dhanar98/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[2024 -Razorpay Payment Gateway Integration in Laravel 10]]></title>
            <link>https://dhanar98.medium.com/2024-razorpay-payment-gateway-integration-in-laravel-10-19a590024f07?source=rss-4705cd2985b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/19a590024f07</guid>
            <category><![CDATA[php-8]]></category>
            <category><![CDATA[razorpay]]></category>
            <category><![CDATA[laravel-framework]]></category>
            <dc:creator><![CDATA[Dhanasekaran Ravichandran]]></dc:creator>
            <pubDate>Sat, 27 Jan 2024 19:28:39 GMT</pubDate>
            <atom:updated>2024-01-28T06:41:37.123Z</atom:updated>
            <content:encoded><![CDATA[<p>In this tutorial, you will learn how to integrate RazorPay in your Laravel 10 application. Read on to know the essential steps for the integration. This article will cover the all the all the cases involved in the payment feature.</p><figure><img alt="Steps to Integrate Razorpay Payment Gateway In Laravel" src="https://cdn-images-1.medium.com/max/1024/1*prrnAEzeN5yemTRFX0vNoQ.png" /><figcaption>Steps to Integrate Razorpay Payment Gateway In Laravel</figcaption></figure><h3>Steps to Integrate Razorpay Payment Gateway In Laravel</h3><p>The Step by Step process to implement this feature in Laravel 10 Application.</p><h3>Step 1 — Install the Laravel 10 Application</h3><p>Install the laravel application directory where ever you want to using this command.</p><pre>composer create-project laravel/laravel IntegrateRazorpayInLaravel</pre><h3>Step 2 — Connect Database to an Application</h3><p>Update the database configuration in .env</p><pre>DB_CONNECTION=mysql <br>DB_HOST=localhost<br>DB_PORT=3306 <br>DB_DATABASE=razorpay <br>DB_USERNAME=root <br>DB_PASSWORD=</pre><h3>Step 3 — Add RazorPay Credentials From Dashboard</h3><p>Access the API KEY and SECRET KEY from your <a href="https://dashboard.razorpay.com/">Razorpay Dashboard</a>. First, log in to the dashboard, then go to Account Settings &gt; . Add the keys in .env</p><pre>RAZORPAY_API_KEY=rzp_test_XXXXXXXXXX <br>RAZORPAY_API_SECRET=XXXXXXXXXXXXXXXXX</pre><h3>Step 4 — Install the Razorpay Composer Package</h3><p>Install the razorpay composer package to handle the payment related activities in Laravel Application.</p><pre>composer require razorpay/razorpay</pre><p>This command will download and install the Razorpay PHP SDK into your Laravel project.</p><h3>Step 5 — Create a Table and Model to Store the Razorpay Events Response</h3><p>Now we are going to create a model and table for this setup using this below command.</p><pre>php artisan make:model Payment --migration</pre><p>Now the Migration and Model Files are generated. Update the table schema based on your need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pv9AMy7w9vkyeClQ" /></figure><p>Here the below code for above migration and model creation.</p><pre>&lt;?php<br><br>namespace App\Models;<br><br>use Illuminate\Database\Eloquent\Factories\HasFactory;<br>use Illuminate\Database\Eloquent\Model;<br><br>class Payment extends Model<br>{<br>    use HasFactory;<br>    protected $table = &#39;payments&#39;;<br>    protected $guarded = [&#39;id&#39;];<br>}</pre><pre>&lt;?php<br><br>use Illuminate\Database\Migrations\Migration;<br>use Illuminate\Database\Schema\Blueprint;<br>use Illuminate\Support\Facades\Schema;<br><br>return new class extends Migration<br>{<br>    /**<br>     * Run the migrations.<br>     */<br>    public function up(): void<br>    {<br>        Schema::create(&#39;payments&#39;, function (Blueprint $table) {<br>            $table-&gt;id();<br>            $table-&gt;string(&#39;r_payment_id&#39;);<br>            $table-&gt;string(&#39;method&#39;);<br>            $table-&gt;string(&#39;currency&#39;);<br>            $table-&gt;string(&#39;email&#39;);<br>            $table-&gt;string(&#39;phone&#39;);<br>            $table-&gt;string(&#39;amount&#39;);<br>            $table-&gt;string(&#39;status&#39;);<br>            $table-&gt;longText(&#39;json_response&#39;);<br>            $table-&gt;timestamps();<br>        });<br>    }<br><br>    /**<br>     * Reverse the migrations.<br>     */<br>    public function down(): void<br>    {<br>        Schema::dropIfExists(&#39;payments&#39;);<br>    }<br>};</pre><p>Execute the below command to run the migration</p><pre>php artisan migrate</pre><h3>Step 6 — Create a Controller and Views</h3><p>Create a RazorpayController to handle the request and response based actions in the application and UI Design in the views.</p><p>Execute the below command to create the controller and view</p><pre>php artisan make:controller RazorpayController <br>php artisan make:view razorpay/index <br>php artisan make:view components/razorpay-form <br>php artisan make:view errors/402</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N4jh20joppkYCEfe" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ejGML6Dk2DTrAiHd" /></figure><p>The Command is Only Applicable in After Laravel V10.30</p><p>In the <strong>RazorpayController</strong> Add the Business Logic to handle the Razorpay success and failure events scenario.</p><pre>&lt;?php<br><br>namespace App\Http\Controllers;<br><br>use Illuminate\Http\Request;<br>use Illuminate\Contracts\View\View;<br>use Illuminate\Support\Facades\Log;<br>use Illuminate\Support\Facades\Session;<br>use App\Models\Payment;<br>use Illuminate\Http\JsonResponse;<br>use Illuminate\Support\Facades\DB;<br>use Razorpay\Api\Api;<br><br>class RazorpayController extends Controller<br>{<br>    public function index(): View<br>    {<br>        try {<br>            return view(&#39;razorpay.index&#39;);<br>        } catch (\Throwable $th) {<br>            Log::error(&#39;PAYMENT_INDEX_ERROR&#39;.$th-&gt;getMessage());<br>        }<br>    }<br><br>    public function store(Request $request): JsonResponse<br>    {<br>        DB::beginTransaction();<br><br>        try {<br><br>            $paymentResponse = $request-&gt;input(&#39;response&#39;, []);<br>            if (count($paymentResponse) &gt; 0 &amp;&amp; empty($paymentResponse[&#39;razorpay_payment_id&#39;])) {<br>                Session::put(&#39;error&#39;, &#39;No Payment ID Found&#39;);<br><br>                return redirect()-&gt;back();<br>            }<br><br>            $api = new Api(env(&#39;RAZORPAY_API_KEY&#39;), env(&#39;RAZORPAY_API_SECRET&#39;));<br>            $payment = $api-&gt;payment-&gt;fetch($paymentResponse[&#39;razorpay_payment_id&#39;]);<br>            $response = $payment-&gt;capture([&#39;amount&#39; =&gt; $payment[&#39;amount&#39;]]);<br>            Payment::create([<br>                &#39;r_payment_id&#39; =&gt; $response-&gt;id,<br>                &#39;method&#39; =&gt; $response-&gt;method,<br>                &#39;currency&#39; =&gt; $response-&gt;currency,<br>                &#39;email&#39; =&gt; $response-&gt;email,<br>                &#39;phone&#39; =&gt; $response-&gt;contact,<br>                &#39;amount&#39; =&gt; $response-&gt;amount / 100,<br>                &#39;status&#39; =&gt; &#39;success&#39;,<br>                &#39;json_response&#39; =&gt; json_encode((array) $response)<br>            ]);<br><br>            Session::put(&#39;success&#39;, &#39;Payment Successful&#39;);<br>            DB::commit();<br><br>            return response()-&gt;json([&#39;success&#39; =&gt; true, &#39;message&#39; =&gt; &#39;Payment successfully recorded&#39;]);<br><br>        } catch (\Throwable $th) {<br>            DB::rollBack();<br>            Log::error(&#39;PAYMENT_STORE_ERROR&#39;.$th-&gt;getMessage());<br>            Session::put(&#39;error&#39;, $th-&gt;getMessage());<br><br>            return response()-&gt;json([&#39;success&#39; =&gt; false, &#39;error&#39; =&gt; &#39;Internal Server Error&#39;], 500);<br>        }<br>    }<br><br>    public function failure(Request $request): JsonResponse {<br>        DB::beginTransaction();<br><br>        try {<br>            $responseData = $request-&gt;input(&#39;response&#39;, []);<br>            $errorData = $responseData[&#39;error&#39;] ?? [];<br><br>            Payment::create([<br>                &#39;r_payment_id&#39; =&gt; $errorData[&#39;metadata&#39;][&#39;payment_id&#39;] ?? null,<br>                &#39;method&#39; =&gt; $errorData[&#39;source&#39;] ?? null,<br>                &#39;currency&#39; =&gt; &#39;INR&#39;,<br>                &#39;email&#39; =&gt; &#39;&#39;, //email id for the the user<br>                &#39;phone&#39; =&gt; &#39;&#39;, // mobile number for the user,<br>                &#39;amount&#39; =&gt; 100, // amount for the payment process<br>                &#39;status&#39; =&gt; &#39;failed&#39;,<br>                &#39;json_response&#39; =&gt; json_encode($responseData)<br>            ]);<br><br>            DB::commit();<br>            return response()-&gt;json([&#39;success&#39; =&gt; true, &#39;message&#39; =&gt; &#39;Payment failure recorded&#39;]);<br><br>        } catch (\Throwable $th) {<br>            DB::rollBack();<br>            Log::error(&#39;PAYMENT_FAILURE_ERROR: &#39;.$th-&gt;getMessage());<br>            return response()-&gt;json([&#39;success&#39; =&gt; false, &#39;error&#39; =&gt; &#39;Internal Server Error&#39;], 500);<br>        }<br>    }<br>}</pre><p>To handle the payment gateway via View.</p><pre>{{-- resources/views/razorpay/index.blade.php --}}<br>&lt;html&gt;<br>&lt;head&gt;<br>&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js&quot; <br>        crossorigin=&quot;anonymous&quot; referrerpolicy=&quot;no-referrer&quot;&gt;&lt;/script&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>     &lt;div&gt;@include(&#39;components.razorpay-form&#39;)&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>We have created a component form to manage Razorpay payment activities, allowing for seamless integration of the payment gateway page throughout the application, accessible via a button click.</p><pre>{{-- resources/views/components/razorpay-form.blade.php --}}<br>&lt;form action=&quot;{{ route(&#39;razorpay.payment.store&#39;) }}&quot; method=&quot;POST&quot;&gt;<br>    @csrf<br>    &lt;script src=&quot;https://checkout.razorpay.com/v1/checkout.js&quot;&gt;&lt;/script&gt;<br>    &lt;button id=&quot;payBtn&quot;&gt;Pay 100 INR<br>    &lt;/button&gt;<br>&lt;/form&gt;<br><br>&lt;script&gt;<br>    var options = {<br>        &quot;key&quot;: &quot;{{ env(&#39;RAZORPAY_API_KEY&#39;) }}&quot;,<br>        &quot;amount&quot;: &quot;10000&quot;,<br>        &quot;name&quot;: &quot;Dhanar98&quot;,<br>        &quot;description&quot;: &quot;Razorpay payment&quot;,<br>        &quot;image&quot;: &quot;https://cdn.razorpay.com/logos/NSL3kbRT73axfn_medium.png&quot;,<br>        &quot;prefill&quot;: {<br>            &quot;name&quot;: &quot;ABC&quot;,<br>            &quot;email&quot;: &quot;abc@gmail.com&quot;<br>        },<br>        &quot;theme&quot;: {<br>            &quot;color&quot;: &quot;#0F408F&quot;<br>        },<br>        &quot;handler&quot; : function(res) {<br>            console.log(res);<br><br>            $.ajax({<br>                url: &quot;/payment/create&quot;,<br>                type: &#39;POST&#39;,<br>                dataType: &#39;json&#39;,<br>                data: {<br>                    _token: &quot;{{ csrf_token() }}&quot;, // CSRF token<br>                    response: {<br>                        razorpay_payment_id: res.razorpay_payment_id<br>                    }<br>                },<br>                success: function(res) {<br>                    console.log(&#39;Payment data sent to server&#39;, res);<br>                    if (res.success = true) {<br>                        window.location.href = &#39;/&#39;; //payment failure<br>                    }<br>                },<br>                error: function(jqXHR, textStatus, errorThrown) {<br>                    console.log(&#39;Error sending payment failure information:&#39;, textStatus, errorThrown);<br>                }<br>            });<br>        },<br>        &quot;modal&quot;: {<br>            &quot;ondismiss&quot;: function() {<br>                // This function is called when the user closes the modal<br>                window.location.href = &#39;/&#39;; // Redirect to your failure page<br>            }<br>        }<br>    };<br><br>    var rzp = new Razorpay(options);<br>    document.getElementById(&#39;payBtn&#39;).onclick = function(e) {<br>        rzp.open();<br>        e.preventDefault();<br>    }<br><br>    rzp.on(&#39;payment.failed&#39;, function(response) {<br><br>        event.preventDefault();<br>        if (response.reason = &quot;payment_failed&quot;) {<br>            const {<br>                error,<br>                reason<br>            } = response;<br>            $.ajax({<br>                url: &quot;/payment/failure&quot;,<br>                type: &#39;POST&#39;,<br>                dataType: &#39;json&#39;,<br>                data: {<br>                    _token: &quot;{{ csrf_token() }}&quot;, // CSRF token<br>                    response: {<br>                        error,<br>                        reason<br>                    }<br>                },<br>                success: function(response) {<br>                    console.log(&#39;Payment failure data sent to server&#39;, response);<br>                    if (response.success = true) {<br>                        window.location.href = &#39;/402&#39;; //payment failure<br>                    }<br>                },<br>                error: function(jqXHR, textStatus, errorThrown) {<br>                    console.log(&#39;Error sending payment failure information:&#39;, textStatus, errorThrown);<br>                }<br>            });<br>        }<br>    });<br>&lt;/script&gt;</pre><p>Handling payment Failure created a error page in errors folder in views.</p><pre>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Payment Required&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;402 Payment Required&lt;/h1&gt; &lt;/body&gt; &lt;/html&gt;</pre><h3>Step 7 — Create a Routes To Handle Requests</h3><p>To create a requests in the web.php to handle the success and failure events.</p><pre>&lt;?php<br><br>use App\Http\Controllers\RazorpayController;<br>use Illuminate\Support\Facades\Route;<br><br>Route::get(&#39;/&#39;, function () {<br>    return view(&#39;welcome&#39;);<br>});<br><br>Route::get(&#39;payment&#39;,[RazorpayController::class,&#39;index&#39;]);<br>Route::post(&#39;payment/create&#39;,[RazorpayController::class,&#39;store&#39;])-&gt;name(&#39;razorpay.payment.store&#39;);<br>Route::post(&#39;payment/failure&#39;,[RazorpayController::class,&#39;failure&#39;])-&gt;name(&#39;razorpay.payment.failure&#39;);<br>Route::get(&#39;/402&#39;, function () {<br>    return view(&#39;errors.402&#39;);<br>});</pre><h3>Step 8 — Run the Application</h3><p>To run the application execute the command in terminal.</p><pre>php artisan serve</pre><p>I run my application in it creates a seperate APP_URL for every project i created. if you’re working very long in XAMPP try you will never go XAMPP again. so i don’t need this command also (Windows OS) only.</p><h3>Conclusion:</h3><p>In this article I covered all the steps to integrate razorpay in Laravel 10 Application and handling success and error response in the payment gateway controller.</p><p>Share your colleague or friend who is struggling to integrate razorpay and support my work from coindrop.</p><h3>GITHUB Repository:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/87/0*5S52Ci2SAhZbPrMe" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/111/0*9gQTYMj4R2iz5Tph" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/117/0*FGTpsRTkxu4cgM63" /></figure><p><em>Originally published at </em><a href="https://dhanar98.hashnode.dev/razorpay-payment-gateway-integration-in-laravel"><em>https://dhanar98.hashnode.dev</em></a><em> on January 28, 2024.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19a590024f07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2023 — Install Phalcon on XAMPP For Windows 11]]></title>
            <link>https://dhanar98.medium.com/2023-install-phalcon-on-xampp-for-windows-11-99ea61fea240?source=rss-4705cd2985b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/99ea61fea240</guid>
            <category><![CDATA[php-development]]></category>
            <category><![CDATA[php-8]]></category>
            <category><![CDATA[phalcon]]></category>
            <category><![CDATA[xampp]]></category>
            <category><![CDATA[php]]></category>
            <dc:creator><![CDATA[Dhanasekaran Ravichandran]]></dc:creator>
            <pubDate>Sat, 19 Aug 2023 17:03:06 GMT</pubDate>
            <atom:updated>2023-08-19T17:04:43.384Z</atom:updated>
            <content:encoded><![CDATA[<h3>2023 — Install Phalcon on XAMPP For Windows 11</h3><p>In This article, We will go over the steps of Installing XAMPP and Phalcon on Your Windows 11 system. Before going to the setup we need to know about Phalcon Framework.</p><h3>What is Phalcon?</h3><p><em>Phalcon is an open-source full-stack framework for PHP, written as a C-extension. Phalcon is optimized for high performance. Its unique architecture allows the framework to always be memory resident, offering its functionality whenever it’s needed, without expensive file stats and file reads that traditional PHP frameworks employ.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/0*RU_i6R6sz8ln-juS" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/163/0*NTqfpa6IpOD6MczO" /></figure><h3>INSTALL XAMPP ON WINDOWS 11</h3><p><strong>Step 1: Download XAMPP on Official Site</strong></p><p>XAMPP is an easy-to-install Apache distribution containing MariaDB, PHP, and Perl. Just download and start the installer. It’s that easy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/0*cv5zRCYJbI53m7nD" /></figure><p>Download XAMMP ⬇️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/172/0*ThRnedyWlHjv9pAh" /></figure><p><strong>Step 2: Run the Installer</strong></p><p>The Downloading will take a couple of minutes after that run the downloaded installer in your system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ihj5UY3uXEKscus0" /></figure><p><strong>Step 3: Choose Components</strong></p><p>During the installation, you’ll be prompted to select the components you want to install. By default, Apache, MySQL, PHP, and phpMyAdmin are selected. You can keep the default selection or choose additional components based on your requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oEYS4G5zXc6IfBaX" /></figure><p><strong>Step 4: Installation Process</strong></p><ul><li>Choose the installation directory for XAMPP. The default directory is usually “C:\xampp, but you can change it if needed.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d-NbffSHQNyvCRq_" /></figure><ul><li>Once you’ve selected the components and the installation directory, click the “Install” button to start the installation process. The setup will extract and install the selected components on your Windows 11 system.</li><li>After clicking “Finish,” the XAMPP Control Panel will open. From here, you can start and stop Apache, MySQL, and other installed components. Make sure Apache and MySQL are running by checking the status in the control panel.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zCz3_p-ItrjVrdMd" /></figure><h3>INSTALL PHALCON ON WINDOWS 11</h3><p>To use Phalcon on Windows we need to download a DLL library. based on the xampp php version download the DLL library on phalcon GitHub release page.</p><p><strong>Step 1: Download Phalcon DLL library</strong></p><p>Find the Phalcon Library Different versions releases in the below link ⬇️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/188/0*jDzBV4ujjP86DeR-" /></figure><p>Download Here ⬇️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/0*3iuhZWzzWjyikuNv" /></figure><p><strong>Step 2: Configure PHP.ini File Load Phalcon library</strong></p><ul><li>Edit the php.ini File and append at the end, and restart your webserver to load the extension.</li><li>extension=php_phalcon.dll</li><li>The PHP Info page shows this information</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uKPnnRQWaMoMjFtd" /></figure><h3>SETUP PHALCON — PROJECT IN XAMPP</h3><p>Download or Clone the Project from GitHub ⬇️</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/153/0*DZhgHmGovljK8iSQ" /></figure><ul><li>Run the Project From Below Path <strong>C:\xampp\htdocs</strong></li><li>Do The Instructions mentioned in the README. md File.</li><li>Restart the server and The Magic ✨</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VBbCME7Z9z8gvuXO" /></figure><pre>OS VERSION : WINDOWS 11 PHP VERSION : 8.1.17 PHALCON VERSION : 5.0.1</pre><p>I hope this article is helpful to all of you. follow and support 💜💜💜💰</p><p><em>Originally published at </em><a href="https://dhanar98.hashnode.dev/how-to-install-phalcon-php-on-xampp-for-windows-11"><em>https://dhanar98.hashnode.dev</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99ea61fea240" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SEO in Next.js Website using Next-SEO Plugin]]></title>
            <link>https://dhanar98.medium.com/seo-in-next-js-website-using-next-seo-plugin-e3f7c1ef97d9?source=rss-4705cd2985b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3f7c1ef97d9</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[search-engine-optimizati]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Dhanasekaran Ravichandran]]></dc:creator>
            <pubDate>Sun, 30 Jan 2022 18:01:48 GMT</pubDate>
            <atom:updated>2022-01-30T18:01:48.376Z</atom:updated>
            <content:encoded><![CDATA[<p><em>“Think about what a user is going to type.” — Matt Cutts</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ihjhRdaAJEiLA0jcrNKCNA.jpeg" /><figcaption>SEO in Next.js Website using Next-SEO Plugin</figcaption></figure><h3>What is Next-Seo?</h3><p><strong>Next-Seo is an NPM package or Plugin to manage all your SEO-related features in Next.js App.</strong> <strong>Author: Gary Meehan</strong></p><h3>How To install Next-Seo:</h3><p>Install Next-Seo NPM Package using a simple command</p><pre><strong>npm command</strong></pre><pre>npm install --save next-seo</pre><pre><strong>yarn command</strong></pre><pre>yarn add next-seo</pre><p>There are a lot of Seo Configuration in the Next-Seo plugin but I describe every website used.</p><h3>Basic Configuration Components in SEO:</h3><h3>NextSeo</h3><p>NextSeo dynamically creates page-level SEO attributes while generating a page.</p><p><strong>Note:</strong></p><p>This will render out the tags in the <strong>head</strong> for SEO. NextSeo gives you many more options than you can add.</p><p><strong>Example:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ff53ce506e179ce05ef1e334815ded3/href">https://medium.com/media/0ff53ce506e179ce05ef1e334815ded3/href</a></iframe><p><strong>Next-SEO now has the ability to set JSON-LD as a form of structured data.</strong></p><p><strong>What is JSON-LD?</strong></p><p><strong>JSON-LD (JavaScript Object Notation for Linked Data)</strong> offers a simpler means to create machine-readable data from websites to promote search results. In simpler terms, it delivers more easily indexable content to search crawlers like Googlebot</p><h3>Breadcrumbs</h3><p>Breadcrumbs is a set of links that can help a user understand and navigate a website hierarchy.</p><p><strong>Example:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5d9e9821dc58a47999727e3153266ad5/href">https://medium.com/media/5d9e9821dc58a47999727e3153266ad5/href</a></iframe><h3>Article</h3><p>An article, such as a news article or piece of an investigative report. Newspapers and magazines have articles of many different types and this is intended to cover them all.</p><p><strong>Example:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1cb48c1540284df6f4c84d0507ea4cd0/href">https://medium.com/media/1cb48c1540284df6f4c84d0507ea4cd0/href</a></iframe><h3>FAQ Page</h3><p>FAQ schema is code you place on your site that tells search engines <strong>this content is presented in a question and answer format.</strong></p><p><strong>Note: All these fields are required. Empty values are not allowed.</strong></p><p><strong>Example:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e363aff5445692b2091f19892a718fc/href">https://medium.com/media/9e363aff5445692b2091f19892a718fc/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2mipGqEMbEYRfCMs" /></figure><h3>SiteLinks SearchBox | Google Search</h3><p>A Sitelinkssearchbox is a search box view on the search result page and the user can search the content directly in the search box.</p><p><strong>Example:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/72903ae670f0ffb230e45822dbab41ef/href">https://medium.com/media/72903ae670f0ffb230e45822dbab41ef/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/0*w5QntsVeGYL25_Y7" /></figure><p>These are the basic components in every website and use your next.js Website these components for SEO purposes and reduce your code.</p><p>Reference Links:</p><p><strong>NEXT-SEO GITHUB :</strong></p><p><a href="https://github.com/garmeeh/next-seo">GitHub - garmeeh/next-seo: Next SEO is a plug in that makes managing your SEO easier in Next.js projects.</a></p><p>Read More About <strong>Sitelinks Searchbox</strong> ⬇️</p><p><a href="https://developers.google.com/search/docs/advanced/structured-data/sitelinks-searchbox">Sitelinks Search Box | Google Search Central | Google Developers</a></p><p>I hope this article is helpful to all of you. follow and support 💜💜💜</p><p><em>Originally published at </em><a href="https://dhanar98.hashnode.dev/seo-in-nextjs-website-using-next-seo-plugin"><em>https://dhanar98.hashnode.dev</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3f7c1ef97d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to configure Phalcon in Nginx Server]]></title>
            <link>https://dhanar98.medium.com/how-to-configure-phalcon-in-nginx-server-7a578b376e8f?source=rss-4705cd2985b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a578b376e8f</guid>
            <category><![CDATA[phalcon]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[php-frame-work]]></category>
            <category><![CDATA[php7]]></category>
            <dc:creator><![CDATA[Dhanasekaran Ravichandran]]></dc:creator>
            <pubDate>Thu, 20 Jan 2022 16:44:48 GMT</pubDate>
            <atom:updated>2022-01-20T16:44:48.364Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_X5OkmstLS8Ya2J6_stXRw.jpeg" /><figcaption>First, solve the problem. Then, write the code — John Johnson</figcaption></figure><p>In this guide, you’ll learn how to install Nginx on your Ubuntu 20.04 server and Configure it with Phalcon and Phalcon Project.</p><h3>What is Nginx?</h3><p><strong>Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Unlike traditional servers, Nginx doesn’t rely on threads to handle requests. Instead, it uses a much more scalable event-driven (asynchronous) architecture. This architecture uses small, but more importantly, predictable amounts of memory under load.</strong></p><h3>INSTALL NGINX SERVER ON UBUNTU</h3><p><strong>Install Nginx</strong></p><p>Launch the Terminal by using the Ctrl+Alt+T shortcut and execute the following command:</p><p><strong>Step 1: Update Packages</strong></p><pre><strong>sudo apt update</strong></pre><p><strong>Step 2: Install Nginx Server</strong></p><p>In the next step, we install the Nginx server. execute the below command.</p><pre><strong>sudo apt install nginx</strong></pre><h3>Checking Nginx Server</h3><p>At the end of the installation process, Ubuntu 20.04 starts Nginx. The web server should already be up and running.</p><p><strong>Step 1: Check the Nginx Status</strong></p><p>Check the status to execute the below command</p><pre><strong>sudo systemctl status nginx</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SvQaXCu8Vrt12BTp" /></figure><p>This output shows that the service has started successfully. However, the best way to test this is to actually request a page from Nginx.</p><p>You can access the default Nginx landing page to confirm that the software is running properly by navigating to your server’s IP address. If you do not know your server’s IP address, you can get it a few different ways.</p><h3>Nginx Server Managing Commands</h3><p>Now that you have your web server up and running, let’s review some basic management commands</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e47caed1584611130d8f49bd15d371c/href">https://medium.com/media/3e47caed1584611130d8f49bd15d371c/href</a></iframe><h3>INSTALL PHP AND MODULES VERSION 7.4</h3><p>Now we need to install PHP 7.4 version for the support of Phalcon-4.1.2v. (Stable Version)</p><p><strong>Step 1: Install PHP-7.4 Version and Modules</strong></p><pre><strong>sudo apt update &amp;&amp; sudo apt upgrade sudo apt install software-properties-common sudo add-apt-repository ppa:ondrej/php </strong></pre><pre><strong>sudo apt update </strong></pre><pre><strong>sudo apt install -y php7.4</strong></pre><pre><strong>sudo apt install php7.4-curl php7.4-gd php7.4-json php7.4-mbstring</strong></pre><pre><strong>sudo apt install php7.4-zip php7.4-fpm php7.4-cli php7.4-dev<br> <br>sudo apt install libpcre3-dev php7.4-xml php7.4-mysql<br> <br>sudo apt install php7.4-imagick sudo apt install php7.4-mysql </strong></pre><pre><strong>sudo apt php7.4-pgsql</strong></pre><blockquote><em>Note: We need to PSR Module to run phalcon module.</em></blockquote><p><strong>Step 2: Install PSR Extension</strong></p><pre><strong>sudo apt install php7.4-psr</strong></pre><p><strong>Step 3: Enable FPM in Nginx</strong></p><p>To enable PHP 7.4 FPM in Nginx do this command</p><pre><strong>sudo a2enconf php7.4-fpm sudo systemctl restart nginx</strong></pre><p>To Compile Phalcon Framework we need to install gcc package</p><pre><strong>sudo apt install gcc</strong></pre><h3>INSTALL PHALCON ON UBUNTU</h3><p>Install phalcon stable version-4.1.2</p><p><a href="https://docs.phalcon.io/4.0/en/introduction">Phalcon Documentation - Introduction</a></p><p>Download Phalcon-4.1.2-Stable Release ⬇️</p><p><a href="https://github.com/phalcon/cphalcon/archive/refs/tags/v4.1.2.zip">https://github.com/phalcon/cphalcon/archive/refs/tags/v4.1.2.zip</a></p><p><strong>Install Phalcon module to execute these commands:</strong></p><p>Before that extract and unzip the folder and Move to Home in File Explorer.</p><p><strong>Install Stable Repository Distribution</strong></p><blockquote><strong><em>Stable release</em></strong></blockquote><pre><strong>curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | sudo bash</strong></pre><p><strong>Compile Phalcon Module</strong></p><pre>cd cphalcon-4.1.2/build sudo ./install</pre><blockquote><strong><em>After Successful Installation Execute Server Start Command</em></strong></blockquote><pre>sudo systemctl restart nginx</pre><p><strong>Load the Phalcon Extension Web Server</strong> Create a file called</p><p>30-phalcon.ini in these 2 Places</p><blockquote><em>☄️ /etc/php/php7.4/fpm/conf.d/</em></blockquote><blockquote><em>☄️ /etc/php/php7.4/cli/conf.d/</em></blockquote><p>add this content</p><pre>extension=phalcon.so</pre><p>Run this command to FPM Server Restart</p><pre>sudo service php7.4-fpm restart</pre><p><strong>Find all PHP Modules in Single Command</strong></p><pre>php -m </pre><pre>#Check Phalcon is installed or not</pre><pre>php -m | grep phalcon</pre><blockquote><em>Phalcon Successfully configured with Nginx</em></blockquote><p><strong>Configure Phalcon Project with Nginx</strong></p><p><strong>The Basic Structure of Phalcon Project</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E5G5QxWf9fZjWNdueUXeEA.png" /></figure><p>create a project /var/www/ directory.</p><blockquote><strong><em>Example : /var/www/phalcon/</em></strong></blockquote><p>Next, assign ownership of the directory with the $USER environment variable:</p><pre>sudo chown -R $USER:$USER /var/www/phalcon</pre><p>The permissions we need to webroot are also confirmed with this command.</p><pre>sudo chmod -R 777 /var/www/phalcon</pre><h4>Create Server Block in Server</h4><p>To create a configuration file /etc/nginx/sites-available/ in this path ⬇️</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/589c4f7fecf98550cc03b2e7456023d3/href">https://medium.com/media/589c4f7fecf98550cc03b2e7456023d3/href</a></iframe><p><strong>Enable the Nginx Server</strong></p><p>To enable the file creating the link in Nginx Server.</p><p>Execute this command:</p><pre>sudo ln -s /etc/nginx/sites-available/phalcon.conf    /etc/nginx/sites-enabled/<br><br>sudo systemctl reload nginx</pre><blockquote><strong><em>Phalcon Project Successfully configured with Nginx Server Now run the project in the browser</em></strong></blockquote><p><strong>References ⬇️</strong></p><p>🔗 — <a href="http://docs.w3cub.com/">docs.w3cub.com</a></p><p><a href="https://docs.phalcon.io/4.0/en/webserver-setup#nginx">Phalcon Documentation - Web Server Setup</a></p><p><strong>Note:</strong></p><p><strong>I faced an issue with the latest version of PHP, so going especially for 7.4 which is best compatible with the release.</strong></p><p>Keep Support and Follow 💜💜💜</p><p><em>Originally published at </em><a href="https://dhanar98.hashnode.dev/how-to-configure-phalcon-in-nginx-server"><em>https://dhanar98.hashnode.dev</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a578b376e8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with Github Basic Commands in Visual Studio Code]]></title>
            <link>https://dhanar98.medium.com/working-with-github-basic-commands-in-visual-studio-code-1b6d51da839a?source=rss-4705cd2985b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b6d51da839a</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[visual-studio-code]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Dhanasekaran Ravichandran]]></dc:creator>
            <pubDate>Tue, 26 Oct 2021 19:38:16 GMT</pubDate>
            <atom:updated>2021-10-26T19:38:16.322Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RpdCB8ssHVk6dpHL31rKbA.jpeg" /></figure><p>In this article, we are going to see GitHub basic commands in Visual studio code. Before going to that first we need to know the answers to these questions</p><h3>What is GitHub?</h3><p><strong>GitHub</strong> is a provider of Internet hosting for software development and version control using Git. It offers the distributed version control and source code management functionality of Git, plus its own features.</p><h3>What is Visual Studio Code?</h3><p><strong>Visual Studio Code</strong> is a source code editor that can be used with a variety of programming languages, including Java, JavaScript, Go, Node.js, Python and C++. Visual Studio Code combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle.</p><p>Download From Here ⬇️</p><p><a href="https://code.visualstudio.com/download">Download Visual Studio Code - Mac, Linux, Windows</a></p><p>Before using the basic commands in VS-CODE we need to install these two extensions</p><p><strong>1. GitLens is the best GitHub extension in visual studio code.</strong></p><p>GitLens GitLens simply helps you better understand code. Quickly glimpse into whom, why and when a line or code block was changed.</p><p><strong>2. Gitgraph</strong> <strong>extension is track user’s activity</strong></p><p>Gitgraph View a Git Graph of your repository and easily perform Git actions from the graph. Configurable to look the way you want!</p><p>GitLens and Gitgraph Preview</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7GoqOREptha7V3pD" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8kPH1WOToIdPv0Da" /></figure><p><strong>This is PART-1 in this series</strong>- In this article, I perform 5 basic commands using VSCode and give a command snippet below</p><h3>Github basic commands using visual studio code</h3><h4>1. Cloning a Git repository in visual studio code:</h4><p>The Easiest way to Cloning a Git repository in visual studio code</p><pre>git clone repo_url E.X: git clone <a href="https://github.com/dhanar98/github-commands-in-visualstudio-code.git">https://github.com/dhanar98/github-commands-in-visualstudio-code.git</a></pre><figure><img alt="Cloning a Git repository in visual studio code" src="https://cdn-images-1.medium.com/max/1024/1*dKN5j60jmfCudm5GtVOmeg.gif" /><figcaption>Cloning a Git repository in visual studio code</figcaption></figure><h4>2. Add a single file using Github using visual studio code</h4><p>Adding a file in the GitHub repository</p><pre>git add file_name <br>E.X: git add index.html</pre><figure><img alt="Add a single file using GitHub using visual studio code" src="https://cdn-images-1.medium.com/max/1024/1*Jok3LEDboASHQxByr65x0A.gif" /><figcaption>Add a single file using Github using visual studio code</figcaption></figure><h4>3. Adding all files in GitHub using visual studio code</h4><p>Add all files at the same time for the commit.</p><figure><img alt="Adding all files in GitHub using visual studio code" src="https://cdn-images-1.medium.com/max/1024/1*CrNNkRJ8NCx5M480N1shug.gif" /></figure><h4>4. Commit the files in visual studio code:</h4><p>commit all your changes in visual studio code without command only give commit message in the source control panel to move your files to <strong>changes to staged changes</strong></p><pre>git commit -m &quot;commit message&quot; <br>E.X: git commit -m &quot;initial commit&quot;</pre><figure><img alt="Commit the files in visual studio code" src="https://cdn-images-1.medium.com/max/1024/1*EXQMOaVBFEKZpJ3Q917kDQ.gif" /><figcaption>Commit the files in visual studio code</figcaption></figure><h4>5. Create a local branch in Visual studio code</h4><p>The Easiest way to create a local branch click the current local branch name in the bottom left corner and click the option create a new branch to give the branch name.</p><pre>git branch new_branch <br>E.X: git branch new-branch</pre><figure><img alt="Create a local branch in Visual studio code" src="https://cdn-images-1.medium.com/max/1024/1*5BS0yVbFONyyxdjV7Hwy4w.gif" /><figcaption>Create a local branch in Visual studio code</figcaption></figure><p>These Basic 5 Github commands using VSCode definitely help everyone. I Hope!!! In <strong>PART-2</strong> we see another 5 commands using VSCode. 💜💜</p><p><strong>Follow and Support.</strong> 💜💜</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TYc4YRLXn7cIllyC" /></figure><p><em>Originally published at </em><a href="https://dhanar98.hashnode.dev/working-with-github-basic-commands-in-visual-studio-code-part-1-ckv478s7j0t41p5s1hljvawxw"><em>https://dhanar98.hashnode.dev</em></a></p><p><a href="https://dhanar98.hashnode.dev/working-with-github-basic-commands-in-visual-studio-code-part-1-ckv478s7j0t41p5s1hljvawxw">Working with Github Basic Commands in Visual Studio Code</a></p><p>Follow on my official blog ⬇️💜</p><p><a href="https://dhanar98.hashnode.dev/">Dhanar98 | Learn Everything in a Simple way to read and practice</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b6d51da839a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 20 VSCode (Visual Studio Code) Extensions for Developers]]></title>
            <link>https://dhanar98.medium.com/top-most-vscode-visual-studio-code-extensions-for-developers-cb20b8f0808?source=rss-4705cd2985b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb20b8f0808</guid>
            <category><![CDATA[editor]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[visual-studio-code]]></category>
            <category><![CDATA[vscode-extension]]></category>
            <dc:creator><![CDATA[Dhanasekaran Ravichandran]]></dc:creator>
            <pubDate>Sat, 21 Aug 2021 19:17:42 GMT</pubDate>
            <atom:updated>2021-09-09T18:30:15.839Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Top Most VSCode (Visual Studio Code) Extensions for Developers" src="https://cdn-images-1.medium.com/max/1024/1*wErOSBXkIbSgu2RvWJMl-A.png" /><figcaption>Top Most VSCode (Visual Studio Code) Extensions for Developers</figcaption></figure><p><a href="https://code.visualstudio.com/Download"><strong>Visual Studio Code</strong> </a>is the most popular IDE in Web development. One of the best features is VSCode <a href="https://marketplace.visualstudio.com/vscode">Extensions</a>. I list all the VSCode Extensions which I have used for the development process Past Two years.</p><p>This will help all the developers to reduce the time and be more productive in the development process.</p><h3><strong>Top Most VSCode Extensions:</strong></h3><h4><strong>1. Auto Close Tag</strong></h4><p>This Extension Auto Close in the HTML-based tags.</p><figure><img alt="Auto Close Tag" src="https://cdn-images-1.medium.com/max/1024/1*hy8S84pVOPHHaI5YpyVqGA.gif" /><figcaption>AutoClose Tag Preview</figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag">Auto Close Tag - Visual Studio Marketplace</a></p><h4><strong>2. Auto Rename Tag</strong></h4><p>This Extension Rename all the HTML tags</p><figure><img alt="Auto Rename Tag Screenshot gif" src="https://cdn-images-1.medium.com/max/1024/1*pcT__3Qp33X5ERvYRhzvTA.gif" /><figcaption><strong>Auto Rename Tag Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag">Auto Rename Tag - Visual Studio Marketplace</a></p><h4>3 . Highlight Matching Tag</h4><p>It highlights the matching tag where the tag is closed.<br><em>[red border]</em></p><figure><img alt="Highlight matching Tag in VSCode Extension" src="https://cdn-images-1.medium.com/max/834/1*5sa8Y1ied37d2M3_MBqYYA.png" /><figcaption><strong>Highlight matching Tag in VSCode Extension</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=vincaslt.highlight-matching-tag">Highlight Matching Tag - Visual Studio Marketplace</a></p><h4>4. Beautify Extension</h4><p>It Beautify javascript, JSON, CSS, Sass, and HTML in Visual Studio Code.</p><blockquote>ctrl+shift+p -&gt; beatifyfile[Another Method]</blockquote><figure><img alt="Beautify VSCode Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*Ot8tOmuDh-u4vfhPbDV0zw.gif" /><figcaption><strong>Beautify VSCode Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=HookyQR.beautify">Beautify - Visual Studio Marketplace</a></p><h4>5. Prettier — Code formatter</h4><p>It formats various types of languages in VisualStudio code.<br>this is also one of my favourites ❤️.</p><blockquote>🖱️Rightclick + Format Document [Another Method]</blockquote><figure><img alt="Prettier VSCode Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*Ot8tOmuDh-u4vfhPbDV0zw.gif" /><figcaption><strong>Prettier VSCode Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode">Prettier - Code formatter - Visual Studio Marketplace</a></p><h4>6. Bracket Pair Colorizer</h4><p>This extension allows matching brackets to be identified with colours. The user can define which characters to match, and which colours to use.</p><figure><img alt="Bracket Pair Colorizer Preview" src="https://cdn-images-1.medium.com/max/874/1*fk0tYLy0TAx-rWNbZA-U5A.png" /><figcaption><strong>Bracket Pair Colorizer Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer">Bracket Pair Colorizer - Visual Studio Marketplace</a></p><h4><strong>7. CodeTogether</strong></h4><p>CodeTogether extension shares the code in a virtual session.</p><figure><img alt="CodeTogether VSCode Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*08zXEqfXn8TUkJCjiQDMPA.gif" /><figcaption><strong>CodeTogether VSCode Extension Preview</strong></figcaption></figure><p>Copy and paste the URL in the browser. Connect with your team.</p><p><a href="https://marketplace.visualstudio.com/items?itemName=genuitecllc.codetogether">CodeTogether Cloud - Visual Studio Marketplace</a></p><h4>8.PolaCode -2020</h4><p>Screenshot your Code.</p><figure><img alt="PolaCode VSCode Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*DDcUHbGl3oLW9LyB-K9c4A.gif" /><figcaption><strong>PolaCode VSCode Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=jeff-hykin.polacode-2019">Polacode-2020 - Visual Studio Marketplace</a></p><h4>9. Live Server</h4><p>Launch a Local Development Server to Preview a site.</p><figure><img alt="Liveserver VSCode Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*0N-2ZeEJzcLCSN5oS_TaSA.gif" /><figcaption><strong>Live server VSCode Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer">Live Server - Visual Studio Marketplace</a></p><h4><strong>10. Path Intellisense</strong></h4><p>Visual Studio Code plugin that autocompletes paths and names.</p><figure><img alt="Path Intellisense VSCode Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*pRCka8uGKfFVZWMTWu1jTg.gif" /><figcaption><strong>Path Intellisense VSCode Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=christian-kohler.path-intellisense">Path Intellisense - Visual Studio Marketplace</a></p><h4>11. Git Lens</h4><p>GitLens simply helps you <strong>better understand code</strong>. It shows when who and at which time the code has been changed and which line number also.</p><figure><img alt="Git Lens VS Code Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*KvzL0Nmsi25ziJ69dS-I4A.gif" /><figcaption><strong>Git Lens VS Code Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens">GitLens - Git supercharged - Visual Studio Marketplace</a></p><h4>12. Git Graph</h4><p>View a Git Graph of your repository, and perform Git actions from the graph.<br>Filter Options are also available.<br>The Git graph Section Button in the bottom left corner of the editor.</p><figure><img alt="Git Graph VS Code Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*Aqno0JBtfOsgoMoMPBnLHQ.png" /><figcaption><strong>Git Graph VS Code Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph">Git Graph - Visual Studio Marketplace</a></p><h4>13. Material Icon Theme</h4><p>Material Icon Theme Differentiate the folder and language icons specific colour and language logo.</p><figure><img alt="Material Icon Theme VS Code Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*KFvVfErzCX8Oxaq8ZqxJPQ.png" /><figcaption><strong>Material Icon Theme VS Code Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme">Material Icon Theme - Visual Studio Marketplace</a></p><h4>14. Thunder Client</h4><p><strong>Thunder Client</strong> is a lightweight Rest API Client Extension for Visual Studio Code. We check our API calls for all the methods and headers setup.</p><figure><img alt="Thunder client VS Code Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*OwNIGVSFHoprku_1CFin8w.gif" /><figcaption><strong>Thunder client VS Code Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client">Thunder Client - Visual Studio Marketplace</a></p><h4>15. Colorize</h4><p>A VS code extension to help visualize CSS colours in files.</p><figure><img alt="Colorize VS Code Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*X7TY1yUEaOFnluS3I6s_7Q.gif" /><figcaption><strong>Colorize VS Code Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=kamikillerto.vscode-colorize">colorize - Visual Studio Marketplace</a></p><blockquote><em>💡</em><strong><em>PROTIP:</em></strong><em><br> If you want to see or show on meeting or recording a video which key you typing in the keyboard on the screen this shortcut will help you.<br></em><strong><em>ctrl+shift+p+developer screen mode</em></strong></blockquote><figure><img alt="Developer Screen Mode VS code Preview" src="https://cdn-images-1.medium.com/max/1024/1*cIndY5Z8h35-Zf87eDbiEg.gif" /><figcaption><strong>Developer Screen Mode VS code Preview</strong></figcaption></figure><h4>16. Github Theme</h4><p>Github theme for VSCODE.If you are a GitHub Streak really loved it</p><figure><img alt="Github theme VScode extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*-6aYEGJnweVV-orduhgr5A.gif" /><figcaption><strong>Github theme VScode extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=GitHub.github-vscode-theme">GitHub Theme - Visual Studio Marketplace</a></p><p><strong>17.Docs-Markdown</strong></p><p>This extension provides Markdown authoring assistance for docs.microsoft.com (Docs) content, including basic Markdown support and support for custom Markdown syntax on Docs. We also now support some YAML authoring commands.</p><figure><img alt="Docs Markdown VS Code Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*hdxehCKG6kvGacYbl-SOnQ.gif" /><figcaption><strong>Docs Markdown VS Code Extension Preview</strong></figcaption></figure><p><strong>Shortcut key to view all the markdown elements: alt+M</strong></p><p><a href="https://marketplace.visualstudio.com/items?itemName=docsmsft.docs-markdown">docs-markdown - Visual Studio Marketplace</a></p><p><strong>Another VScode extension preview the markdown file view in the editor.</strong></p><p><a href="https://marketplace.visualstudio.com/items?itemName=shd101wyy.markdown-preview-enhanced">Markdown Preview Enhanced - Visual Studio Marketplace</a></p><blockquote>💡<strong>PROTIP:</strong><br> If you really want to add emoji’s in your markdown files search and copy the emoji on the website</blockquote><p><a href="https://emojipedia.org/">📙 Emojipedia - 😃 Home of Emoji Meanings 💁👌🎍😍</a></p><h4>18.Jquery Snippets</h4><p>Jquery Snippets extension has almost an updated jquery function.</p><figure><img alt="JQuery Snippet Vs Code Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*v2QGTJoz2hDzIBR2iwCLxg.gif" /><figcaption><strong>JQuery Snippet Vscode Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=donjayamanne.jquerysnippets">jQuery Code Snippets - Visual Studio Marketplace</a></p><h4>19.ES7 React/Redux/GraphQL/React-Native snippets</h4><p>Simple extensions for React, Redux and Graphql in JS/TS with ES7 syntax.</p><figure><img alt="ES7 React/Redux/GraphQL/React-Native snippets VS Code Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*tBnj-nI_wmYlRsiWMKCTMg.gif" /><figcaption><strong>ES7 React/Redux/GraphQL/React-Native snippets VS Code Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets">ES7+ React/Redux/React-Native snippets - Visual Studio Marketplace</a></p><blockquote>Recently I started to learn Ruby on rails while writing code these extensions are very helpful for me.</blockquote><h3>The Extensions for Ruby on Rails Developers :</h3><h4>20.End Wise :</h4><p>It automatically adds an end in the ruby language files.</p><figure><img alt="End Wise VS Code Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*Xi0vFYQe1VBAy1doggaHjw.gif" /><figcaption><strong>Endwise VS Code Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=kaiwood.endwise">endwise - Visual Studio Marketplace</a></p><h4>21. ERB Helper Tags</h4><p>A collection of ERB snippets to write Erb file-based HTML tags.</p><figure><img alt="ERB Helpers Tag VS Code Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*uytC6fgEENkjeJtqE5Cwsw.gif" /><figcaption><strong>ERB Helpers Tag VS Code Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=rayhanw.erb-helpers">ERB Helper Tags - Visual Studio Marketplace</a></p><h4>22.Ruby for Visual Studio Code</h4><p>Ruby language support and debugging for Visual Studio Code</p><p><a href="https://marketplace.visualstudio.com/items?itemName=rebornix.Ruby">Ruby - Visual Studio Marketplace</a></p><h4>23.Ruby on Rails</h4><p>This extension for Visual Studio Code adds snippets for Ruby on rails.</p><p>Within a second all crud operations created simple commands.</p><figure><img alt="Ruby on Rails VS Code Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*zAmfQWC1H8A3ODlfQa5SHQ.gif" /><figcaption><strong>Ruby on Rails VS Code Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=hridoy.rails-snippets">Ruby on Rails - Visual Studio Marketplace</a></p><h4>24.Rails DB Schema</h4><p>Completion provider for Rails DB Schema. It helps to write DB schema functions.</p><p><a href="https://marketplace.visualstudio.com/items?itemName=aki77.rails-db-schema">Rails DB Schema - Visual Studio Marketplace</a></p><h4>25.Rails Routes</h4><p>Completion provider for Rails Routes. It helps to execute route paths.</p><p><a href="https://marketplace.visualstudio.com/items?itemName=aki77.rails-routes">Rails Routes - Visual Studio Marketplace</a></p><h4>26.ERB Formatter/Beautify</h4><p>Format/Beautify ERB files in your projects.</p><p>Additionally, we need to add a command in the settings.json file VisualStudio code editor.</p><pre>&quot;files.associations&quot;: {<br>  &quot;*.erb&quot;: &quot;erb&quot;<br>}</pre><p><a href="https://marketplace.visualstudio.com/items?itemName=aliariff.vscode-erb-beautify">ERB Formatter/Beautify - Visual Studio Marketplace</a></p><p>If this Visual Studio Code Extension story really saves your time give a clap 👏🏻 for me.</p><p>Extensions Preview Images Added in my GitHub repo if you really like these extensions give a star my repo. I added the VScode setting.json file also.</p><p><a href="https://github.com/dhanar98/vs-code-for-developers/upload/main/vscode-extensions-preview-gif-and-png">Upload files · dhanar98/vs-code-for-developers</a></p><blockquote><strong>Updated At Sep-06–2021:</strong></blockquote><h3>IntelliSense for CSS class names in HTML</h3><p>CSS class name completion for the HTML class attribute based on the definitions found in your workspace.</p><figure><img alt="IntelliSense for CSS class names in HTML VSCode Extension Preview" src="https://cdn-images-1.medium.com/max/1024/1*taTCfhzvA0f8MKAq5Mm8hA.gif" /><figcaption><strong>IntelliSense for CSS class names in HTML VS Code Extension Preview</strong></figcaption></figure><p><a href="https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion">IntelliSense for CSS class names in HTML - Visual Studio Marketplace</a></p><h3>Code Spell Checker</h3><p>A basic spell checker that works well with camelCase code.</p><p>The goal of this spell checker is to help catch common spelling errors while keeping the number of false positives low.</p><p><a href="https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker">Code Spell Checker - Visual Studio Marketplace</a></p><h4>Previous Article:</h4><p><a href="https://medium.com/@dhanar98/how-to-add-bootstrap-icons-in-next-js-c691a21e7e4c">How to add Bootstrap Icons in Next.js</a></p><figure><img alt="Good vibes Only" src="https://cdn-images-1.medium.com/max/800/1*gHuF-l6cvWHvYzGUhYCTwQ.jpeg" /><figcaption><strong>Good vibes Only © Unsplash</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb20b8f0808" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to add Bootstrap Icons in Next.js]]></title>
            <link>https://dhanar98.medium.com/how-to-add-bootstrap-icons-in-next-js-c691a21e7e4c?source=rss-4705cd2985b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c691a21e7e4c</guid>
            <category><![CDATA[bootstrap-icon]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[bootstrap-5]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Dhanasekaran Ravichandran]]></dc:creator>
            <pubDate>Thu, 22 Jul 2021 10:42:50 GMT</pubDate>
            <atom:updated>2021-09-06T18:05:19.247Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="How to add Bootstrap Icons in Next.js" src="https://cdn-images-1.medium.com/max/1024/1*Sp3MA2TKJPTSkOUrGAjiBA.png" /><figcaption>How to add Bootstrap Icons in Next.js</figcaption></figure><h3>Create next-js app:</h3><p>First, we need to create a <a href="https://nextjs.org/"><strong>Next.js</strong></a><strong> </strong>application using npx or yarn according to your choice.</p><p>if you already create a Next.js app, then skip this part</p><p>Type this command in your terminal or cmd:</p><pre><strong>npx create-next-app project-name</strong></pre><pre><strong>(or)</strong></pre><pre><strong>yarn create-next-app project-name</strong></pre><p>In my case, I create the next app using npx like this</p><pre><strong>npx create-next-app bootstrap-icon-with-nextjs</strong></pre><p>Finally, we create out Next.js App</p><figure><img alt="next js app creation" src="https://cdn-images-1.medium.com/max/1024/1*LvA59wJi3O9jTMQQsw_cRA.png" /><figcaption>Next.js — The React Framework</figcaption></figure><p>We add bootstrap-icons in Next.js in two methods :</p><figure><img alt="bootstrap-icon-added-with-nextjs-app" src="https://cdn-images-1.medium.com/max/450/1*YbXoyDHCtCQEul1thZyHLg@2x.png" /><figcaption>©bootstrap-icons</figcaption></figure><ol><li>Install <a href="https://icons.getbootstrap.com/"><strong>Bootstrap Icons</strong></a><strong> - </strong>including SVGs and icon fonts with npm.</li><li>Adding icon fonts stylesheet <em>CDN</em> link in <strong>Next.js </strong>inside <strong>&lt;Head&gt; </strong>Tag</li></ol><p>Now, We start with a first method<br>Installing Bootstrap-Icons using npm command. (This is a highly recommended method)</p><blockquote><strong>Install Bootstrap Icons:</strong></blockquote><pre><strong>npm i bootstrap-icons</strong></pre><p>After installation, we need to import a CSS file in the <strong>Next.js</strong> custom page <strong>pages/_app.js </strong>file.</p><figure><img alt="Adding bootstrap-icons CSS in _app.js file" src="https://cdn-images-1.medium.com/max/836/1*91-FbV7RreWsoPlSvKofzw.png" /><figcaption>Adding bootstrap icons in _app.js</figcaption></figure><blockquote><strong>Important:<br></strong>The<strong> _app.js</strong> file render all pages in the websites load the bootstrap-icons CSS</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HWFYQNorJpS5QTUGS9GAWg.png" /><figcaption>RESULT CODE</figcaption></figure><p>Now, We move on to the second method🚶‍♂️</p><blockquote><strong>Adding icon fonts stylesheet CDN link in Next.js inside &lt;Head&gt; Tag :</strong></blockquote><pre><strong>## Bootstrap-Icon CDN Link ##</strong><br>&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css&quot;&gt;</pre><pre><strong>## Import the module in the file ##<br></strong>import Head from &quot;next/head&quot;</pre><figure><img alt="Bootstrap-icon CDN link added in Next.js inside &lt;Head&gt; Tag" src="https://cdn-images-1.medium.com/max/1024/1*Fx9JN1E2dC4qEeJ8CQHIvA.png" /><figcaption><strong>Bootstrap-icon CDN link added in Next.js inside &lt;Head&gt; Tag</strong></figcaption></figure><blockquote><strong>The Result for both methods:</strong></blockquote><h3><strong>Screenshot:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESz94GIL2iXeWV0wV2yoWQ.png" /><figcaption>Result for My code</figcaption></figure><p>Finally, we install Bootstrap-Icons both methods.</p><p>I push all the code in the GitHub repository<br>Repository Link[with two branches for both methods]<br>for more details read the README.md file in my repo</p><p><a href="https://github.com/dhanar98/bootstrap-icon-with-nextjs">GitHub - dhanar98/bootstrap-icon-with-nextjs</a></p><pre><strong>💡Protip:<br>  </strong>Run your Next.js App with diffrent port using this command<strong><br>  npx next -p 4_DIGIT_NUMBER<br>  E.X : npx next -p 1998</strong></pre><p>If this story really save your time give a clap 👏🏻 for me</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*A6WAvcD-B9e5eI_pVkET4g.jpeg" /><figcaption><strong>Good vibes Only © Unsplash</strong></figcaption></figure><p><strong>Reference Link:</strong><br>Bootstrap-Icons:</p><p><a href="https://icons.getbootstrap.com/">Bootstrap Icons</a></p><h4><strong>Check out my other article:</strong></h4><p><a href="https://medium.com/@dhanar98/top-most-vscode-visual-studio-code-extensions-for-developers-cb20b8f0808">Top 20 VSCode (Visual Studio Code) Extensions for Developers</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c691a21e7e4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>