<?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 Kausar Ahmed Pial on Medium]]></title>
        <description><![CDATA[Stories by Kausar Ahmed Pial on Medium]]></description>
        <link>https://medium.com/@kausarpial?source=rss-b0a366dc7046------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1k6G76Ao_sfJ94XxqGwiuw.jpeg</url>
            <title>Stories by Kausar Ahmed Pial on Medium</title>
            <link>https://medium.com/@kausarpial?source=rss-b0a366dc7046------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 15:14:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kausarpial/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[Implementing Axios in VueJS]]></title>
            <link>https://medium.com/invariant-telecom/implementing-axios-in-vuejs-a3ce5bf288eb?source=rss-b0a366dc7046------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3ce5bf288eb</guid>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[axios]]></category>
            <category><![CDATA[vue]]></category>
            <dc:creator><![CDATA[Kausar Ahmed Pial]]></dc:creator>
            <pubDate>Mon, 14 Jan 2019 12:12:28 GMT</pubDate>
            <atom:updated>2019-01-15T04:52:45.651Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B3msAUseAdo15RVvtdHKzw.jpeg" /><figcaption>Vue+Axios</figcaption></figure><h3>Install Axios</h3><p><a href="https://github.com/axios/axios">Axios</a> is a promise based HTTP client for the browser &amp; node.js. To add axios to your vuejs app, run following command using npm</p><pre>$ npm install axios</pre><h3>Configure .env file</h3><p>Create a .env file on your app root folder and add an environment variable for base API URL like following</p><pre>// Base API url variable<br>VUE_APP_BASE_API=YOUR_API_URL</pre><p>The VUE_APP_ prefix is important to the variables. The variables without the prefix won’t be available in your app. <a href="https://alligator.io/author/daniel-schmitz">Daniel Schmitz</a> discussed <a href="https://alligator.io/vuejs/working-with-environment-variables/">Working with Environment Variables in Vue.js</a> on <a href="https://alligator.io/">Alligator.io</a> in details. You can read the article to know more about Environment Variables.</p><p>*Note: If you already have a .env file on your app then add the variable to your file.</p><h3>Create an Axios instance</h3><p>Now it’s time to create an axios instance with your preferences. Create a axios.config.js file in your src directory.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/837b87b9186849c761413fc069ddae00/href">https://medium.com/media/837b87b9186849c761413fc069ddae00/href</a></iframe><p>If API needs authorization header(Bearer token) and you store the token on local storage then modify axios.config.js like below</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c85f71132f346dac88fcfe620f9148f1/href">https://medium.com/media/c85f71132f346dac88fcfe620f9148f1/href</a></iframe><p>*Note: You can make your configuration as you want. And the <a href="https://github.com/axios/axios#request-config">documentation</a> of axios can help you more about that.</p><h3>Use axios on vue with existing config</h3><p>Now import axios from axios.config.js on your existing vue or where you want to use axios</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/922242c0dc6a9ec53aa3659e58579620/href">https://medium.com/media/922242c0dc6a9ec53aa3659e58579620/href</a></iframe><p>Now you can get post put delete with axios without repeating the base API URL.</p><p>Happy Coding 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3ce5bf288eb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/invariant-telecom/implementing-axios-in-vuejs-a3ce5bf288eb">Implementing Axios in VueJS</a> was originally published in <a href="https://medium.com/invariant-telecom">Invariant Telecom</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Story of My First Project using Vue JS]]></title>
            <link>https://medium.com/invariant-telecom/story-of-my-first-project-using-vue-js-26c74f6b1681?source=rss-b0a366dc7046------2</link>
            <guid isPermaLink="false">https://medium.com/p/26c74f6b1681</guid>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[vue]]></category>
            <dc:creator><![CDATA[Kausar Ahmed Pial]]></dc:creator>
            <pubDate>Sun, 02 Dec 2018 09:37:05 GMT</pubDate>
            <atom:updated>2018-12-02T09:37:05.909Z</atom:updated>
            <content:encoded><![CDATA[<h3>Story of My First Project Using Vue JS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*vluX808nZPX-CbvGaOec3A.jpeg" /></figure><h4><strong>Introduction to Vue</strong></h4><p>When I joined my new office Invariant Telecom, I didn’t have much experience with any front-end framework like Vue, Angular or React. My knowledge then was limited to jQuery only. But since this company prefers to build all their web apps based on VueJS, my principal duty here was to solve the problem in the ongoing project using VueJS. So it was a challenge for me to work on this project as I had to learn the framework first and then use the new knowledge to solve complex problems.</p><h4>Motivation to learn</h4><p>As I mentioned above, I was a novice in Vue and had to adopt this new technology within a short time period. So I felt I should find some motivation and discover something interesting about Vue which will push me to learn more about it. Then I started to watch the VueJS conferences online and utilize my daily commute time by listening to VueJS podcasts. It worked for me very well.</p><h4>About the project</h4><p>The project I was working on was a single page dashboard application that retrieves and provides data using API. Its purpose was to create users, manage them and display various reports using charts.</p><h4>Learned during completion</h4><p>VueJS is a progressive and reactive framework that helps to build single page applications. First I went through the VueJS official documentation and tried to grasp an overview of the framework. And this documentation proved to be extremely beneficial for me since it explained the core functionality with ease. Then I practiced some real-life projects to gain confidence in VueJS. While working on those projects, I learned about many Vue elements including instance, templating, binding, event handling, component, props, slots, transitions etc. Then I started to contribute to the main project confidently.</p><p>Meanwhile, I gathered knowledge about the Vue-Router and Vue-Resource as well.</p><h4>Resources that helped me</h4><ol><li>Vue Js Documentation — <a href="https://vuejs.org/v2/guide/">https://vuejs.org/v2/guide/</a></li><li>Vue JS Cheatsheet — <a href="https://vuejs-tips.github.io/cheatsheet/">https://vuejs-tips.github.io/cheatsheet/</a></li><li>VueConf EU Youtube — <a href="https://goo.gl/aMvDGR">https://goo.gl/aMvDGR</a></li><li>Views on Vue Podcast — <a href="https://devchat.tv/views-on-vue/">https://devchat.tv/views-on-vue/</a></li><li>Vue.js 2.0 In 60 Minutes by Traversy Media — <a href="https://goo.gl/BZUKwL">https://goo.gl/BZUKwL</a></li><li>Learn Vue 2 in 65 Minutes by DesignCourse — <a href="https://goo.gl/3ra3Tk">https://goo.gl/3ra3Tk</a></li><li>Vue Router — <a href="https://router.vuejs.org/">https://router.vuejs.org/</a></li><li>Vue Resource package — <a href="https://github.com/pagekit/vue-resource">https://github.com/pagekit/vue-resource</a></li><li>Vue JS 2 — The Complete Guide (incl. Vue Router &amp; Vuex) by Maximilian Schwarzmüller — <a href="https://www.udemy.com/vuejs-2-the-complete-guide/">https://www.udemy.com/vuejs-2-the-complete-guide/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26c74f6b1681" width="1" height="1" alt=""><hr><p><a href="https://medium.com/invariant-telecom/story-of-my-first-project-using-vue-js-26c74f6b1681">Story of My First Project using Vue JS</a> was originally published in <a href="https://medium.com/invariant-telecom">Invariant Telecom</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>