<?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 Atul Reny on Medium]]></title>
        <description><![CDATA[Stories by Atul Reny on Medium]]></description>
        <link>https://medium.com/@atulreny911?source=rss-ef2e124e9f42------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EPHYaYgE_O-Gucn7PrW71w.jpeg</url>
            <title>Stories by Atul Reny on Medium</title>
            <link>https://medium.com/@atulreny911?source=rss-ef2e124e9f42------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:27:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@atulreny911/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[How to Cheat an Exam with AURA (and a REST API)]]></title>
            <link>https://medium.com/@atulreny911/how-to-cheat-an-exam-with-aura-and-a-rest-api-86c5b7465754?source=rss-ef2e124e9f42------2</link>
            <guid isPermaLink="false">https://medium.com/p/86c5b7465754</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[exam]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Atul Reny]]></dc:creator>
            <pubDate>Sat, 09 Aug 2025 21:48:27 GMT</pubDate>
            <atom:updated>2025-08-09T21:48:27.873Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3rqrR63-rGYQz-J2y6TAXg.png" /></figure><h3>⚠️ <strong>Disclaimer</strong></h3><p>To any of my dear university faculty reading this: I absolutely do not engage in, encourage, or condone <em>any</em> form of academic malpractice.<br> This post is purely hypothetical, written for <strong>educational</strong> and <strong>entertainment</strong> purposes only.<br> (Or maybe I do. Who’s to say? 😉)</p><h4>Another Episode of <em>Over-Engineering a Problem That Didn’t Need Engineering</em></h4><p>It started, as most dev stories do, with a simple task I could’ve done manually — but <em>chose not to</em>.</p><p><strong>Picture this:</strong><br> It’s the night before a certain technical lab exam that shall remain unnamed — you know, the kind where people start mumbling <em>Apache Hadoop</em> like it’s a sacred chant.<br> The clock has just struck midnight. I’m now only <strong>a few hours</strong> away from a final that will <em>apparently decide my whole career</em>.</p><p>Now, I could have spent those hours by-hearting huge, ugly Java programs and praying to the exam gods for mercy…</p><p><em>or</em> I could harness my inner developer and API my way out of this.</p><p>REST assured, I chose the latter.</p><p>Let me put it into perspective.</p><p>There I was, staring down a collection of mind-numbingly ugly Java programs, each one generously sprinkled with Hadoop like some kind of cursed seasoning. My motivation? Nowhere to be found. My brain? Desperately scratching for <em>any</em> way to avoid actually reading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LKknB6iCOj4xSWdAejTjkw.png" /></figure><p>I thought of some classics: maybe cut up some micro-printed chits and stealthily sneak them in? Nah — my eyesight’s nowhere near good enough to read ant-sized text under exam pressure.</p><p>What about uploading everything to Google Drive? Tempting, but that still carried the terrifying possibility of getting caught. And I, of course, would <em>never</em> engage in academic malpractice. Not me. Not anyone I know. <em>Ever.</em> 😉</p><p>By the time I was done brainstorming, I had in my hands (hypothetically, of course) <strong>an untraceable, on-demand exam solution</strong> that could serve me any program I wanted — quietly, instantly, and with no trace left behind.</p><p>How I got there, though… that’s where the fun begins.</p><h4>Stage 1: The “Sloppy” Beginning</h4><p>It started simple.<br> I figured, <em>“If I can store my lab programs in one place and fetch them with a GET request, that’s half the battle won.”</em></p><p>I simply store the <strong>programs</strong> in a local folder and fetch them using the fs library.</p><pre>app.get(&#39;/program/:id&#39;, (req, res) =&gt; {<br>  const programId = req.params.id;<br>  const filePath = path.join(__dirname, &#39;programs&#39;, `${programId}.txt`);<br><br>  fs.readFile(filePath, &#39;utf8&#39;, (err, data) =&gt; {<br>    if (err) {<br>      return res.status(404).send(`Program ${programId} not found.`);<br>    }<br>    res.send(data);<br>  });<br>});</pre><p>So I hit my browser with:<br> <a href="http://localhost:3000/program/4">http://localhost:3000/program/4</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPVApIttzxGWRgAwk_SGyw.png" /></figure><p>It worked — but it felt like a glorified Google Drive.<br> Messy. Obvious. Boring.</p><h4>Stage 2: Curl to the Rescue</h4><p>I wanted something stealthier. Something <em>non-Google-Drive-y</em>.</p><pre>curl -L http://localhost:3000/program/4</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ou99awSmGrasNtbW_FZUQ.png" /></figure><p>Now we were talking. No flashy browser. No visual cues. Just terminal goodness.</p><p>Still… it wasn’t slick enough.</p><h4>Stage 3: Operation Clipboard</h4><p>Then it hit me.<br> <em>“What if I could fetch the program AND copy it directly to my clipboard — without it ever touching my screen?”</em></p><pre>curl http://localhost:3000/program/4 | clip</pre><p><strong>Chef’s kiss.</strong><br> The API served the program, clip piped it straight to my clipboard, and my console stayed clean.<br> Paste. Run. Done.</p><p>This was stealth mode.</p><h4>Stage 4: Going Remote</h4><p>Localhost was cute. But what if I wanted access… from <em>anywhere</em>?</p><p>I tried Render’s free tier, but the inactivity timeouts made it useless.</p><p>Then: <strong>Ngrok.</strong></p><p>Public URL, instantly:</p><pre>https://cattle-apparently-naturally.ngrok-free.app</pre><p>Sure, it was a mouthful, but a quick TinyURL later, it was short, sweet, and lab-friendly (hypothetically).</p><pre>curl -L https://tinyurl.com/example/program/2 | clip</pre><h3>The Final Form</h3><p>By the end of my over-engineering spree, I had a fully functional, remote-access REST API that:</p><ul><li>Left <strong>no browsing history</strong></li><li>Opened <strong>no suspicious tabs</strong></li><li>Required <strong>no incognito mode</strong></li><li>Left <strong>no visible evidence</strong></li><li>Generated <strong>no logs</strong></li></ul><p>Pure. Elegant. Stealth.</p><h3>The Real Win</h3><p>Did I ever need to use it? Not once.</p><p>But the sheer joy of building an unnecessary, borderline absurd, hyper-optimized solution? <strong>Absolutely priceless.</strong></p><p>Sometimes it’s not about solving the problem.<br>It’s about proving to yourself that you could have — if you wanted to.</p><p>For… <em>ahem</em>… entirely obvious reasons, I will not be attaching links to the full codebase here.<br> (In case some bright-eyed juniors are lurking around… go on, you hobbit — hit the books. This is not the GitHub repo you’re looking for.)</p><p>✍️ <em>PS: For legal purposes, all of the above is 100% fictional. Any resemblance to real events is purely coincidental.</em> 😉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86c5b7465754" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an AI-Powered Multilingual Chatbot with Sarvam AI]]></title>
            <link>https://medium.com/@atulreny911/building-an-ai-powered-multilingual-chatbot-with-sarvam-ai-94ed06c96fe0?source=rss-ef2e124e9f42------2</link>
            <guid isPermaLink="false">https://medium.com/p/94ed06c96fe0</guid>
            <category><![CDATA[sarvam-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Atul Reny]]></dc:creator>
            <pubDate>Sat, 15 Mar 2025 17:09:34 GMT</pubDate>
            <atom:updated>2025-03-15T17:13:59.403Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Participating in the <strong>Great Bangalore Hackathon</strong> as part of the <strong>Great Indian Hackathon</strong> has been an incredible experience. My goal was to build an <strong>AI-powered chatbot</strong> capable of processing <strong>speech input in any Indian native language</strong>, understanding it in <strong>precise context</strong>, and responding in the <strong>same language with a natural-sounding voice</strong>.</p><p>To achieve this, I leveraged <a href="https://sarvam.ai/"><strong>Sarvam AI’s</strong></a><strong> powerful suite of APIs</strong> for <strong>Automatic Speech Recognition (ASR), Translation, and Text-to-Speech (TTS)</strong> and integrated <strong>Google’s Gemini API</strong> as the <strong>LLM (Large Language Model)</strong> to process user prompts intelligently.</p><p>This blog breaks down how I used these APIs to create a seamless, multilingual AI chatbot that feels intuitive, fast, and highly responsive.</p><h3>The Tech Stack</h3><p>The entire system was built using:<br> ✅ <strong>Sarvam AI APIs</strong> — for speech-to-text, translation, and text-to-speech<br> ✅ <strong>Google Gemini API</strong> — as the core LLM for processing queries<br> ✅ <strong>Node.js &amp; Express</strong> — for backend API integration<br> ✅ <strong>React.js</strong> — for the frontend UI<br> ✅ <strong>WebSockets</strong> — for real-time interactions</p><h3>Why Sarvam AI?</h3><p>While there are many AI-driven speech and language processing solutions, <strong>Sarvam AI stood out</strong> for its:</p><p>🔥 <strong>Super-fast API response times</strong> — ensuring real-time conversations<br> 🎯 <strong>Highly accurate speech recognition</strong> — even for complex Indian languages<br> 🌐 <strong>Context-aware translation</strong> — preserving the original meaning<br> 🗣 <strong>Natural-sounding text-to-speech voices</strong> — making interactions feel human<br> 📜 <strong>Exceptionally well-written API documentation</strong> — making integration seamless</p><blockquote>One of the most beautifully written API documentations I’ve ever come across!</blockquote><p>Sarvam’s developer documentation provides clear examples, pre-built API requests, and interactive testing — <strong>allowing me to set up everything without writing a single line of boilerplate setup code</strong>.</p><p>Here’s a <strong>sneak peek of their documentation</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sP1xUwkz6EYG4emfhpuQLA.png" /></figure><h3>System Architecture &amp; Workflow</h3><h3>1️⃣ Speech Input via Sarvam AI’s Automatic Speech Recognition (ASR)</h3><p>The user <strong>speaks in any Indian native language</strong>, and <strong>Sarvam AI’s ASR model</strong> converts it into <strong>text with high accuracy</strong>.</p><pre>POST https://api.sarvam.ai/asr<br>Headers: { Authorization: Bearer YOUR_API_KEY }<br>Body: { &quot;audio&quot;: &quot;base64_encoded_audio_file&quot; }</pre><p>⬇️<br> <strong>Response:</strong></p><pre>{<br>  &quot;text&quot;: &quot;नमस्ते, आज का मौसम कैसा रहेगा?&quot;<br>}</pre><h3>2️⃣ Processing with Gemini API for Context-Aware Responses</h3><p>Once we have the text from Sarvam’s ASR, we <strong>pass it to the Gemini API</strong>, which acts as the <strong>LLM</strong>.</p><pre>POST https://api.gemini.google.com/generate<br>Headers: { Authorization: Bearer YOUR_API_KEY }<br>Body: { &quot;prompt&quot;: &quot;नमस्ते, आज का मौसम कैसा रहेगा?&quot; }</pre><p>⬇️<br> <strong>Response:</strong></p><pre>{<br>  &quot;response&quot;: &quot;आज का मौसम साफ़ रहेगा और हल्की ठंडी हवा चलेगी।&quot;<br>}</pre><h3>3️⃣ Generating Speech Output with Sarvam’s Text-to-Speech (TTS)</h3><p>Once the Gemini model returns the response, we <strong>convert it back into speech using Sarvam AI’s Text-to-Speech (TTS) API</strong>.</p><pre>POST https://api.sarvam.ai/tts<br>Headers: { Authorization: Bearer YOUR_API_KEY }<br>Body: { <br>  &quot;text&quot;: &quot;आज का मौसम साफ़ रहेगा और हल्की ठंडी हवा चलेगी।&quot;,<br>  &quot;voice&quot;: &quot;female_1&quot;,<br>  &quot;language&quot;: &quot;hi&quot;<br>}</pre><p>⬇️<br> <strong>Response (Audio file)</strong> 🎙</p><p>This TTS model generates <strong>a very realistic voice output</strong>, making the chatbot sound <strong>incredibly human-like</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TVJXAdgWa473c_lq39hs3Q.png" /></figure><h3>Final Results &amp; Experience</h3><p>🚀 The <strong>entire pipeline is lightning fast</strong>, allowing users to <strong>speak in their native language</strong> and receive <strong>spoken responses in real-time</strong>.<br> 💡 <strong>Sarvam’s models are highly customizable</strong>, letting us fine-tune the voices and responses for a <strong>more personalized chatbot experience</strong>.<br> 📖 <strong>The documentation was a game-changer</strong>, making the entire process seamless and easy to implement.</p><h3>Key Takeaways</h3><p>✅ <strong>Great API documentation = massive developer productivity boost</strong><br> ✅ <strong>Sarvam AI’s APIs are incredibly fast and accurate</strong><br> ✅ <strong>Seamless integration with Gemini API for intelligent responses</strong><br> ✅ <strong>Speech-to-speech chatbot in native languages is a game-changer</strong></p><p>A huge <strong>shoutout to the Sarvam AI mentors</strong> for their guidance throughout this hackathon! If you’re a developer looking to build <strong>speech-driven AI applications</strong>, I highly recommend <strong>giving Sarvam AI a try</strong>. 🚀</p><p>Have you worked with <strong>speech AI or multilingual chatbots</strong> before? Would love to hear your thoughts! Let’s discuss in the comments. 👇</p><p>#GreatBangaloreHackathon #GreatIndianHackathon #SarvamAI #GoogleGemini #AI #SpeechRecognition #LLM #Hackathon #MultilingualAI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94ed06c96fe0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Day I Declared War on Excel (and Won with Code)]]></title>
            <link>https://medium.com/@atulreny911/the-day-i-declared-war-on-excel-and-won-with-code-23aaef15dcb3?source=rss-ef2e124e9f42------2</link>
            <guid isPermaLink="false">https://medium.com/p/23aaef15dcb3</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Atul Reny]]></dc:creator>
            <pubDate>Sat, 05 Oct 2024 21:08:20 GMT</pubDate>
            <atom:updated>2024-10-05T21:08:20.132Z</atom:updated>
            <content:encoded><![CDATA[<p>250 Applicants, 1 Ugly Spreadsheet, and My App to the Rescue</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i3JIttbeD3-Lrl2Uj_KXQQ.png" /></figure><p>Let’s face it, Excel can be… well, soul-crushing. And after one particular data-management nightmare, my relationship with Excel became a tale of hatred, frustration, and over-engineering.</p><p>Here’s the scene: recruitments for 2024 at our <a href="https://www.linkedin.com/company/dev-track/mycompany/">Dev/Track club</a> at Reva University. We had nearly 250 applicants, and guess who got to manage the Excel sheet? That’s right, me. I was responsible for handling the interview cluster scheduling and maintaining applicant data — email IDs, SRNs, phone numbers, their dreams, ambitions, social profiles (LinkedIn, GitHub, the works). It felt like I was staring into a bottomless pit of horizontally laid out chaos.</p><p>Interviews started, and naturally, we had to sift through this mess for each applicant. Having to scan row after row while asking meaningful questions? Absolute torture. I knew there was no way I was going to survive this.</p><p>So, in true developer fashion, I thought: Why suffer when I can just… not?</p><h3>The Birth of an App (aka How I Channeled My Excel Hatred into Something Useful)</h3><p>Instead of forcing myself to endure hours of interviews with that grotesque sheet, I decided to put my time and energy into building something that would make my life easier — and my teammates’ too. After all, nobody should be subjected to the horrors of that sheet.</p><p><strong>Solution? Build a custom app</strong> to search, filter, and display all the data in a way that didn’t make me want to scream.</p><p>In full “rage-against-Excel” mode, I whipped open VS Code, set a timer, and got to work. MongoDB models? Check. Designed one for applicants with all the required parameters. I wrote a quick script to parse and upload the CSV data of 250 applicants directly into MongoDB. That’s right, all of them as documents. No more Excel in my life. <strong>Ever.</strong></p><p>Next up, I threw in some <strong>EJS</strong>, <strong>Express</strong>, <strong>Node</strong>,<strong>MongoDB</strong> and <strong>Datatables.js</strong> to organize and display everything neatly. <strong>Multer</strong> and <strong>fs</strong> were in the mix too, fetching and structuring all that data. I now had a beautiful, functional table of applicants that I could <strong>sort, filter, and search</strong> through without losing my mind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7NZJp1Gt2JaPcFzd36Z1Ig.png" /></figure><p>The best part? Clicking on any applicant would redirect to a clean, vertical layout of all their info. Structured. Styled. Easy to read. My interview team would now glide through the interviews like it was a breeze.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4yO7I3SSYB2bYg-HaCWFCA.png" /></figure><h3>The UI? Meh. The Productivity? Skyrocketing.</h3><p>Admittedly, the UI wasn’t winning any design awards — it was pretty bland and unremarkable. But hey, I threw this together in less than <strong>3 hours</strong> just to challenge myself, so I call that a win.</p><p>And in the end, the app did exactly what I needed: it saved my sanity and helped my team work way more efficiently during the interviews.</p><h3>The Code, the App, and the Awkward Loading Times</h3><p>You’re probably wondering where you can check this out. I’ve got the GitHub repo and a live link for the app right here (though, fair warning, it’s on Render’s free tier so it might take a hot second to wake up the server).</p><p>Sadly, I must bid farewell to my precious database, because the last thing I need is to end up on a “Top Ten Data Breaches” list! Don’t worry, I’ll just replace it with dummy data — because nothing says “safety first” like a database full of fictional characters!</p><p>Check it out, and let me know what you think!</p><p><a href="https://github.com/AtulRyy/DT-Applications">GitHub Repo</a><br><a href="https://dt-applications.onrender.com/">Live Website</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23aaef15dcb3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSV to VCard QR Code Generator: When Laziness Sparks Genius]]></title>
            <link>https://medium.com/@atulreny911/csv-to-vcard-qr-code-generator-when-laziness-sparks-genius-efcfe94734e1?source=rss-ef2e124e9f42------2</link>
            <guid isPermaLink="false">https://medium.com/p/efcfe94734e1</guid>
            <category><![CDATA[vcard]]></category>
            <category><![CDATA[qr-code]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[vcard-qr-code]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Atul Reny]]></dc:creator>
            <pubDate>Thu, 26 Sep 2024 20:29:26 GMT</pubDate>
            <atom:updated>2024-09-26T20:29:26.018Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yEWVSigB_-QK5bv3kmmGfg.png" /></figure><p>Disclaimer: <strong>This isn’t a tutorial</strong> — because, let’s be honest, who has time for that? But hey, if I ever do make one, I’ll drop the link here.</p><h3><strong>Procrastination, But Make It Productive</strong></h3><p>Lately, I’ve been in this weird phase where if I face even the slightest inconvenience or repetitive task, my brain immediately goes, “Why not spend hours coding a solution instead of just doing it the easy way?” Productive procrastination at its finest.</p><p>So, here’s the story of how my refusal to do data entry for 70+ people led to me developing a whole CSV to VCard QR code generator. Buckle up, it’s a wild ride!</p><p><strong>Tech Stack Alert:</strong> This little project was powered by the dynamic duo of <strong>Node.js</strong> and <strong>Express</strong>, sprinkled with some <strong>EJS</strong> magic for templating, stored safely in the cloud with <strong>MongoDB Atlas</strong>, and (fingers crossed) hosted on <strong>Render</strong>.</p><h3><strong>The Problem: A QR Code Conundrum</strong></h3><p>Picture this: My dad runs a company, and as part of a marketing campaign, he needed to generate QR codes for some VCard data. You know, those little .vcf files that, when opened, magically fill in your contact details and save them with one click? Here’s what they look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*n96S11qm46CcOTXqdSUemQ.png" /></figure><p>But here’s the kicker — those QR codes he generated required people to download the VCard file to their phone’s local storage before they could open it. Not exactly the smoothest user experience.</p><p>What we really needed was a QR code that would instantly launch the VCard on your phone, no downloading required. Ain’t nobody got time for extra steps!</p><h3>To Google I Went</h3><p>So, I did what any self-respecting developer would do — I Googled it. I found this nifty tool called <a href="https://genqrcode.com/generator/vcard">GenQRCode</a>, and it looked promising.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D0bxu4M3kFC0YM-qwBY8mw.png" /></figure><p>You could input your contact details and generate two kinds of QR codes:</p><ul><li><strong>Static QR Code:</strong> Basically, a one-and-done deal. Once generated, it can’t be altered. Perfect for things that don’t change, like Wi-Fi passwords or our VCard data.</li><li><strong>Dynamic QR Code:</strong> These bad boys can be updated after creation. Useful for things like restaurant menus (seriously, does anyone actually enjoy scanning those?).</li></ul><p>Naturally, I tried both. And guess what? The static QR code opened my address book right away — no downloads, no hassle. Meanwhile, the dynamic QR code required a download before I could even look at the contact info. Bingo! Static was the way to go.</p><p>But then, reality hit. We needed to generate over 70 QR codes. By tomorrow morning. And manually entering each person’s details? Yeah, hard pass.</p><h3>The Lightbulb Moment</h3><p>Now, I could either pay for a bulk QR code generator (ugh) or spend hours manually creating each one (double ugh). But then I thought, why not just build my own? I mean, why pay for a service when I can over-engineer a solution in the name of laziness?</p><p>So, I set a timer, fired up VSCode, and got to work.</p><h3>Step 1: Parsing the CSV Data (AKA, The Boring Part)</h3><p>First things first, I needed to parse the CSV data and upload it to a MongoDB Atlas database. Armed with Node.js and some trusty packages like csv-parser and fs, I managed to get all the data into the database.</p><p><strong>Pro tip:</strong> Trim your CSV headers before uploading. I learned that the hard way after my database threw a fit.</p><pre><br>mongoose.connect(mongooseString).then(() =&gt; console.log(&#39;Connected to MongoDB&#39;))<br>    .catch(err =&gt; console.log(&#39;MongoDB connection error:&#39;, err));<br><br>app.use(express.urlencoded({ extended: true }));<br>app.use(express.json());<br><br>const results = []<br>fs.createReadStream(csvFile)<br>    .pipe(csv({ mapHeaders: ({ header }) =&gt; header.trim() }))  // Parse the CSV file<br>    .on(&#39;data&#39;, (data) =&gt; {<br>        // Push the parsed data to results<br>        results.push({<br>            firstName: data[&#39;firstName&#39;.trim()],<br>            lastName: data[&#39;lastName&#39;.trim()],<br>            email: data[&#39;email&#39;.trim()],<br>            cellno: data[&#39;cellno&#39;.trim()],<br>            address: data[&#39;address&#39;.trim()],<br>            website: data[&#39;website&#39;.trim()],<br>            title: data[&#39;title&#39;.trim()],<br>            org: data[&#39;org&#39;.trim()],<br>            city: data[&#39;city&#39;.trim()],<br>            state: data[&#39;state&#39;.trim()],<br>            country: data[&#39;country&#39;.trim()],<br>            pinCode: data[&#39;pinCode&#39;.trim()]<br>        });<br>    })<br>    .on(&#39;end&#39;, () =&gt; {<br>        console.log(results);<br>        // Insert parsed data into MongoDB<br>        applicant.insertMany(results)<br>            .then(() =&gt; {<br>                console.log(&#39;CSV data successfully uploaded to MongoDB&#39;);<br>                // Close the connection after upload<br>            })<br>            .catch(err =&gt; {<br>                console.error(&#39;Error inserting data into MongoDB:&#39;, err);<br>            });<br>    });<br>app.listen(3000, () =&gt; {<br>    console.log(&quot;Sever is now listening on port 3000&quot;);<br><br>})</pre><h3>Step 2: Making the Magic Happen</h3><p>With the data safely tucked away in MongoDB, it was time to generate some VCards. I wrote a server script to fetch the data for all 70 members, convert it into VCard syntax, and store it in an array. Then, I looped over that array to convert the info into base64-encoded QR codes.</p><p>To keep things simple, I used EJS as my template engine. This made it a breeze to mix JavaScript logic directly into the HTML view.</p><p><strong>Pro tip:</strong> Make sure the VCard boilerplate has absolutely <em>no</em> extra whitespace or auto-formatting — trust me, it won’t work, and you’ll spend 30 minutes pulling your hair out like I did. Lesson learned the hard way!</p><pre>app.get(&#39;/&#39;,async(req,res)=&gt;{<br>    try{<br>        const Users=await User.find();<br>        const qrCodes=[];<br>        for(const user of Users)<br>        {<br>            const vcard=createVCard(user);<br>            // console.log(vcard);<br>            try {<br>                const qrCodeDataUrl = await QRCode.toDataURL(vcard);<br>                qrCodes.push({ name: user.firstName + &quot; &quot; + user.lastName, org: user.org, qrCode: qrCodeDataUrl });<br>                // console.log(qrCodeDataUrl);<br>                <br>            } catch (error) {<br>                console.error(&quot;Error generating QR code:&quot;, error);<br>            }<br>            <br>        }<br>        res.render(&#39;index.ejs&#39;,{qrCodes});<br>    }catch (error) {<br>        console.error(error);<br>        res.status(500).send(&#39;Internal Server Error&#39;);<br>    }<br>    <br>})<br>app.get(&#39;/dev&#39;,(req,res)=&gt;{<br>    res.render(&#39;index.ejs&#39;)<br>})<br>app.listen(process.env.port,&#39;0.0.0.0&#39;,()=&gt;{<br>    console.log(&quot;Sever is now listening on port &quot;+process.env.port);<br>})<br>function createVCard(firstName,lastName,org,title,cellno,email,website,address,city,state,pinCode,country) {<br>    return`BEGIN:VCARD<br>VERSION:3.0<br>N:${lastName};${firstName}<br>FN:${firstName} ${lastName}<br>ORG:${org || &#39;N/A&#39;}<br>TITLE:${title || &#39;N/A&#39;}<br>TEL;TYPE=CELL:${cellno}<br>EMAIL:${email}<br>URL:${website || &#39;&#39;}<br>ADR;TYPE=WORK:;;${address};${city};${state};${pinCode};${country}<br>END:VCARD`;<br>}</pre><h3>Step 3: Show Me the QR Codes!</h3><p>Next up, I needed a way to display these QR codes. I threw together a list view table with three columns: name, company, and the QR code itself. Since the QR codes were base64-encoded, I added a little script to decode and display them as images.</p><p>And just like that, scanning the QR code on my Android phone popped open my address book with all the contact info filled in. Boom!</p><h3>Step 4: Download All the Things</h3><p>Now, I couldn’t just stop there. I wanted the ability to download each QR code individually, or all of them at once. Using multer and fs, I added download buttons for each QR code, and a master button that zipped up all the codes for one-click downloading.</p><h3>Final Thoughts: Mission Accomplished!</h3><p>In the end, my refusal to do manual data entry led to a fully functional CSV to VCard QR code generator. What was supposed to be a tedious task turned into a fun little coding adventure. And the best part? It only took about an hour and fifty minutes to build.</p><p>So, the next time you’re faced with a boring, repetitive task, ask yourself: “Can I code my way out of this?” The answer is probably yes. And if it’s not, well, at least you’ll have some fun trying!</p><p><strong>And hey, if you’re the curious type or just want to snag some code,</strong> <strong>check out the repo </strong><a href="https://github.com/AtulRyy/CSV-to-Vcard-QR"><strong>here</strong></a> <strong>and give the tool a whirl.</strong> <a href="https://csv-to-vcard-qr.onrender.com/"><strong>Here’s the website</strong></a><strong> that started it all — just a heads up, it’s on Render’s free tier, so it might take a nap when you try to visit.</strong> Happy QR coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efcfe94734e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>