<?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 Parul Dixit on Medium]]></title>
        <description><![CDATA[Stories by Parul Dixit on Medium]]></description>
        <link>https://medium.com/@paruldixit31?source=rss-51662df0117d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*McPjbhU13tSR3x84.png</url>
            <title>Stories by Parul Dixit on Medium</title>
            <link>https://medium.com/@paruldixit31?source=rss-51662df0117d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 03:07:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paruldixit31/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[Triggering Jenkins build on push using GitHub webhooks]]></title>
            <link>https://faun.pub/triggering-jenkins-build-on-push-using-github-webhooks-52d4361542d4?source=rss-51662df0117d------2</link>
            <guid isPermaLink="false">https://medium.com/p/52d4361542d4</guid>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[github-webhook]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Parul Dixit]]></dc:creator>
            <pubDate>Fri, 25 Jan 2019 10:03:14 GMT</pubDate>
            <atom:updated>2019-07-18T18:28:15.193Z</atom:updated>
            <content:encoded><![CDATA[<h3>Triggering a Jenkins build on push using GitHub webhooks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*gtNm_ePCGVK1hqMIi-Z7kw.jpeg" /><figcaption>Jenkins Github Integration</figcaption></figure><blockquote><strong>Jenkins</strong> is a popular open source tool to perform continuous integration and build automation. Let’s take a look at how we can integrate <strong>GitHub </strong>with Jenkins for<strong> source code management</strong> and <strong>trigger build on push using web-hooks</strong>.</blockquote><h4>Prerequisites :</h4><ol><li><strong>Jenkins</strong>: Download and install Jenkins as described <a href="https://jenkins.io/download/"><em>here</em></a><em>.</em></li><li><strong>Git</strong>: Install Git. To check whether you have git installed, open a terminal window and type below command.</li></ol><pre>git --version</pre><p>3. <strong>Plugins: </strong>Add Git and GitHub Plugins.</p><p><strong>Go to Manage-Jenkins-&gt; Manage Plugin</strong></p><p>search <strong><em>Github plugin</em></strong> and install without restart</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hJs3xncPq6ltul01.jpg" /><figcaption>Plugin Manager</figcaption></figure><p><strong>4. Go to Manage Jenkins -&gt; Global Tool Configuration -&gt; Git</strong></p><p>Add git executable path to Global Tool Configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AJ_vb37b6zNxrk3gyYd6iA.png" /><figcaption>Global tool configurations</figcaption></figure><p>Let us start with creating a Freestyle Project :</p><p><strong>Step 1:</strong> <strong>Go to New Item -&gt; create a freestyle project</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IJLSdbt-Ia-BS3pjWdJPUQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OOzt0LNzxDZd8o5uTGuM0A.png" /><figcaption>Creating a freestyle project</figcaption></figure><p><strong>Step 2:</strong> Go to <strong>Configure, </strong>add a project description, and Github project URL.</p><p><strong>Step 3:</strong> In<strong> Source Code Management </strong>tab select on <strong>Git</strong>, add your Github repository URL and click Add button to save your GitHub credentials.</p><p><strong>Save and click build </strong>to make sure everything is right till here and your project is successfully building.</p><p><strong>step 4:</strong> In <strong>Build Triggers</strong> select <strong>GitHub hook trigger for GITScm polling.</strong> When Jenkins will receive PUSH GitHub hook, it will trigger Git SCM polling logic which will start a new Jenkins build, with the updated code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GDpDlSZEVy9qMnBU5Pryjg.png" /><figcaption>Build Triggers</figcaption></figure><blockquote>We use <a href="https://ngrok.com/download"><strong><em>ngrok</em></strong></a><strong><em> </em></strong>to expose local jenkins to the internet, so that github can send the webhooks.</blockquote><p><strong>Step 5:</strong> <strong>Go to your Github repo -&gt; settings -&gt; webhooks</strong></p><p>Add public URL of your tunnel as <strong>Payload URL, </strong>it will tell Github where to send the webhooks as below:</p><pre>https://0584fb6b.ngrok.io/github-webhook/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jdYBxbCCVpr2aT4yzpONBw.png" /></figure><p><strong>step 6: </strong>Finally<strong> </strong>add your build steps in the <strong>Build</strong> tab and save.</p><p>That’s all! Now whenever any change is pushed, a new Jenkins build will be triggered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*Piks8Tu6xUYpF4DU" /></figure><p><strong>Join our community Slack and read our weekly Faun topics ⬇</strong></p><figure><a href="https://www.faun.dev/join/?utm_source=medium.com%2Ffaun&amp;utm_medium=medium&amp;utm_campaign=faunmediumbanner"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oSdFkACJxs5iy1oR" /></a></figure><h4>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52d4361542d4" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/triggering-jenkins-build-on-push-using-github-webhooks-52d4361542d4">Triggering Jenkins build on push using GitHub webhooks</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Angular 2 component to fetch Geo-location]]></title>
            <link>https://medium.com/thecodinghouse/an-angular-2-component-to-fetch-geo-location-adde33d4c7db?source=rss-51662df0117d------2</link>
            <guid isPermaLink="false">https://medium.com/p/adde33d4c7db</guid>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[geolocation]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Parul Dixit]]></dc:creator>
            <pubDate>Tue, 29 Mar 2016 12:42:20 GMT</pubDate>
            <atom:updated>2016-03-29T12:42:20.102Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*3It6Um9bEgN0fvgBPA4MVw.png" /><figcaption>source : angular.io</figcaption></figure><blockquote>In order to get Geo-location from the browser we have to write custom SDK wrapping code each time we make HTML5 or Google API calls. While working on a project at <a href="https://github.com/tixdo"><strong>TixDo</strong></a> we faced the same problem and the solution we developed, is <strong>ng2-location </strong>component.</blockquote><p><strong>ng2-location </strong>is an Angular 2 component for fetching current Geo-location. This component aims to provide a quick and easy way to consume Geo-location information made available by modern browsers in Angular 2 apps. Apart from this it also have a <a href="https://angular.io/docs/ts/latest/guide/dependency-injection.html">Injectable()</a> service <em>i.e</em> <strong><em>EmitterService </em></strong>created to emit and receive the Geo location data in the form of a interface <strong><em>Location </em></strong>which is stored in the local storage.</p><h3><strong>How to use -</strong></h3><p><strong>ng2-location </strong>component is a fully integrated and self-sustained component.</p><ol><li>Go to the <a href="https://github.com/tixdo/ng2-location">link</a> and download the zip package.</li><li>Unzip this package and add the component <em>“</em><strong><em>ng2-location</em></strong><em>”</em> to your existing angular 2 app.</li><li>To load <strong>ng2-location </strong>component use <strong><em>&lt;ngLocation&gt;&lt;/ngLocation&gt;</em></strong><br>selector in view of any component, also don’t forget to import “<strong><em>ngSelectLocation”</em></strong> and “<strong><em>EmitterService”</em></strong> in that component.</li><li>Include <strong><em>EmitterService </em></strong>in providers and register <strong><em>ngSelectLocation </em></strong>in directives.</li></ol><h3><strong>Example -</strong></h3><p>The following piece of code shows a working example of <strong>ng2-location </strong>component:</p><pre>import {Component, OnInit} from ‘angular2/core’;<br>import {ngSelectLocation, EmitterService} from ‘./components/ng2-location/browser-location’;</pre><pre><a href="http://twitter.com/Component">@Component</a>({<br> selector: ‘seed-app’,<br> providers: [EmitterService],<br> directives: [ngSelectLocation],<br> template: `<br> &lt;ngLocation&gt;&lt;/ngLocation&gt;<br> ` <br>})</pre><pre>export class SeedApp implements OnInit{<br> public selectedCity:any;<br> constructor(private EmitterService: EmitterService) {<br> window.localStorage.removeItem(“city”);<br> }</pre><pre>ngOnInit(){<br> this.selectedCity = localStorage.getItem(‘city’);<br> EmitterService.get(“selectedCity”).subscribe(data =&gt;{<br> this.selectedCity = data;<br> localStorage.setItem(‘city’, data);<br> });<br> }<br>}</pre><p>In our example we have also implemented <a href="https://angular.io/docs/ts/latest/guide/lifecycle-hooks.html">ngOnInIt()</a> life-cycle hook of angular 2 component to get the city name from local storage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adde33d4c7db" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thecodinghouse/an-angular-2-component-to-fetch-geo-location-adde33d4c7db">An Angular 2 component to fetch Geo-location</a> was originally published in <a href="https://medium.com/thecodinghouse">Thecodinghouse</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>