<?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 Tarun Nagpal on Medium]]></title>
        <description><![CDATA[Stories by Tarun Nagpal on Medium]]></description>
        <link>https://medium.com/@tarunnagpal78?source=rss-fdba24ede82a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*I8P6auHZLUcSeo8d.jpeg</url>
            <title>Stories by Tarun Nagpal on Medium</title>
            <link>https://medium.com/@tarunnagpal78?source=rss-fdba24ede82a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:22:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tarunnagpal78/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[From Frontend to Search Engineering — My Journey Building People Search]]></title>
            <link>https://tarunnagpal78.medium.com/from-frontend-to-search-engineering-my-journey-building-people-search-817071485c23?source=rss-fdba24ede82a------2</link>
            <guid isPermaLink="false">https://medium.com/p/817071485c23</guid>
            <dc:creator><![CDATA[Tarun Nagpal]]></dc:creator>
            <pubDate>Thu, 30 Oct 2025 07:05:04 GMT</pubDate>
            <atom:updated>2025-10-30T07:05:04.119Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Frontend to Search Engineering — My Journey Building People Search</h3><h3>🚀 The Curiosity That Started It All</h3><p>After years of working on frontend applications — writing React components, building dashboards, and perfecting user experiences — I started to feel a quiet itch.</p><p>Every time I searched for something — on LinkedIn, on Google, even within enterprise apps — I was fascinated by how search systems just <em>worked</em>. The ranking, the speed, the fuzziness, the relevance — all felt like magic.</p><p>Of course, it wasn’t magic. It was <strong>engineering</strong>. And I wanted to learn it.</p><p>That’s how <em>People Search</em> began — not as a side project, but as a personal deep dive into the world of <strong>search engineering</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aQ7RKJyUTRdX38g1_4nGuQ.png" /><figcaption>Search Architecture (OpenSearch)</figcaption></figure><h3>🧭 The Problem I Wanted to Solve</h3><p>Every organization faces the same challenge: finding people efficiently.</p><p>Whether it’s employees, freelancers, or partners — internal directories are often painfully limited.<br> Search for “John” and you’ll get hundreds of them. Try “React developer in Delhi” and you’ll likely get nothing.</p><p>I wanted to explore what it would take to fix that — to create something that could search across multiple fields, understand partial matches, and rank results by relevance.</p><p>So I asked myself:</p><blockquote><em>“What if I could build my own mini search engine for people — from scratch?”</em></blockquote><h3>⚙️ The Tech Stack I Chose</h3><p>I didn’t want to build another CRUD API. I wanted a <strong>search-first system</strong>.</p><ul><li><strong>FastAPI (Python)</strong> — for a clean, async backend.</li><li><strong>OpenSearch</strong> — for full-text search, fuzzy matching, and boosting relevance.</li><li><strong>Docker Compose</strong> — to bring up everything locally with one command.</li><li><strong>RandomUser API</strong> — for generating realistic user data to index.</li><li>A lightweight <strong>frontend</strong> (React) — for trying out real queries.</li></ul><p>This setup let me focus on the <em>heart</em> of the challenge: <strong>how search works</strong>.</p><h3>🔍 The Journey of Building a Search Engine</h3><p>The first success came when I indexed a few hundred random users and ran my first search query.<br> The results came back instantly — but I quickly realized that <em>fast</em> isn’t the same as <em>smart</em>.</p><p>So I started adding intelligence:</p><ul><li><strong>Fuzzy search</strong> to handle typos like “Jhon” or “Jonh”.</li><li><strong>Field boosting</strong> so names rank higher than cities or emails.</li><li><strong>Pagination and scoring</strong> for better navigation.</li><li><strong>Highlighting</strong> so users could instantly see <em>why</em> a result matched.</li></ul><p>Seeing OpenSearch respond with structured, ranked, and highlighted results felt like pulling back the curtain on how modern search actually works. It was both technical and oddly poetic.</p><h3>💡 What I Learned Along the Way</h3><p>Every project teaches you something — but this one changed how I think about systems.</p><ul><li><strong>Search isn’t CRUD.</strong> It’s about meaning, not exact matches.</li><li><strong>Relevance &gt; Results.</strong> A thousand hits don’t matter if the top one is useless.</li><li><strong>Schema is everything.</strong> The way you define fields, analyzers, and boosts can make or break a search experience.</li><li><strong>Performance teaches humility.</strong> Even with small datasets, you see the trade-offs between indexing speed, memory, and query accuracy.</li></ul><p>For the first time, I wasn’t just coding features — I was engineering <em>discovery</em>.</p><h3>🔭 What’s Next</h3><p><em>People Search</em> is just the beginning.</p><p>Next, I want to:</p><ul><li>Build a polished React UI with autocomplete and filters.</li><li>Deploy to AWS with managed OpenSearch.</li><li>Integrate <strong>GenAI</strong> so users can search naturally, like “Find a developer who knows Kubernetes and works in Bangalore.”</li><li>Tune relevance using real interaction data.</li><li>Add monitoring and better scalability.</li></ul><p>Each step takes me closer to understanding how modern search systems — from LinkedIn to ChatGPT — actually think.</p><h3>🧠 Why This Project Matters to Me</h3><p>For a long time, I focused on how things looked.<br> This project shifted my focus to <strong>how things are found</strong>.</p><p><em>People Search</em> represents a personal milestone — a transition from crafting user interfaces to building intelligent systems beneath them.<br> It’s a small project, but it’s also proof of curiosity, growth, and technical hunger.</p><p>And to future teams, it’s my way of saying:</p><blockquote><em>“I don’t just want to build what users click.<br> I want to build how users find what matters.”</em></blockquote><h3>⚡ Try It Yourself</h3><p>Check out the project here:<br> 👉 <a href="https://github.com/tarun-nagpal-github/people-search">github.com/tarun-nagpal-github/people-search</a></p><p>You can clone it, spin it up with Docker, and experiment with your own data.<br> It’s an amazing feeling when your first search query lights up with relevant, ranked results.</p><h3>🧭 Final Thoughts</h3><p>Search is everywhere — from our browsers to our inboxes. But we only notice it when it fails.</p><p>Working on <em>People Search</em> reminded me that great search isn’t about algorithms alone — it’s about empathy.<br> It’s about understanding <em>how people look for things</em>, and designing systems that quietly help them succeed.</p><p>If you’ve ever been curious about how search works — don’t just read about it.<br> <strong>Build one.</strong><br> You’ll never look at that search bar the same way again.</p><p><em>Thanks for reading. If you enjoyed this, give it a ❤️ and follow my journey into search engineering and GenAI.</em><br> — <strong>Tarun Nagpal</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=817071485c23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Practices for Web Development]]></title>
            <link>https://tarunnagpal78.medium.com/best-practices-for-web-development-44464000396f?source=rss-fdba24ede82a------2</link>
            <guid isPermaLink="false">https://medium.com/p/44464000396f</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[Tarun Nagpal]]></dc:creator>
            <pubDate>Sat, 18 Jan 2025 08:47:26 GMT</pubDate>
            <atom:updated>2025-01-18T08:47:26.171Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0k5cdpEjAz9D-xu-bH_QMA.jpeg" /><figcaption>Photo by ThisIsEngineering: <a href="https://www.pexels.com/photo/woman-coding-on-computer-3861958/">https://www.pexels.com/photo/woman-coding-on-computer-3861958/</a></figcaption></figure><p>Creating a fast and reliable web application is a fundamental need for businesses today. Web development is a dynamic field that requires technical skills, creativity, and strategic thinking. To develop an app that not only looks good but also functions efficiently and delivers an excellent user experience, it is essential to follow best practices. Below, I’ve outlined key strategies that can help you improve your next project or refine your current one.</p><h3>1. Clean and Responsive UI for Better User Experience</h3><p>A clean and responsive user interface (UI) ensures that users can navigate your app smoothly and intuitively. Reduce unnecessary clicks and back-and-forth navigation to keep users focused on what they need.</p><h3>Techniques to Achieve Responsive Design:</h3><ul><li><strong>Media Queries</strong>: Use CSS media queries to apply styles based on screen size.</li><li><strong>Flexible Layouts</strong>: Create layouts that dynamically adjust element positioning and size.</li><li><strong>Responsive Images/Media</strong>: Adjust the size and resolution of media to fit various devices.</li></ul><h3>2. Plan and Architect Before Coding</h3><p>Planning before coding helps reduce pitfalls and streamlines the development process. Consider these foundational steps:</p><ul><li><strong>Requirement Understanding</strong>: Define project goals, constraints, and user needs.</li><li><strong>Wireframing and Prototyping</strong>: Visualize layouts and interactions before development.</li><li><strong>Technology Stack Selection</strong>: Choose the right tools, frameworks, and platforms for the project.</li><li><strong>Architectural Design</strong>: Structure system components and define their interactions.</li></ul><h3>3. Web Accessibility</h3><p>Web accessibility ensures your app is usable by as many people as possible, including those with visual or hearing impairments.</p><h3>Tips for Accessibility:</h3><ul><li>Support <strong>screen readers</strong> to make your app readable for visually impaired users.</li><li>Include <strong>captions and transcripts</strong> for multimedia content.</li><li>Implement <strong>keyboard navigation</strong> for users who cannot use a mouse.</li><li>Ensure <strong>clear and simple navigation</strong>.</li></ul><p>For more details, refer to <a href="https://developer.mozilla.org/en-US/docs/Learn/Accessibility/What_is_accessibility">MDN Accessibility Guide</a>.</p><h3>4. Clean and Maintainable Code</h3><p>Writing clean and maintainable code saves time in debugging, extending features, and onboarding new team members.</p><h3>Best Practices for Clean Code:</h3><ul><li><strong>Documentation</strong>: Write clear documentation for code and processes.</li><li><strong>Reusable Components</strong>: Create small, modular components.</li></ul><h3>5. Follow the DRY (Don’t Repeat Yourself) Principle</h3><p>Avoid duplicating code by reusing existing logic or leveraging libraries.</p><h3>Example:</h3><pre>// Bad Practice - Repetitive Code<br>let price1 = item1.cost * item1.quantity;<br>let price2 = item2.cost * item2.quantity;</pre><pre>// Good Practice - Reusable Function<br>function calculatePrice(item) {<br>    return item.cost * item.quantity;<br>}<br><br>let price1 = calculatePrice(item1);<br>let price2 = calculatePrice(item2);</pre><h3>6. Prepare for Performance</h3><p>Optimizing performance is critical for user satisfaction and business success.</p><h3>Tips for Performance Optimization:</h3><ul><li>Reduce heavy HTTP requests and optimize API calls.</li><li>Improve page load times by deferring assets and lazy-loading images/media.</li><li>Implement caching mechanisms.</li></ul><h3>7. Comprehensive Testing</h3><p>Testing ensures your app works as intended and is free of bugs.</p><h3>Types of Testing:</h3><ul><li><strong>Unit Testing</strong>: Test individual components or functions.</li><li><strong>Integration Testing</strong>: Test interactions between components.</li><li><strong>End-to-End Testing</strong>: Test the complete user workflow.</li></ul><h3>8. Privacy and Security</h3><p>Data security is non-negotiable. Protect user data by following these practices:</p><ul><li>Use <strong>SSL/HTTPS</strong> for secure data transmission.</li><li>Implement <strong>authentication and authorization</strong> frameworks like Okta.</li><li>Validate and sanitize inputs to prevent security vulnerabilities.</li><li>Follow <strong>CORS policies</strong> for secure third-party communication.</li><li>Implement <strong>Role-Based Access Control (RBAC)</strong> for user permissions.</li><li>Stay compliant with privacy regulations like GDPR and CCPA.</li></ul><h3>9. Continuous Learning and Improvement</h3><p>Stay updated with the latest trends and tools in web development. Technology evolves rapidly, and ongoing learning is essential.</p><h3>Key Tips:</h3><ul><li>Keep libraries updated (e.g., in package.json for Node.js projects).</li><li>Use AI tools like GitHub Copilot and ChatGPT with caution.</li><li>Follow OWASP guidelines for security best practices.</li><li>Read blogs and case studies from companies like Netflix, Uber, and Meta.</li></ul><h3>Conclusion</h3><p>Web development is a constantly evolving field. By following these nine best practices, you can design apps that are efficient, user-friendly, and future-proof. Whether you’re starting a new project or improving an existing one, these strategies will help you deliver outstanding results.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44464000396f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I passed my AWS Cloud practitioner Certification in first attempt]]></title>
            <link>https://tarunnagpal78.medium.com/how-i-passed-my-aws-cloud-practitioner-certification-in-first-attempt-950053e05051?source=rss-fdba24ede82a------2</link>
            <guid isPermaLink="false">https://medium.com/p/950053e05051</guid>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[inspiration]]></category>
            <dc:creator><![CDATA[Tarun Nagpal]]></dc:creator>
            <pubDate>Sat, 21 Jan 2023 08:08:48 GMT</pubDate>
            <atom:updated>2023-01-21T08:10:18.498Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*ATdmr5zEzqGo60DpsHxMrA@2x.jpeg" /></figure><p>Hey Everyone ,</p><p>Cloud Computing is the future, learning this will make you future ready resource.</p><p>I have recently cleared my first AWS Certification which is AWS Cloud Practitioner.</p><p>Believe me passing this Exam helped me gain confidence on cloud technologies.</p><p>Now whenever I use AWS services and listen to the news/discussions I can related the things I learned during my preparation.</p><p><strong>What is AWS Cloud Practitioner Exam</strong> ?</p><p>This is the first and the most basic level of Certification in your cloud journey. It will help you get familiar with the things like Cloud computing, why we need this.</p><p><strong>Who Can give this ?</strong></p><p>This is not an exam only for programmers but anyone who have some basic Knowledge of computing or its terminologies can appear for the exam.</p><p><strong>Do we really need this ?</strong></p><p>Yes, Cloud is the future and I remember when I started coding in 2010, there was FileZill (an FTP Server) to push code to server. But with the modern tools its far more easy to Code/Build/Deploy. Cloud has all the services available to you on a pay-as-you-go pricing model.</p><p><strong>How I did the preparation </strong>?</p><p>To handle Boredom- I followed <a href="https://en.wikipedia.org/wiki/Pomodoro_Technique">Pomodoro technique.</a></p><p>I spent 3 weeks in preparation. and followed this following pattern.</p><p>Step -1 – Complete the Udemy Course by <a href="https://www.udemy.com/course/aws-certified-cloud-practitioner-new/">Stephane Maarek</a></p><p>Step -2 – Do the practice Test from these Udemy Courses</p><p>1. Stephane Marik</p><p>2. Other (Anyone you like)</p><p>Step -3 – Review the Practice Test Incorrect answers and clear your understanding.</p><p>Step – 4 – Keep giving and repeating the step 3 until you clear all exam with at-least 80%.</p><p><strong>What resources I took</strong> ?</p><p><a href="https://www.udemy.com/course/aws-certified-cloud-practitioner-new/">https://www.udemy.com/course/aws-certified-cloud-practitioner-new/</a></p><p><strong>Tips during the Exam</strong></p><ul><li>Clean/make your room.</li><li>- Question is itself the answer – Read it twice</li><li>- Don’t Rush. 90 Minutes are enough.</li></ul><p>If you have any question or doubt for this exam, feel free to ask me in comments.</p><p>#aws #cloud</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=950053e05051" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lazy Load any HTML section Easily — Intersection Observer]]></title>
            <link>https://tarunnagpal78.medium.com/lazy-load-any-html-section-easily-intersection-observer-d685eb416686?source=rss-fdba24ede82a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d685eb416686</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[intersection-observer]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Tarun Nagpal]]></dc:creator>
            <pubDate>Wed, 22 Sep 2021 05:18:36 GMT</pubDate>
            <atom:updated>2021-09-22T05:20:07.113Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lazy Load any HTML section Easily — Intersection Observer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Up79iQoiDCnq4dQ4_gvA-w.jpeg" /><figcaption>Intersection Observer Demo</figcaption></figure><p><strong>What is Intersection Observer</strong></p><p>Let’s break the term. Intersection = Where 2 points meet. Observer = who observe a particular thing. It is a an API Provided in browser that can help</p><p><strong>Why we need it ?</strong></p><p>We often see that the HTML page is too heavy to load it fast.</p><p>There are many sections which will load at the time of opening the page but actually we may or may not look at them.</p><p>For example — you opened a website to just see the cricket score but the page is loading all the sections like “Player LeaderBoard” etc.</p><p><strong>What we can do</strong></p><p>We can lazy load any html sections of the page to improve our page search engine performance and load time.</p><p>Although, in Latest HTML (5) , lazy loading is supported natively but that is limited to images and iframes only.</p><p>We have a very powerful JavaScript Browser API that can help us achieve lazy loading on any HTML tag not limited to images.</p><p>This feature is called Intersection Observer.</p><p><strong>Intersection Observer</strong></p><p>It will observe your section and will only load when it is present in the viewport (Visible portion of the page).</p><p>How to use intersection Observer</p><p>You can specify the root, the treshold (trigger point) of loading. And the optional margin.</p><p><strong>Example and working code</strong></p><p>Let’s create an example in which I will load an article section lazily with the help of intersection observer.</p><p>For the sake of easy understanding, I tried to make a simple but still if you feel anything is unclear, please let me know in comments. I will be happy to address.</p><p>Step 1 — Create an HTML page.</p><p>Step 2 — Add 2 div with large heights so that the next section appears after the viewport</p><p>Step — 3 — Add a section tag with content to be lazy loaded.</p><p>Step 4 — Define Intersection observer and observe the target element.</p><p><strong>Link if the working example</strong></p><p>In this example, we are lazy loading and article section and adding some even on them after they are loaded in the viewport.</p><p><a href="https://codepen.io/tarunnagpal123/pen/LYWqNpB">https://codepen.io/tarunnagpal123/pen/LYWqNpB</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d685eb416686" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Contentful + GraphQL + angular]]></title>
            <link>https://tarunnagpal78.medium.com/contentful-graphql-angular-8951266ea8f5?source=rss-fdba24ede82a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8951266ea8f5</guid>
            <category><![CDATA[contentful]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[content]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Tarun Nagpal]]></dc:creator>
            <pubDate>Fri, 20 Nov 2020 04:57:35 GMT</pubDate>
            <atom:updated>2020-11-20T04:57:35.237Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I have worked on a website that was using a very good architecture for a Headless CMS Driven Approach.</p><p>I have used contentful as a CMS and Show the data in GraphQL Quires and finally bring the content with angular</p><p>A sample response from contentful</p><pre><a href="https://gist.github.com/tarun-nagpal-github/0ad9cd24fdafddd13550067ef7595d2b">https://gist.github.com/tarun-nagpal-github/0ad9cd24fdafddd13550067ef7595d2b</a></pre><p>Section 1 (Optional) — Setup and Use ContentFul</p><p>You can skip this step and use the keys provided in the example directly. In case you want to continue, let&#39;s start</p><p>Step 1 — Set up a ContentFUl account</p><p><a href="https://www.contentful.com/sign-up/">https://www.contentful.com/sign-up/</a></p><p>Step 2 — Create a Content-Type and add the fields</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cShgJ1k3zeUsSZf29K5Ghw.png" /><figcaption>Content-Type Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I40DvQPfv63A63YlnAyCaQ.png" /><figcaption>Add Some fields</figcaption></figure><pre><a href="https://app.contentful.com/spaces/j5fihdm9uq5m/content_types">https://app.contentful.com/spaces/&lt;your-space-id&gt;/content_types</a></pre><p>example — Blog Post and the fields like title and description</p><p>Step -3 Add some content entries</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OzQ3yMqwjOvizmkx26bRkA.png" /><figcaption>Add the content fields</figcaption></figure><p>Step 3 — Check the spaceId etc and set up a GraphQL Playground</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fe8W_17nNDQ5Rht3K8VWMQ.png" /><figcaption>GraphQL Editors</figcaption></figure><pre><a href="https://graphql.contentful.com/content/v1/spaces/j5fihdm9uq5m/environments/master/explore?access_token=jiCMLgiCBClcd7rwnPW6Jryryi3_N9B1laQGWm7i6Ws">https://graphql.contentful.com/content/v1/spaces/j5fihdm9uq5m/environments/master/explore?access_token=jiCMLgiCBClcd7rwnPW6Jryryi3_N9B1laQGWm7i6Ws</a></pre><p>Step 4 — Authenticate and use the API in Angular</p><p>I have created a sample APP with Angular that will be fetching the records with angular-contentful service. In this approach, I have not used <a href="https://www.npmjs.com/package/apollo-angular">apollo-angular</a> but it is recommended to use.</p><p>You can also use the <a href="https://www.contentful.com/developers/docs/javascript/tutorials/using-contentful-in-an-angular-project/">tutorial provided by contentful</a> to set up and use it directly.</p><pre><a href="https://www.contentful.com/developers/docs/javascript/tutorials/using-contentful-in-an-angular-project/">https://www.contentful.com/developers/docs/javascript/tutorials/using-contentful-in-an-angular-project/</a></pre><p>Example repo — I have created a repo using my keys and access_tokens. This is a basic one and can be extended.</p><p>You can check it out and I am open to exploring it more.</p><pre><a href="https://github.com/tarun-nagpal-github/contentful-blog-catalog-angular">https://github.com/tarun-nagpal-github/contentful-blog-catalog-angular</a> </pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8951266ea8f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Integrate Travis CI/CD with GitHub]]></title>
            <link>https://tarunnagpal78.medium.com/how-to-integrate-travis-ci-cd-with-github-be492b7cf213?source=rss-fdba24ede82a------2</link>
            <guid isPermaLink="false">https://medium.com/p/be492b7cf213</guid>
            <category><![CDATA[travis]]></category>
            <category><![CDATA[cicd-tools]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[travis-ci]]></category>
            <category><![CDATA[girhub]]></category>
            <dc:creator><![CDATA[Tarun Nagpal]]></dc:creator>
            <pubDate>Sun, 27 Sep 2020 16:43:18 GMT</pubDate>
            <atom:updated>2020-09-27T16:43:18.981Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iLG6S6Maad7AidE2FXyGjA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@divinetechygirl?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Christina Morillo</a> from <a href="https://www.pexels.com/photo/woman-sitting-in-front-of-laptop-1181287/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>I am a huge Fan of Github and AWS and during my last project, I got a chance to work on a new tool named travis (<a href="https://travis-ci.com/">https://travis-ci.com/</a>).</p><p>I found it really cool and simple to use along with many features. So, with the habit of sharing and exploring, I created this post for the same.</p><p>I have divided the whole process into 9 Easy Steps and you can follow them to “Integrate Travis CI/CD with GitHub”.</p><p>Although I have tried to keep things as simple as possible if you still found something ambiguous.</p><p>Please let me know in the comments section. Lets Start :)</p><ol><li>Signup for Travis (<a href="https://travis-ci.com/signin">https://travis-ci.com/signin</a>) via Github</li></ol><figure><img alt="SignUp Page" src="https://cdn-images-1.medium.com/max/1024/0*_8JLadFl2qdfgR-G" /><figcaption>(SignUp Button)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*30krgf81XBiK5b_4" /><figcaption>(Authorize the Details)</figcaption></figure><p>2. Open the Page (<a href="https://travis-ci.com/getting_started">https://travis-ci.com/getting_started</a>)</p><p>3. Activate your GitHub repositories — In this step, we are allowing our Github repository to be accessible from travis.</p><p>Expected URL Like below —</p><pre><a href="https://github.com/apps/travis-ci/installations/new/permissions?suggested_target_id=4689167">https://github.com/apps/travis-ci/installations/new/permissions?suggested_target_id=</a>xxxxxxx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/0*rpHrQsZofVa9lJIb" /></figure><p>4. Get the Desired AWS details</p><p>You need the following AWS details in order to set up the process</p><pre>AWS_KEY — XXX<br>AWS_SECTRET_KEY - XXX<br>BUCKET_NAME - XXX</pre><p>5. Setup Environment variables</p><p>In this step, we will add environment variables. Please take care that you should add all sensitive information (like AWS key) in environment variables only. Adding private keys to, travis.yml will lead to security issues.</p><p>5.1 Goto repository page — Example</p><pre> (example <a href="https://travis-ci.com/github/IderaInc/fusion-chart-travis-poc">https://travis-ci.com/github/tarun-nagpal-github/charts-travis-poc</a>)</pre><p>5.2 Click on More Options (on Right side) and then the settings button.</p><p>5.3 Add the desired variables. Please contact your DevOps/IT team for AWS details</p><figure><img alt="AWS — Environment Variables" src="https://cdn-images-1.medium.com/max/1024/0*rzu6C4AJtPFLrWRW" /><figcaption>Environment Variables</figcaption></figure><p>6. Add a .travis.yml file to your repository</p><p>In order for Travis CI to build your project, you’ll need to add a .travis.yml configuration file to the root directory of your repository.</p><p>Setup your .YML file in Step 7</p><p>If a .travis.yml is not in your repository or is not valid YAML, Travis CI will ignore it.</p><p>You can find a sample of all supported languages here (<a href="https://docs.travis-ci.com/user/language-specific/">Language-specific Guides — Travis CI</a>)</p><p>7. Setup your .travis.yml</p><p>In this step, we will set up the .travis.yml. Please be careful about the name of the file its .travis.yml (dot) file.</p><p>7.1 Start your file with language and the version.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e4c59b070c7739f3c5cbaa64d487c641/href">https://medium.com/media/e4c59b070c7739f3c5cbaa64d487c641/href</a></iframe><p>7.2 Setup before_install section</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2388406d2efe1283d59353591edc2904/href">https://medium.com/media/2388406d2efe1283d59353591edc2904/href</a></iframe><p>7.3 Add before_script and script section</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad8b7073120d86080a241526bbd5dd71/href">https://medium.com/media/ad8b7073120d86080a241526bbd5dd71/href</a></iframe><p>7.4 (Optional) Set Git submodules to false — It will stop the unwanted running of gitsubmodules</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8764d070b05e2bc188990d7124bc6d84/href">https://medium.com/media/8764d070b05e2bc188990d7124bc6d84/href</a></iframe><p>7.5 Add your S3 Bucket Information</p><p>It includes 3 sections before_deploy, deploy and after_deploy</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0a374e95e52b207277933af6ff773759/href">https://medium.com/media/0a374e95e52b207277933af6ff773759/href</a></iframe><p>8. Validate your YML file here (<a href="http://www.yamllint.com/">http://www.yamllint.com/</a>)</p><p>It is very important that you validate the file before uploading it to Github. Invalid YML will leads to an Error in build</p><p>9. Trigger your build</p><p>Now we have all the required files(.travis.yml) and settings (Env variables), its time to trigger the build.</p><p>All you need to do now is commit it to your local git history and git push it to GitHub. Your build will be triggered and the progress can be seen easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nMbkV0SDy8v7vJvN2lwMcQ.png" /><figcaption>Summary of the Build</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be492b7cf213" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Add Redux into create-react-app]]></title>
            <link>https://levelup.gitconnected.com/how-to-add-redux-into-create-react-app-a5003c08212?source=rss-fdba24ede82a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5003c08212</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[redux-saga]]></category>
            <dc:creator><![CDATA[Tarun Nagpal]]></dc:creator>
            <pubDate>Sun, 10 May 2020 09:06:47 GMT</pubDate>
            <atom:updated>2026-01-29T08:27:35.595Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://react-redux.js.org/introduction/quick-start">Redux</a> is the most popular State container library for Frontend apps. It helps you manage your state in a predictable and easy way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*wgvIR-ZTUTS5jww1ToG-cQ.png" /><figcaption>Redux Flow</figcaption></figure><p>This post is about setting up Redux on your new/existing React app.</p><h3><strong>Create react APP</strong></h3><p>I am taking the most popular React-boilerplate (create-react-app).</p><p>If you are very new to React and do not know what create-react-app is, then follow the link below.</p><pre>npx create-react-app my-app<br>cd my-app<br>npm start</pre><p><a href="https://reactjs.org/docs/create-a-new-react-app.html">https://reactjs.org/docs/create-a-new-react-app.html</a></p><h3><strong>Redux Documentation</strong></h3><p>You can find the official documentation of Redux on the link below.</p><p><a href="https://redux.js.org/introduction/getting-started">https://redux.js.org/introduction/getting-started</a></p><h3><strong>Do you really need Redux in React?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*EXFwvoysFR8MB4OdowCZ3g.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@polina-zimmerman?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Polina Zimmerman</a> from <a href="https://www.pexels.com/photo/clueless-woman-in-white-dress-shirt-3958872/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>Before implementing Redux, I would highly recommend that you go to this post below by the creator of Redux (<a href="https://twitter.com/dan_abramov">Dan Abramov</a>).</p><pre><a href="https://medium.com/@dan_abramov/you-might-not-need-redux-be46360cf367">https://medium.com/@dan_abramov/you-might-not-need-redux-be46360cf367</a></pre><p>Now, if you are sure that you want to use Redux than, let&#39;s get started.</p><h3>Prerequisites</h3><p>Basic knowledge of JavaScript and React.<br>Basic understanding of create-react-app.</p><h3><strong>Setup CRA (create-react-app)</strong></h3><p>Install the Desired Packages</p><p>redux — The base package<br>react-redux — Package to use the Redux features according to React</p><p><strong>Install the npm Packages</strong></p><pre>npm install redux react-redux redux-saga</pre><h3><strong>Redux Folder Structure</strong></h3><p>Create a Folder named Redux in src which contains the following folders</p><ol><li>Reducers</li><li>Saga</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/247/1*rtzuaabwwTqB2lz9sSJYvA.png" /><figcaption>APP — Foder Structure</figcaption></figure><h3><strong>Import the Libraries</strong></h3><p>In the index.js, include the following dependencies</p><pre>// Redux Library Packages<br> import { Provider } from “react-redux”;<br> import createSagaMiddleware from ‘redux-saga’;<br> import { createStore, applyMiddleware, compose } from “redux”;<br> import { logger } from ‘redux-logger’;</pre><pre> // Custom redux Elements<br> import rootReducer from “./redux/reducers/index”;<br>import rootSaga from “./redux/sagas/index”;</pre><h4><strong>Attach the Provider to the APP</strong></h4><pre>const userReducer = (state, action) =&gt;{<br>switch (action.type) {<br> case “USER_FETCH_REQUESTED”:<br> return { …state, response: null, loading: true }<br> case “USER_FETCH_SUCCEEDED”:<br> return { …state, response: action.response, loading: false }<br> default:<br> return {<br> response: “No Response”<br> };<br> }<br>}</pre><h4><strong>Add the Reducers</strong></h4><pre>const globalReducer = createStore(<br> rootReducer,<br> compose( <br> applyMiddleware(sagaMiddleware, logger)<br> ));</pre><p>The &lt;Provider /&gt; makes the Redux store available to any nested components that are using the useSelector hook.</p><pre> &lt;Provider &gt;<br>   &lt;App /&gt;<br> &lt;/Provider&gt;</pre><p><strong>Attach the Reducers to the providers</strong></p><pre>&lt;Provider store={globalReducer}&gt;<br>  &lt;App /&gt;<br>&lt;/Provider&gt;</pre><p><strong>Get the Global State into your App</strong></p><pre>import { useSelector } from “react-redux”;</pre><pre>const globalState = useSelector(state =&gt; state);</pre><p><strong>Dispatch the Action on Event</strong></p><pre>const getUserData = () =&gt; {<br> // Get the Data for the User<br> dispatch({ type: “USER_FETCH_REQUESTED”})<br>}</pre><p><strong>Attach An API Call to the Action</strong></p><pre>import { call, put, takeLatest } from ‘redux-saga/effects’<br><br>const getRecords = (uid = null) =&gt; {<br>const results = fetch(‘<a href="https://jsonplaceholder.typicode.com/todos/1&#39;">https://jsonplaceholder.typicode.com/todos/1&#39;</a>)<br> .then(response =&gt; response.json()); <br> return results;<br>}</pre><pre>// worker Saga: will be fired on USER_FETCH_REQUESTED actions<br>function* fetchUser(action) {<br> try {<br> const json = yield call(getRecords, 400);<br> yield put({type: “USER_FETCH_SUCCEEDED”, response: json});<br> } catch (e) {<br> yield put({type: “USER_FETCH_FAILED”, message: e.message});<br> }<br>}</pre><pre>function* mySaga() {<br> yield takeLatest(“USER_FETCH_REQUESTED”, fetchUser);<br>}</pre><pre>export default mySaga;</pre><p><strong>Run the Code and See the Action</strong></p><p><strong>Final app.js file</strong></p><p>Your final app.js will look like this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f78a23a06041a160655608ae21175dda/href">https://medium.com/media/f78a23a06041a160655608ae21175dda/href</a></iframe><p><strong>Run the Code and See the Action</strong></p><p>Open</p><pre>localhost:3000/</pre><p><strong>Working Example</strong></p><pre><a href="https://react-redux-example.netlify.app/">https://react-redux-example.netlify.app/</a></pre><p>CodeSandBox</p><pre><a href="https://codesandbox.io/s/github/tarun-nagpal-github/react-redux-boilerplate">https://codesandbox.io/s/github/tarun-nagpal-github/react-redux-boilerplate</a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*mHz2T5ZmjIHbrcFXVpTpaw.jpeg" /></figure><p><strong>GitHub Repo for this example</strong></p><pre><a href="https://github.com/tarun-nagpal-github/react-redux-boilerplate">https://github.com/tarun-nagpal-github/react-redux-boilerplate</a></pre><h3><strong>Conclusion</strong></h3><p>In this post, we have picked a fresh React app and implemented Redux with a sample action.</p><p>I have just set up one, but you can expand it and use it in your project. Feel free to ask for any help in comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5003c08212" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/how-to-add-redux-into-create-react-app-a5003c08212">How to Add Redux into create-react-app</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A day spent with a successful Freelancer]]></title>
            <link>https://tarunnagpal78.medium.com/a-day-spent-with-a-successful-freelancer-863a710a50f3?source=rss-fdba24ede82a------2</link>
            <guid isPermaLink="false">https://medium.com/p/863a710a50f3</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[freelancers]]></category>
            <category><![CDATA[meetup]]></category>
            <category><![CDATA[freelancing]]></category>
            <dc:creator><![CDATA[Tarun Nagpal]]></dc:creator>
            <pubDate>Sat, 28 Dec 2019 13:34:02 GMT</pubDate>
            <atom:updated>2019-12-28T14:16:41.339Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bTuKwlQVuS91ZybN95MEIQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@gbeaudry?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Gabriel Beaudry</a> on <a href="https://unsplash.com/s/photos/freelancer?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Hey People,</p><p>Today I have attended a session on Being “Successful with Freelancing”.</p><p>It was a great time with <a href="https://www.linkedin.com/in/askgauravnanda/">Gaurav </a>and I really enjoyed every moment of it. This is the first time I attended the meetup on this topic.</p><p>I would like to share my takeaways from the session.</p><p>Without any delay, Lets Get Started</p><h3><strong>Top Freelancing Websites</strong></h3><p><a href="https://www.toptal.com/">https://www.toptal.com/</a></p><p><a href="https://www.upwork.com/">https://www.upwork.com</a></p><p><a href="https://www.freelancer.in/">www.freelancer.in</a></p><p><a href="https://www.peopleperhour.com/">https://www.peopleperhour.com/</a></p><p><a href="https://www.guru.com/">https://www.guru.com/</a></p><h3><strong>Write a good cover letter</strong></h3><p>Talk about unique things in the job description like “JavaScript Sever” or “slider jquery plugin”</p><p>Don’t include any script or predefined text like “I have read your requirement …. or I have Experienced, etc. “</p><p>Instead of this write the content from the job description.</p><p>Try to send the Video message if possible</p><h3><strong>Answer the Set of Questions</strong></h3><p>There are 2 types of questions in the job proposal</p><p>1. Static — Don’t leave them blank and answer</p><p>2. Custom — Specifically written by the client. We should be more focused on this.</p><h3><strong>Try to Give Value on the first impression</strong></h3><p>If the client is asking about any problem, try to give a suggestion as a reply to them. Example — No sales on the website — Suggestion — Check SSL Certificate</p><h3><strong>Prepare Scope Document</strong></h3><p>Create a Scope document that defines things like In Scope — Out Scope — Production support, etc.</p><h3><strong>Conclusion</strong></h3><p>It was a fun filled day with the things like “Meet Like minded people” gain knowledge about the “process of Freelancing” and “do and don’t about the same”.</p><h3>People I meet</h3><p>I would like to share some pictures of the event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uedG2CouEKtld1fdbXnnwg.jpeg" /><figcaption>During the Meetup</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_o3vanRUx_-vH-HrTjm-ZQ.jpeg" /><figcaption>A Young Freelancer (18 yrs)</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=863a710a50f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React — Interview Questions]]></title>
            <link>https://tarunnagpal78.medium.com/react-interview-questions-f67b525bf809?source=rss-fdba24ede82a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f67b525bf809</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-interview-question]]></category>
            <category><![CDATA[react-interview]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <dc:creator><![CDATA[Tarun Nagpal]]></dc:creator>
            <pubDate>Thu, 19 Dec 2019 10:34:44 GMT</pubDate>
            <atom:updated>2019-12-19T10:36:26.694Z</atom:updated>
            <content:encoded><![CDATA[<h3>React — Interview Questions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11_akq3WNX3QGyRM1CGXGQ.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@mentatdgt-330508?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">mentatdgt </a>from <a href="https://www.pexels.com/photo/two-woman-chatting-1311518/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>What is Virtual DOM and define the Algorithm behind it?</p><p>Angular vs React?</p><p>What are Immutability Helpers?</p><p>What is Reconciliation in React?</p><p>What is Pure Component?</p><p>How can we make a Functional Component as Pure Component?</p><p>What is Emotion in React?</p><p>How do we write CSS in react?</p><p>Does react re-render update when there is no value in setState()?</p><p>Why we need MiddleWare in redux?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f67b525bf809" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Reasons to use WebPack in JavaScript Project]]></title>
            <link>https://tarunnagpal78.medium.com/5-reasons-to-use-webpack-in-javascript-project-a2f7dffcdf43?source=rss-fdba24ede82a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2f7dffcdf43</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[modül]]></category>
            <dc:creator><![CDATA[Tarun Nagpal]]></dc:creator>
            <pubDate>Fri, 15 Nov 2019 10:37:03 GMT</pubDate>
            <atom:updated>2019-11-15T10:42:16.040Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oPIaZB51-Qtk-u4n7UP3Ww.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@canvastudio?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Canva Studio </a>from <a href="https://www.pexels.com/photo/woman-sharing-her-presentation-with-her-colleagues-3153198/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>Hey People,</p><p>I recently did a <a href="https://app.pluralsight.com/library/courses/webpack-fundamentals">course </a>on pluralsight for webpack by <a href="https://twitter.com/josepheames">Joe Eames</a> and its wonderful experience.</p><p>I would like to share the top 5 reasons for using webpack in your project.</p><ol><li>Help Combining multiple files into one.</li><li>Minification — It will help us reduce the code size.</li><li>Maintain the file include order.</li><li>Transpiling — It helps us make our code compatible with all the browsers.</li><li>Linting — “to err is human”, It helps us displaying any Syntax and compilation errors in advance.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2f7dffcdf43" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>