<?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 Venkata Sai Krishna Padarthi on Medium]]></title>
        <description><![CDATA[Stories by Venkata Sai Krishna Padarthi on Medium]]></description>
        <link>https://medium.com/@pvsaikrishna13?source=rss-ec435a48b691------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_jU30MsR3_PHuDHT</url>
            <title>Stories by Venkata Sai Krishna Padarthi on Medium</title>
            <link>https://medium.com/@pvsaikrishna13?source=rss-ec435a48b691------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:06:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pvsaikrishna13/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[ A Smarter Dashcam: Facial Recognition Meets Tamper-Proof Driving Logs]]></title>
            <link>https://medium.com/@pvsaikrishna13/a-smarter-dashcam-facial-recognition-meets-tamper-proof-driving-logs-eec3b9d496b6?source=rss-ec435a48b691------2</link>
            <guid isPermaLink="false">https://medium.com/p/eec3b9d496b6</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[dashcam]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Venkata Sai Krishna Padarthi]]></dc:creator>
            <pubDate>Sat, 30 Aug 2025 21:16:07 GMT</pubDate>
            <atom:updated>2025-08-30T21:16:07.890Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MchnbbLqix_uIk6S" /></figure><p><em>What if your dashcam didn’t just record — but verified who was behind the wheel, and locked the truth forever?</em></p><h3>🎯 The Problem: Dashcams Aren’t Enough</h3><p>Dashcams are everywhere — but accountability is still missing.</p><ul><li>Anyone can drive the car, and the dashcam won’t know the difference.</li><li>Footage can be tampered with or deleted.</li><li>Insurers and fleet operators rely on trust, not facts.</li></ul><p>That’s no longer good enough.</p><h3>💡 The Idea: A Smarter, Trustworthy Dashcam</h3><p>I am building a next-gen dashcam system that:</p><p>✅ Uses <strong>facial recognition</strong> to verify the driver<br> ✅ Records driving behavior and video<br> ✅ Uploads all data to <strong>tamper-proof storage</strong></p><p>Each trip becomes:</p><ul><li>Driver-verified</li><li>Forensically trustworthy</li><li>Insurance- and fleet-ready</li></ul><h3>🛠️ How It Works</h3><ol><li><strong>Facial Authentication</strong>: The dashcam uses computer vision to identify the driver.</li><li><strong>Real-Time Recording</strong>: It captures driving behavior (speed, location, acceleration, etc.).</li><li><strong>Immutable Storage</strong>: All data is uploaded to secure, non-editable storage — such as blockchain or write-once cloud.</li></ol><blockquote><em>🎥 </em>Think of it as a flight recorder for cars — but smarter and driver-aware.</blockquote><h3>🔐 Why Tamper-Proof Data Matters</h3><p>Tamper-proof data builds <strong>trust and accountability</strong>.</p><p>Whether using:</p><ul><li><strong>Blockchain</strong> (for full immutability),</li><li><strong>Write-once cloud storage</strong> (like Amazon S3 compliance mode), or</li><li><strong>Encrypted local logs</strong></li></ul><p>this system guarantees that once recorded, <strong>data can’t be altered</strong> — even by the driver.</p><h3>🧠 Use Cases</h3><p>This technology enables powerful real-world applications:</p><ul><li><strong>🚘 Insurance</strong>: Validate the driver’s identity and behavior in claims.</li><li><strong>🚚 Fleet Management</strong>: Track and score drivers individually.</li><li><strong>⚖️ Legal Defense</strong>: Present undeniable driving data in court.</li><li><strong>💼 Corporate Vehicles</strong>: Prevent unauthorized use.</li></ul><h3>📬 Let’s Connect</h3><p>If you’re a:</p><ul><li>Fleet manager</li><li>Insurance tech innovator</li><li>Embedded systems developer</li><li>AI or IoT enthusiast</li></ul><p>👋 <strong>We’d love to hear from you.</strong></p><p>Let’s make roads safer — with smart, secure, and verified data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eec3b9d496b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Building a Scalable Inventory Management & Raw Material Costing System Using Node.js and MongoDB]]></title>
            <link>https://medium.com/@pvsaikrishna13/building-a-scalable-inventory-management-raw-material-costing-system-using-node-js-and-mongodb-f8cdfce80f43?source=rss-ec435a48b691------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8cdfce80f43</guid>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[inventory-management]]></category>
            <category><![CDATA[expressjs]]></category>
            <dc:creator><![CDATA[Venkata Sai Krishna Padarthi]]></dc:creator>
            <pubDate>Wed, 30 Jul 2025 17:01:57 GMT</pubDate>
            <atom:updated>2025-07-30T17:01:57.354Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sLLf4O1rqZ8yTMX8" /></figure><p>Managing inventory at scale — with multiple employees, cost accuracy, and approval workflows — is a real-world challenge many businesses face. I recently designed and developed a <strong>modular, secure inventory management and raw material costing system</strong> using only <strong>Node.js</strong> and <strong>MongoDB</strong>, with server-rendered views using <strong>EJS</strong>.</p><p>In this blog, I’ll walk through the features I implemented, the architecture behind the system, and how it demonstrates scalable full-stack development, advanced business logic handling, and clean API design.</p><h3>🔧 Key Features Implemented</h3><h3>✅ Subdomain Request System</h3><ul><li>Companies can request a subdomain for their instance.</li><li>Requests are submitted via a clean form and stored in MongoDB with a pending status.</li><li>Admin receives and reviews these requests through a dashboard with <strong>approve/reject buttons</strong>.</li></ul><h3>✅ Admin-Managed Employee Accounts</h3><ul><li>Employees are <strong>added manually by the admin</strong> — no signup for users.</li><li>Employees can log in and <strong>change their password</strong>, but cannot create accounts.</li><li>Role-based authorization ensures only admins can manage users and approve updates.</li></ul><h3>✅ SKU Management with Smart Units</h3><ul><li>Each SKU (stock keeping unit) can be tracked by:</li><li><strong>Individual units</strong></li><li><strong>Weight</strong> (in lbs or oz)</li><li><strong>Packs</strong> containing other units or weights</li><li>Admins define:</li><li>Total quantity</li><li>Unit type</li><li>Cost per base unit</li><li>Pack contents (e.g., 1 pack = 5 lbs)</li></ul><h3>✅ Employee Daily Inventory Updates with Manager Approval</h3><ul><li>Employees view the current SKU list and update only the quantities they used.</li><li>Only the <strong>edited SKUs</strong> are sent for approval.</li><li>Managers see all <strong>pending updates</strong>, and can approve or reject them.</li><li>On approval, the main inventory database is updated. Otherwise, it stays unchanged.</li></ul><h3>✅ Raw Material Cost Calculator</h3><ul><li>Admins define a product and associate it with required SKUs and quantities.</li><li>The system calculates the <strong>total production cost</strong> based on current inventory pricing.</li><li>Smart conversion between units ensures accurate costing across unit/weight combinations.</li></ul><h3>✅ Secure Auth &amp; Role Middleware</h3><ul><li>JWT-based auth for login</li><li>Custom middleware for logging and role-based access control (admin, employee)</li><li>Audit-friendly structure using timestamps and approval tracking</li></ul><h3>🏗️ Architecture Overview</h3><pre>Client (Browser) <br>   ↓<br>Express + EJS (Node.js Views)<br>   ↓<br>Controllers → Services → MongoDB Models</pre><ul><li><strong>Views</strong> are modularized (e.g., views/subdomain/form.ejs, views/skus/list.ejs)</li><li><strong>Routes</strong> are organized by module</li><li><strong>Middleware</strong> handles logging, authentication, and role enforcement</li></ul><h3>📄 Core Technologies Used</h3><p>Backend — Node.js, Express.js</p><p>Frontend — EJS (Server-side rendered)</p><p>Database — MongoDB + Mongoose</p><p>Auth — JWT, bcryptjs</p><p>Mail — Nodemailer (optional)</p><p>Dev Tools — nodemon, dotenv, Git</p><h3>✨ Why This Project Stands Out</h3><ul><li>🔐 <strong>Enterprise-ready structure</strong> with approval workflows and role control</li><li>📏 <strong>Smart SKU modeling</strong> for units, packs, and weights</li><li>📊 <strong>Real-world costing logic</strong> based on live inventory data</li><li>✅ <strong>Audit traceability</strong> through status tracking, timestamps, and admin actions</li></ul><h3>🧠 What I Learned</h3><ul><li>Designing scalable and normalized MongoDB schemas</li><li>Managing dynamic unit conversions for real-world items</li><li>Structuring maintainable Node.js apps using MVC and modular folders</li><li>Implementing approval workflows and tracking changes securely</li><li>Building reusable EJS form templates with dropdowns and conditional logic</li></ul><h3>📎 Demo</h3><p>Live demo coming soon on.</p><p>If you’re an employer or collaborator looking for someone who can <strong>bridge data engineering with full-stack application logic</strong>, this is exactly the kind of real-world project I love building.</p><p>Let me know what you think, or feel free to contribute!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8cdfce80f43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying VoIP and SIP: My Deep Dive into Internet Telephony]]></title>
            <link>https://medium.com/@pvsaikrishna13/demystifying-voip-and-sip-my-deep-dive-into-internet-telephony-e88eb40ed86d?source=rss-ec435a48b691------2</link>
            <guid isPermaLink="false">https://medium.com/p/e88eb40ed86d</guid>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[proxy-server]]></category>
            <category><![CDATA[sip]]></category>
            <category><![CDATA[sdp]]></category>
            <category><![CDATA[voip]]></category>
            <dc:creator><![CDATA[Venkata Sai Krishna Padarthi]]></dc:creator>
            <pubDate>Sat, 14 Jun 2025 20:41:33 GMT</pubDate>
            <atom:updated>2025-06-14T20:41:33.238Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GZU8_9M2hmuw4k8D" /></figure><p>In a world where everything is increasingly connected, I found myself fascinated by how voice and video travel across the internet. This curiosity led me into the world of <strong>Voice over Internet Protocol (VoIP)</strong> and <strong>Session Initiation Protocol (SIP)</strong> — two cornerstones of modern digital communication.</p><p>Here’s what I learned as I unraveled the inner workings of VoIP and SIP, and how they power the apps we rely on every day.</p><p>Here’s what I learned as I unraveled the inner workings of VoIP and SIP, and how they power the apps we rely on every day.</p><h3>🌐 What is VoIP?</h3><p>VoIP, or <strong>Voice over Internet Protocol</strong>, is the technology that allows us to make phone calls over the internet instead of traditional phone lines (PSTN). Whether you’re calling someone on WhatsApp, Zoom, or even through your office VoIP desk phone, you’re leveraging this technology.</p><p>It digitizes your voice, compresses it using codecs, splits it into packets, and sends it across the internet. Once it reaches the recipient, it’s reassembled into clear, understandable speech. The days of being tied to copper wires are truly behind us.</p><h3>📞 SIP: The Unsung Hero of Internet Calls</h3><p>While VoIP handles the media, <strong>Session Initiation Protocol (SIP)</strong> is the one doing the talking in the background — setting up, modifying, and terminating calls. Think of SIP as the “call coordinator” that ensures you connect with the right person at the right time, using the right route.</p><p>SIP isn’t just about voice — it works for video, instant messaging, and even online games. It doesn’t carry the media itself but handles all the signaling and control to ensure that your conversation flows smoothly.</p><h3>🚦 How a VoIP Call Works (With SIP in Action)</h3><p>Here’s a simplified version of what happens when I initiate a VoIP call using SIP:</p><ol><li><strong>I dial</strong> a number using a SIP-enabled app.</li><li>A SIP <strong>INVITE</strong> message is sent to the recipient.</li><li>Their system replies with a <strong>100 Trying</strong>, <strong>180 Ringing</strong>, and eventually a <strong>200 OK</strong> once they answer.</li><li>My system responds with an <strong>ACK</strong>, and a session begins.</li><li>Voice data is streamed using <strong>RTP</strong>, a real-time protocol.</li><li>When either of us ends the call, a <strong>BYE</strong> is sent, followed by a final <strong>200 OK</strong>.</li></ol><p>It’s a full conversation between digital endpoints, orchestrated perfectly by SIP.</p><h3>🎧 Codecs: The Translators of Our Voice</h3><p>VoIP would be impossible without <strong>codecs</strong>, which compress voice data to make it bandwidth-efficient while preserving quality. Some that I studied:</p><ul><li><strong>G.711</strong> — Excellent quality, but high bandwidth usage.</li><li><strong>G.729</strong> — Lower bandwidth, decent quality, used in many networks.</li><li><strong>Opus, SILK, AAC-LD</strong> — Modern codecs used by WhatsApp, Skype, FaceTime.</li></ul><p>I was amazed to see how these tiny bits of code play a big role in keeping our conversations crisp and clear — even over spotty networks.</p><h3>🔒 Security Matters: TLS, NAT &amp; ICE</h3><p>Real-time communication has its own set of challenges. I explored how <strong>TLS (Transport Layer Security)</strong> encrypts SIP messages to prevent eavesdropping.</p><p>And then there’s <strong>NAT</strong> (Network Address Translation), which complicates direct device-to-device connections. That’s where <strong>ICE (Interactive Connectivity Establishment)</strong> and <strong>STUN/TURN servers</strong> come in, helping devices behind firewalls find each other.</p><h3>🧱 SIP Architecture: Building Blocks of Digital Conversations</h3><p>SIP follows a <strong>client-server model</strong>, using:</p><ul><li><strong>User Agents</strong> (the caller/callee devices)</li><li><strong>SIP Proxy Servers</strong> (for call routing)</li><li><strong>Registrars</strong> (which track user locations)</li><li><strong>Redirect Servers</strong> (to guide calls elsewhere)</li></ul><p>What fascinated me most was how these entities interact in something called the <strong>SIP Trapezoid</strong> — a visual model that shows how signaling and media paths flow differently, often starting through a server and ending directly between devices.</p><h3>📄 Session Description Protocol (SDP)</h3><p>SIP uses <strong>SDP</strong> to describe the media details of a session: codecs used, IP addresses, ports, and timing. Think of SDP as the call’s business card — it tells the recipient what kind of session to expect.</p><p>Here’s a sample line from an SDP message:</p><pre>m=audio 49170 RTP/AVP 0</pre><p>This tells the system, “We’re about to stream audio on port 49170 using RTP and codec G.711.”</p><h3>📈 Why VoIP? (And What to Watch Out For)</h3><h3>✅ Advantages:</h3><ul><li>One network for both voice and data</li><li>Easy to scale and maintain</li><li>Significant cost savings</li><li>Efficient use of bandwidth</li></ul><h3>❌ Challenges:</h3><ul><li>Call quality can suffer over poor internet</li><li>Interoperability between vendors is still an issue</li><li>Security vulnerabilities like spoofing and packet sniffing</li><li>Network failures can affect both data and voice</li></ul><h3>🔐 A Word on Security: Fighting Spoofing</h3><p>One of the most alarming issues I studied was <strong>SIP spoofing</strong>, where attackers impersonate users. A proposed solution? Integrating <strong>Public Key Infrastructure (PKI)</strong> into SIP to ensure strong authentication right from the start — especially during the INVITE stage of a session.</p><h3>Final Thoughts</h3><p>My journey into VoIP and SIP revealed how elegantly these systems work together to power communication in the digital age. Whether we realize it or not, SIP is quietly orchestrating our daily conversations, from business meetings to family calls.</p><p>And as more organizations adopt cloud-based telephony and unified communication systems, understanding how VoIP and SIP work isn’t just geeky curiosity — it’s becoming essential tech literacy.</p><p>👉 If you’re interested in digging deeper or building VoIP applications, I highly recommend starting with tools like Wireshark for packet analysis and exploring SIP-based open-source platforms like Asterisk or FreeSWITCH.</p><p>Let me know your thoughts in the comments — have you worked with VoIP or faced any SIP-related challenges?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e88eb40ed86d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Load Balancer using NGINX]]></title>
            <link>https://medium.com/@pvsaikrishna13/load-balancer-using-nginx-7407b269d71f?source=rss-ec435a48b691------2</link>
            <guid isPermaLink="false">https://medium.com/p/7407b269d71f</guid>
            <category><![CDATA[tomcat]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[load-balancing]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Venkata Sai Krishna Padarthi]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 14:44:38 GMT</pubDate>
            <atom:updated>2025-06-13T21:48:18.546Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qewh32ULRGGnTE6p.png" /></figure><p>When scaling a web application, ensuring high availability and efficient traffic distribution is crucial. One of the most effective ways to achieve this is by implementing a load balancer. In this blog, we will explore how to use Nginx as a load balancer in an AWS EC2 environment to manage multiple applications running on Tomcat servers. By leveraging Nginx’s powerful load balancing capabilities, we can distribute incoming traffic across various instances, enhancing the performance and reliability of our web application.<br>In our setup, we’ll deploy multiple EC2 instances, each hosting an application server powered by Apache Tomcat. Nginx will act as the front-facing load balancer, intelligently routing client requests to the Tomcat servers based on predefined rules and algorithms. This approach not only ensures optimal resource utilization but also provides failover capabilities, minimizing downtime and improving the user experience. Throughout this blog, we’ll cover the step-by-step process of configuring Nginx as a load balancer, setting up EC2 instances, and integrating Tomcat servers, providing a comprehensive guide to building a robust, scalable web infrastructure.</p><h4>Step — 1: Building a Tomcat application</h4><ul><li>First install the JDK and Eclipse IDE for building Java application</li><li>Now create new tomcat project — File -&gt; New -&gt; Dynamic Web Project</li><li>Then create JSP pages in the src/main/webapp folder. The entry of the web application will be from index.jsp file.</li><li>To run this application click on Run and then select Run on Server and then select your Tomcat location or install from the IDE.</li><li>This will run the application and opens it in the browser.</li><li>To create the WAR file, right click on the project and select export and select the WAR file and destination. This will generate a WAR file which can be used to run on Tomcat Server.</li></ul><h4>Step — 2: Setting up the AWS EC2</h4><ul><li>Create a new instance with the AMI image ‘<em>Tomcat powered by Bitnami</em>’ with t2.micro as the image size.</li><li>Now wait for the instace to set up and after couple of minutes open the IP address in a new Tab. You can see the tomcat home webpage.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bNlyYnYyzsDVTRdq.png" /></figure><ul><li>Now SSH into this server and edit the conf files for the Manager access of the Tomcat Web Server.</li><li>Now edit the <em>context.xml</em> in the file path <em>/opt/bitnami/tomcat/webapps/manager/META-INF</em>. Comment the lines as shown in the screenshot.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mV8r2_mHqasocgAO.png" /></figure><ul><li>Now edit the <em>tommcat-users.xml</em> in the file path <em>/opt/bitnami/tomcat/conf</em>. Add the below line to get the manager access and be sure replace with your own credentials.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/0*27Fk58zsGXg2fQrq.png" /></figure><ul><li>After this step you can access the Manager App in the Tomcat Web Server. Similarly, deply two to three EC2 instances now for load balancing.</li></ul><h4>Step — 3: Publishing the WAR application to Tomcat server.</h4><ul><li>Login to the Manager App in the TOmcat Web Server.</li><li>Select the Upload button in the WAR file section and upload your file.</li><li>After uploading you can access the application in applications tab. Click on that to access you website.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cMPvVoKvilq7ILnj.png" /></figure><h4>Step — 4: NGINX server setup</h4><ul><li>Create a new t2.micro Ubuntu instace in the AWS EC2. Make sure to include the HTTP, HTTPS port.</li><li>SSH into the server and execute the below commands.<br><em>sudo apt update<br>sudo apt install nginx</em></li><li>Ater this open the public IP address in a new tab and you should be able to see this.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/0*1iubET4eXyo5QidJ.png" /></figure><h4>Step — 5: NGINX Load Balancer</h4><ul><li>SSH into the NGINX server.</li><li>Now edit the <em>nginx.conf</em> file in the path <em>/etc/nginx/</em> Add the below content under the http.<br><em>upstream backend {<br>server ip-address:port-number-1;<br>server ip-address:port-number-2;<br>server ip-address:port-number-3;<br>}</em></li><li>Final step is to edit the <em>default</em> file under the file path <em>/etc/nginx/sites-available</em> Add the below content to this file <em>server_name _;<br>location /StudentSurvey {<br>proxy_pass </em><a href="http://backend;/"><em>http://backend;</em></a><em><br>proxy_set_header Host $host;<br>proxy_set_header X-Real-IP $remote_addr;<br>}</em></li><li>Now reload and restart the NGINX server using the below commands.<br><em>systemctl reload nginx<br>systemctl restart nginx</em></li><li>Open a new tab and enter the <a href="http://nginx-ip-address/StudentSurvey">http://nginx-ip-address/StudentSurvey</a></li></ul><h4>Completed</h4><ul><li>Finally we have completed the setup of Load Balancer for multiple Tomcat Web Applications.</li><li>So, from the below screenshot you can see that the requests are being redirected to different ip addresses simultaneously. One more addition we can do that we can add the weights for the IP addresses to redirect the websites so that we can have more load on one IP address and other less load.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/0*IFYFCgyWGBeHv2fW.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7407b269d71f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running tomcat application with Rancher and Jenkins]]></title>
            <link>https://medium.com/@pvsaikrishna13/running-tomcat-application-with-rancher-and-jenkins-08f2f95a594d?source=rss-ec435a48b691------2</link>
            <guid isPermaLink="false">https://medium.com/p/08f2f95a594d</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[rancher]]></category>
            <dc:creator><![CDATA[Venkata Sai Krishna Padarthi]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 14:42:00 GMT</pubDate>
            <atom:updated>2025-06-13T14:42:00.438Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MiQj5EpseyHZZJX4.jpg" /></figure><p>Deploying applications can be complex, but with the right tools, it becomes much easier. In this blog, we’ll show you how to use Docker to package your application into containers, making it easy to run anywhere. Then, we’ll use Kubernetes to manage these containers, ensuring your app can scale and stay available. Rancher will help us handle Kubernetes clusters without much hassle, providing a straightforward way to control everything. Lastly, we’ll set up Jenkins to automate the deployment process, so your app gets updated automatically whenever you make changes.<br>By the end of this blog, you’ll know how to make your deployment process smooth and efficient. Whether you’re a beginner or looking to improve your skills, this guide will help you understand and implement modern deployment practices using Docker, Kubernetes, Rancher, and Jenkins. Get ready to simplify your workflow and make your applications more reliable and scalable.</p><h4>Step — 1: Building a Tomcat application</h4><ul><li>First install the JDK and Eclipse IDE for building Java application</li><li>Now create new tomcat project — File -&gt; New -&gt; Dynamic Web Project</li><li>Then create JSP pages in the src/main/webapp folder. The entry of the web application will be from index.jsp file.</li><li>To run this application click on Run and then select Run on Server and then select your Tomcat location or install from the IDE.</li><li>This will run the application and opens it in the browser.</li><li>To create the WAR file, right click on the project and select export and select the WAR file and destination. This will generate a WAR file which can be used to run on Tomcat Server.</li></ul><h4>Step — 2: Pushing to DockerHub</h4><ul><li>First create a DockerHub account in the official website <a href="https://hub.docker.com/">https://hub.docker.com/</a></li><li>Now we have to publish the war file to the DockerHub. Write a Dockerfile and the contents<br>‘<em>FROM tomcat:9.0-jdk15<br>COPY StudentSurvey.war /usr/local/tomcat/webapps </em>‘</li><li>Commands to login to DockerHub account and publish the image<br><em>docker login -u {DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}<br>docker build -t {DOCKERHUB_USERNAME}/{IMAGE_NAME} .</em></li><li>Now in the DockerHub website you can see the uploaded image and this can be used in the Rancher and Jenkins.</li></ul><h4>Step — 3: Setting up AWS</h4><ul><li>Now create a free AWS account and open EC2 under the services.</li><li>First create a new instance for Rancher. Select the OS image as Ubuntu and version is <em>Ubuntu 22.04</em> with <em>t2.medium</em>.</li><li>Under the network tab add the <em>HTTP</em> and <em>HTTPS</em> ports as well for routing and select the disk size of <em>16GB</em>.</li><li>Now create another instance for the Jenkins. Same as rancher select same OS image and same version.</li><li>Under the network tab add the <em>HTTP</em>, <em>HTTPS</em> and <em>8080 TCP</em> ports as well for routing and select the disk size of <em>16GB</em>.</li><li>Final step create a new <em>IAM user</em> with the <em>Administrator Access</em>. After that under the security tab select the access key and create a new access key with <em>CLI</em> access. Copy these credentials.</li></ul><h4>Step — 4: Rancher Desktop Setup</h4><ul><li>Use the below commands to install the Rancher using Docker.io<br><em>sudo apt-get update<br>sudo apt install docker.io<br>sudo usermod -aG docker $USER<br>docker -v (to verify Docker installation)<br>sudo docker run — privileged=true -d — restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher</em></li><li>Now open a new browser and enter the public IP address of the instance where Rancher is being deployed. You will see the rancher dashboard like this.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*SIOCjmfIiN05UjH2.png" /></figure><ul><li>Now use the below commands to get the temporary password and use it to reset the password. First retrieve the container ID.<br><em>sudo docker ps<br>sudo docker logs container_id 2&gt;&amp;1 | grep “Bootstrap Password:”</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*Oyf6s0gUv6KdTKhE.png" /></figure><ul><li>Now create a new cluster with Amazon EC2 as the cluster. Here you need to use the credentials which are copied in the previous step. This step will take around 10–15 mins to make the cluster active.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*olRWbYkjsHM29MtF.png" /></figure><ul><li>Next we need to store the DockeHub credentials in this cluster. For this select storage tab and then secrets and create registry. Select DockerHub in the drop down and enter the username and password and store the dockerhub credentials.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*w2qFGvT8DUbgyJZ-.png" /></figure><ul><li>Then creating a new deployment for the Tomcat web application. Now open the deployments tab and create a new deployment. In this enter the image name and select the dockerhub credentials and create a new node port. Set the private port 8080 and the listening port as 30002. This will create a new endpoint and this can be accessed with the Enpoint button in the deployments page.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*a50JqGFvyfjvIie3.png" /></figure><ul><li>This is the final deployed application in the tomcat web server using the Rancher.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*3csnuCdGG-U-KYFN.png" /></figure><h4>Step — 5: Setting up Jenkins</h4><ul><li>Execute the below commands in the Jenkins EC2 machine. <em>sudo apt-get update<br>sudo apt install openjdk-11-jdk<br>wget -q -O — </em><a href="https://pkg.jenkins.io/debian-stable/jenkins.io.key"><em>https://pkg.jenkins.io/debian-stable/jenkins.io.key</em></a><em> | sudo apt-key add -<br>sudo sh -c ‘echo deb </em><a href="http://pkg.jenkins.io/debian-stable"><em>http://pkg.jenkins.io/debian-stable</em></a><em> binary/ &gt; /etc/apt/sources.list.d/jenkins.list’<br>sudo apt-key list<br>sudo apt-key del “key-id”<br>sudo apt-key adv — keyserver keyserver.ubuntu.com — recv-keys 5BA31D57EF5975CA<br>sudo apt-get update<br>sudo apt install jenkins<br> — check the status of the jenkins — <br>systemctl status Jenkins<br></em>The jenkins dashboard after successful installation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*Rr7_R1voF8qWD-Ui.png" /></figure><ul><li>Now install the Docker.io and snapd for the Kubernetes access to the Rancher. Commands — <em>sudo apt-get update<br>sudo apt-get install docker.io<br>sudo usermod -a -G docker jenkins<br>sudo su<br>systemctl status jenkins<br>sudo apt install snapd<br>sudo snap install kubectl — classic</em></li><li>Here comes the final step for connecting the jenkins with the rancher. Copy the kubecondig content from the rancher desktop website (this button is placed on upper-right corner of the website). This should be copied to the file name <em>config</em> in the file path <em>/var/lib/jenkins/.kube</em></li><li>In the dashboard, create a new deployment and select the pipeline option. Now under the poll SCM, enter the frequency of git pull (for instance we are using * * * * * this means the Jenkins will check for any changes every minute). And then navigate to the bototm of the page and enter the GitHub repository, the select the Script from SCM where the Jenkinsfile is present. In this file all the script is written link different stages named Building the WAR file, building and pushing the image to DockerHub and then restarting the deployment in the Rancher.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*wNg2D8Ke1wOCV3XA.png" /></figure><ul><li>This is the successful script run from the after the git push and changing the code a little bit.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*Gc31e2Agie0iufgp.png" /></figure><h4>Completed</h4><ul><li>Finally we have completed the setup of AWS, Rancher Desktop and Jenkins for Tomcat web application.</li><li>So, when we make changes to the code and push this to the GitHub, this will trigger the Jenkins and it will start the build. First step it will create new WAR file based on the Dockerfile contents and then publishes this image to the DockerHub. Then after it’s gonna restart the deployment in the rancher and the rancher will again pull the image from the DockerHub and update the application.</li></ul><p>GitHub Link -<br><a href="https://github.com/Krishna1303/Student-Survey">https://github.com/Krishna1303/Student-Survey</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08f2f95a594d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developing and publishing a VS code extension for generating documentation for NodeJS project]]></title>
            <link>https://medium.com/@pvsaikrishna13/developing-and-publishing-a-vs-code-extension-for-generating-documentation-for-nodejs-project-c164170eca89?source=rss-ec435a48b691------2</link>
            <guid isPermaLink="false">https://medium.com/p/c164170eca89</guid>
            <category><![CDATA[vs-code-extensions]]></category>
            <category><![CDATA[nodejs-api]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Venkata Sai Krishna Padarthi]]></dc:creator>
            <pubDate>Fri, 13 Jun 2025 14:37:34 GMT</pubDate>
            <atom:updated>2025-06-13T21:18:48.650Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Yvg_kH0efEVAIFfs.jpeg" /></figure><p>Welcome to our comprehensive guide on developing a Visual Studio Code (VS Code) extension. In this blog, I provide a step-by-step walkthrough, covering everything you need to know from setting up your development environment to publishing and maintaining your extension on the VS Code Marketplace. Whether you’re a seasoned developer looking to expand your toolkit or a newcomer eager to dive into extension development, this guide offers detailed instructions and best practices to help you create powerful and user-friendly extensions.<br>From installing essential packages like Node.js and npm to configuring your extension within VS Code, each step is carefully outlined to ensure a smooth and successful development journey. We delve into writing the extension code, including crucial tasks like extracting method names from JavaScript files and implementing document generation functionality. Additionally, I will discuss testing procedures, publishing on the marketplace, and ongoing maintenance, empowering you to create high-quality extensions that meet the needs of the VS Code community. Follow along with our guide, and unleash the full potential of VS Code by building extensions tailored to your workflow and preferences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/0*1_PeMgGBZxckQo8p.png" /></figure><p>Verify yo, generator-code and vsce packages installation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*31bEcYFkrmf6HW2y.png" /></figure><h4>Step — 2:</h4><p>With the required packages installed, the next step is to create a new project for your VS Code extension. Use the command ‘<em>yo code</em>’ to initiate the project setup. This command will guide you through a series of prompts to configure your project. In the package.json file, define the title and command for your extension. This command is used to activate the extension within VS Code, and it will be implemented in the extension.ts file. Properly setting up these initial configurations is essential for ensuring your extension activates and functions as expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*3qe5wp6SAEq7Gft1.png" /></figure><h4>Step — 3:</h4><p>In the package.json file, we establish the identity and activation mechanism of our VS Code extension by defining its title and command respectively. The title serves as a recognizable label for users, facilitating easy identification of the extension both in the marketplace and within their workspace. Meanwhile, the command acts as the trigger for activating the extension’s functionality once launched within VS Code. This pivotal command, specified in the package.json configuration, is seamlessly integrated into the extension’s operation through corresponding activation logic written in the extension.ts file. By meticulously organizing these essential components, we ensure a smooth and intuitive user experience, laying the groundwork for an extension that seamlessly integrates into the VS Code ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/0*wLIHI5QjbnJmzfxt.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*YHlREInA9sE4sv44.png" /></figure><h4>Step — 4:</h4><p>In this pivotal step, we’ll utilize regular expressions to meticulously comb through our source code, identifying API routes and their associated methods. By scrutinizing patterns such as router.route() coupled with HTTP verbs, we’ll systematically extract endpoints, shedding light on our application’s interaction points. This process not only aids in documentation but also offers crucial insights into our application’s structure and functionality, empowering informed decision-making in API design and architecture. Armed with a comprehensive list of API routes, we’ll be well-equipped for seamless integration and effective documentation in subsequent stages of development.</p><h4>Step — 5:</h4><p>With your project set up, it’s time to infuse your extension with functionality using code. Begin by harnessing the power of pdfkit, a versatile library for PDF generation. First, implement the logic to extract method names and parameters from JavaScript files, laying the groundwork for your extension’s core functionality. Utilize pdfkit to seamlessly translate this extracted information into a professionally formatted PDF document, ensuring clarity and readability. Meanwhile, you can integrate progress indicators to keep users informed of the document generation process, enhancing their experience by providing real-time feedback. By leveraging pdfkit’s capabilities alongside thoughtful design and user-centric features, you’ll craft a VS Code extension that empowers developers to streamline their workflow and elevate their productivity with ease.</p><h4>Step — 6:</h4><p>To test the extension, press ‘<em>F5</em>’ to open a new development window in VS Code. Use ‘<em>Ctrl+Shift+P</em>’ to open the command palette, then type the title of your extension to activate it. After activation, the extension will prompt you to select the document format (PDF or TXT) and enter a custom name for the document. The generated document will appear in the specified format, confirming the extension works as intended. Testing in the development environment ensures that all functionalities are correctly implemented before the extension is published.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*LkNxhJr5AdDNkTfb.png" /></figure><p>The below images shows the execution of VS code extension in the development environment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*9Fe_bKN6uq1EnMOx.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*Wxt2ngn9HBSCqqHP.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/0*QJtmAI-snPAgZvjV.png" /></figure><h4>Step — 7:</h4><p>Before your extension can make its debut on the Visual Studio Marketplace, it needs to be properly packaged. This ensures that it’s neatly organized and ready for distribution. To accomplish this, open your command-line interface and execute the command ‘<em>vsce package</em>’. This command acts as a magic wand, bundling all your extension files into a single, tidy package, known as a VSIX file. Think of it as wrapping your extension up with a bow, making it easier to share and install. Once the packaging process is complete, you’ll have a shiny new VSIX file ready to be submitted to the Visual Studio Marketplace. So, take a deep breath, run that command, and watch as your extension transforms into a publishable package, one step closer to reaching eager users worldwide.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*X4XtHR8XoyQ9gRiG.png" /></figure><h4>Step — 8:</h4><p>To navigate the publishing process seamlessly, establish a robust foundation. Begin by creating a Microsoft account if you haven’t already. Then, venture into Azure DevOps, Microsoft’s platform for software development, and generate a Personal Access Token (PAT). This token serves as a key for accessing and publishing extensions. Once armed with your PAT, proceed to the Visual Studio Marketplace. Here, craft a new publisher profile, ensuring to select a distinctive and unalterable publisher ID. These foundational steps pave the way for a smooth extension publishing experience on the Visual Studio Marketplace.<br>Link to Azure DevOps account — <a href="https://dev.azure.com/">https://dev.azure.com</a><br>Link to VS Code MarketPlace account — <a href="https://marketplace.visualstudio.com/manage">https://marketplace.visualstudio.com/manage</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*WTF6RTZX49bRnkH1.png" /></figure><h4>Completed</h4><p>After successfully uploading the VSIX package in the VS code market place, within few minutes it will be available in the VS code extensions market place. You can see that in your VS code and this can monitored in the VS code market place website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*IECJVTpcsF1G9r3K.png" /></figure><p>GitHub Link -<br><a href="https://github.com/Krishna1303/nodejs-api-documentation">https://github.com/Krishna1303/nodejs-api-documentation</a></p><p>Extension link -<br><a href="https://marketplace.visualstudio.com/items?itemName=PVSK.nodejs-api-documentation">https://marketplace.visualstudio.com/items?itemName=PVSK.nodejs-api-documentation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c164170eca89" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>