<?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[Simple JS - Medium]]></title>
        <description><![CDATA[Simple yet Powerful JS tools &amp; APIs, to develop applications faster. - Medium]]></description>
        <link>https://medium.com/simplejs?source=rss----d3a2af331f68---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Simple JS - Medium</title>
            <link>https://medium.com/simplejs?source=rss----d3a2af331f68---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 04:59:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/simplejs" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Beginner's guide on Vite, fastest dev environment for VueJS]]></title>
            <link>https://medium.com/simplejs/beginners-guide-on-vite-fastest-dev-environment-for-vuejs-29dd0aa5b004?source=rss----d3a2af331f68---4</link>
            <guid isPermaLink="false">https://medium.com/p/29dd0aa5b004</guid>
            <category><![CDATA[vue]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[vites]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[hot-module-replacement]]></category>
            <dc:creator><![CDATA[Pulkit Aggarwal]]></dc:creator>
            <pubDate>Mon, 01 Jun 2020 02:59:45 GMT</pubDate>
            <atom:updated>2020-06-01T03:08:25.221Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are a JavaScript Developer, you must have worked with Grunt, Gulp, Webpack, and other traditional tools to build &amp; bundle the whole application codebase. We have a new similar tool Vite, which can drastically reduce our development time, by refreshing the dev-server as soon as you blink your eye. Interesting? Let us understand it deeply…</p><h3>What the hack is Vite?</h3><p>Well, <em>Vite</em> is a french word meaning ‘<em>quickly’ or ‘fast’</em> and pronounced as ‘<em>Vit’.</em></p><blockquote><em>“The world is already moving fast, so why not our development” — Evan You.</em></blockquote><p>While working on Vue3, Evan thinks of a solution for a major problem, we had since starting of the web. He decided to make web development, as quickly as possible and started innovating the Vite. This is still experimental, but the community is intended to make it suitable for production.</p><h4>The Detailed Definition</h4><p>Vite is a no bundler DEV environment for Vue.js, created by Evan You. Vite serves your code via native ES Module imports during development, allowing you to develop Vue.js single file components without bundling them. Vite also bundles it with <a href="https://rollupjs.org/">Rollup</a> for a production build.</p><h4>Will it only work with VueJS?</h4><p>While Vite is primarily designed to work with Vue 3, it can also be used with other frameworks, including React, Preact &amp; other major frameworks.</p><h4>Key <a href="https://github.com/vitejs/vite#features">Features</a>:</h4><ol><li>Vite is Lightning fast cold server start by design.</li><li>Vite offers Instant hot module replacement (HMR).</li><li>Vite offers True on-demand compilation.</li><li>Compatible with any native ES Module.</li><li>Future for next-level web-development.</li></ol><h3>How Vite Works?</h3><p>Primarily Vue developers are using Vue CLI <em>(includes </em><a href="https://webpack.js.org/"><em>Webpack </em></a><em>internally)</em> to compile their projects during development and for production. <br>This comes with a few disadvantages:</p><ol><li>You have to wait until your entire app to be bundled to start developing. This can make the cold server start very slow, especially for larger projects.</li><li>Larger projects can also suffer from slow Hot Module Replacement (HMR).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KZRqz_mWLw5OqfSUddA-Rg.png" /><figcaption>Dev server keeps reloading for every single change or file-save</figcaption></figure><p>Vite tackles these issues by <strong>compiling code on-demand</strong>, only compiling the code imported on the current screen and HMR performance is decoupled from the total number of modules, making HMR consistently fast no matter how big your app is. The resultant page reloads as quickly as you blink your eye.</p><h3>Let’s Bootstrap a Vite Powered Application</h3><p>To get started with Vite, you need not to clone any particular boilerplate. Simply open your terminal and navigate to your project directory. From here run the Vite create command:</p><pre>npx create-vite-app &lt;project-name&gt;</pre><blockquote><a href="https://www.educative.io/edpresso/what-is-npx"><strong>NPX</strong> </a>is an NPM package runner that makes it really easy to install any sort of node executable that would have normally been installed using NPM.</blockquote><p>Change directory to the project:</p><pre>cd &lt;project-name&gt;</pre><p>and install the node modules:</p><pre>npm install</pre><p>You can then start the Vite Dev environment by running:</p><pre>npm run dev</pre><p>Your new Vite powered Vue 3 application should be running in<a href="http://localhost:3000/"> localhost:3000</a></p><h4>What’s Next?</h4><p>Your dev environment is properly configured with minimal packages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tcWNd1XdeCaaM3R2TdaH4A.png" /><figcaption>Default package.json file, with Vue-3 as the only dependency</figcaption></figure><p>Now you can start developing your application as you were doing with Vue3. The output will get HMR as soon as you change any code. Hit save and watch your changes instantly appear in the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NVszvuVeW-9wL8sM" /><figcaption>Speed up your development as fast as you can !!</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29dd0aa5b004" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplejs/beginners-guide-on-vite-fastest-dev-environment-for-vuejs-29dd0aa5b004">Beginner&#39;s guide on Vite, fastest dev environment for VueJS</a> was originally published in <a href="https://medium.com/simplejs">Simple JS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detect the user’s device type with a simple JavaScript check.]]></title>
            <link>https://medium.com/simplejs/detect-the-users-device-type-with-a-simple-javascript-check-4fc656b735e1?source=rss----d3a2af331f68---4</link>
            <guid isPermaLink="false">https://medium.com/p/4fc656b735e1</guid>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[responsive-web-design]]></category>
            <category><![CDATA[user-agent]]></category>
            <dc:creator><![CDATA[Pulkit Aggarwal]]></dc:creator>
            <pubDate>Fri, 05 Jul 2019 12:50:21 GMT</pubDate>
            <atom:updated>2019-07-05T13:02:41.015Z</atom:updated>
            <content:encoded><![CDATA[<p>We do our best to design and code websites so that they look and perform the way they should regardless of device or browser, but the truth is sometimes we need to code for specific device, browser, or crawler. Whether it’s a quick hack or a simply wanting to display different content for a given device, we eventually need that information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*rlETrBWa9zpjW9ZpkHlqEA.gif" /></figure><p>All major browser provides a very useful API to know the user’s device and the browser details.</p><pre>window.navigator.userAgent</pre><p>We can use this API-result in many ways.</p><p>The same browser-API can be used to identify the browser-type and thus identify the user’s device type ( mobile / tablet / desktop).</p><h4>Regex Solution:</h4><p>Here we have a very small function to detect, whether user is from a mobile device or not:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/90a5fa43fbc75e19f57d9c3596b835d7/href">https://medium.com/media/90a5fa43fbc75e19f57d9c3596b835d7/href</a></iframe><p>this function do consider all the cases and mobile-devices so that it will always works.<br>Here is another function to detect touch-enabled devices(for mobile or tablet)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68dbae9645754d83e6ae8e8688690fed/href">https://medium.com/media/68dbae9645754d83e6ae8e8688690fed/href</a></iframe><p>This solution is based on mobile-phone detection algorithm of <a href="http://detectmobilebrowsers.com/">http://detectmobilebrowsers.com/</a></p><h4>ReactJS Solution:</h4><p>We can achieve this even more simpler, using <a href="https://www.npmjs.com/package/react-device-detect">this NPM package.</a><br>This package is itself a wrapper based on the same browser-API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*zbXrDqP_flGvdh6x9r2Rog.jpeg" /><figcaption>Know your user’s details in very simple JavaScript way</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fc656b735e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplejs/detect-the-users-device-type-with-a-simple-javascript-check-4fc656b735e1">Detect the user’s device type with a simple JavaScript check.</a> was originally published in <a href="https://medium.com/simplejs">Simple JS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy static files (HTML/CSS/JS) on Heroku]]></title>
            <link>https://medium.com/simplejs/deploy-static-files-on-heroku-7e55e01a5df9?source=rss----d3a2af331f68---4</link>
            <guid isPermaLink="false">https://medium.com/p/7e55e01a5df9</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Pulkit Aggarwal]]></dc:creator>
            <pubDate>Fri, 21 Sep 2018 19:08:23 GMT</pubDate>
            <atom:updated>2019-07-04T10:35:57.778Z</atom:updated>
            <content:encoded><![CDATA[<p>Heroku is primarily aimed to serve the server level requirements. In general, Heroku support to deploy only these type of applications:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tagmqxM7vKTGWTd6E8LLgw.png" /><figcaption>Supported build-packs on Heroku</figcaption></figure><p>Clearly, static files (defaults to index.html) can’t be served directly on Heroku. So we need to transform static web app into any of these supported web apps. The simplest alternative is to use Node.js environment.</p><p><strong>Here we have a better and simplest option to serve static files on Heroku.</strong></p><ol><li>Add package.json file in the root directory.</li><li>Add this code in your package.json file:</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc8f095204a617278550466ff6fbed6b/href">https://medium.com/media/fc8f095204a617278550466ff6fbed6b/href</a></iframe><p>3. That’s it. Your project is ready to be deployed on Heroku.</p><blockquote><em>serve</em> is a very minimal node package, that is used to serve static files on node server.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wkk2cJDfh3IhTLd-2TmDKQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e55e01a5df9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplejs/deploy-static-files-on-heroku-7e55e01a5df9">Deploy static files (HTML/CSS/JS) on Heroku</a> was originally published in <a href="https://medium.com/simplejs">Simple JS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to enable offline detection using simple browser APIs]]></title>
            <link>https://medium.com/simplejs/how-to-enable-offline-detection-using-simple-browser-apis-398b4989605a?source=rss----d3a2af331f68---4</link>
            <guid isPermaLink="false">https://medium.com/p/398b4989605a</guid>
            <category><![CDATA[traffic]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[offline]]></category>
            <category><![CDATA[light]]></category>
            <category><![CDATA[learnjs]]></category>
            <dc:creator><![CDATA[Pulkit Aggarwal]]></dc:creator>
            <pubDate>Tue, 21 Aug 2018 01:21:49 GMT</pubDate>
            <atom:updated>2018-08-21T01:34:29.528Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*DhcITtWN4x1CHGtt_IKolQ.png" /><figcaption>Notify users, that application has gone offline.</figcaption></figure><p>A Web app is highly dependant on the active internet. In the absence of internet, no transaction can be done with in the application. Thus it is very important to detect and inform the user, whenever application goes offline.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fpulkitsvm%2Fembed%2Fpreview%2FqMBoWe%3Fheight%3D600%26slug-hash%3DqMBoWe%26default-tabs%3Dcss%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io%26embed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2Fpulkitsvm%2Fpen%2FqMBoWe%3Feditors%3D0110&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fm.cdpn.io%2Fscreenshot-coming-soon-small.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/e0adc97d988f3771b529d5f6bf56cb9b/href">https://medium.com/media/e0adc97d988f3771b529d5f6bf56cb9b/href</a></iframe><pre>window.addEventListener(‘online’, updateOnlineStatus);<br>window.addEventListener(‘offline’, updateOnlineStatus);</pre><pre>function updateOnlineStatus(event) {<br>   var condition = navigator.onLine ? “online” : “offline”;<br>   document.body.className = condition;<br>}</pre><p>STEP 1. Add event listeners</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T7uxROYGOw68Fc2d9ENLKQ.jpeg" /><figcaption>A place to observe in the offline mode.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=398b4989605a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplejs/how-to-enable-offline-detection-using-simple-browser-apis-398b4989605a">How to enable offline detection using simple browser APIs</a> was originally published in <a href="https://medium.com/simplejs">Simple JS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Declare Global constants with Babel ES6]]></title>
            <link>https://medium.com/simplejs/declare-global-constants-with-babel-es6-f2712c9bbd39?source=rss----d3a2af331f68---4</link>
            <guid isPermaLink="false">https://medium.com/p/f2712c9bbd39</guid>
            <category><![CDATA[modules]]></category>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Pulkit Aggarwal]]></dc:creator>
            <pubDate>Sun, 19 Aug 2018 23:52:58 GMT</pubDate>
            <atom:updated>2018-08-20T00:17:43.491Z</atom:updated>
            <content:encoded><![CDATA[<p>In modern web applications, there are multiple ways to declare and use the global constants. But if you using Babel (or any other JS Transpiler), you can manage these constants in a very easy and efficient way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*pbXYAlIDqT_MH1dpT0fe0g.png" /></figure><h3>Why to use a constant?</h3><p>The main reason to use a constant is for safer and cleaner code. <br><strong>Use case:</strong> A literal / object or property being used several times within the application and is fixed.</p><h3>Simplest way to declare constants</h3><p><strong>STEP 1: Create a constants.js file<br></strong>Declare your constants in a JSON key:pair object inside module.exports which will export all the constants, that can be import anywhere.</p><pre><strong>module.exports </strong>= {<br>    API_BASE_URL: ‘https://api.xyz.com/&#39;,<br>    APP_VERSION: ‘2.3.0’,<br>    APP_ENVIRONMENT: ‘Production&#39;,<br>    ...<br>};</pre><p><strong>STEP 2: Import the desired constant pair<br></strong>Now, wherever we need to use these constants, we can simply import them and use directly.</p><pre>import <strong>{ API_BASE_URL , APP_VERSION }</strong> from “../path/to/constants.js”</pre><pre>...<br>console.log( APP_VERSION ); // will log the constant&#39;s value.</pre><p>If we need to use multiple constants in a same file, this will be preferred to import all at once:</p><pre>import <strong>C</strong> from “../path/to/constants.js”</pre><pre>...<br>console.log( C.APP_VERSION );<br>console.log( C.APP_ENVIRONMENT );</pre><h3>Points to remember</h3><ol><li>A global configuration can declared using this way.</li><li>Constants are not in replace of store/s. Store/s are variables, which can even change their values and the concept is entirely different from constants.</li><li>It is not mandatory to use a constant name in UPPER_CASE, while it is recommended, to distinguish them from variables.</li></ol><h3>Other ways to declare global constants</h3><p>There are many other ways, to achieve the same, while they aren’t recommended.</p><ol><li>By adding value to the localStorage/ sessionStorage:</li></ol><pre>window.localStorage.setItem( “APP_VERSION” , ’2.3.0’ )<br>...<br>console.log( window.localStorage.getItem( &quot;APP_VERSION&quot; ) );</pre><p>2. By allocating it to the DOM:</p><pre>window.API_VERSION = ‘2.3.0’<br>…<br>console.log( window.API_VERSION );</pre><p>3. By passing it down to every component.</p><pre>&lt;ComponentName API_VERSION=’2.3.0’ /&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2712c9bbd39" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplejs/declare-global-constants-with-babel-es6-f2712c9bbd39">Declare Global constants with Babel ES6</a> was originally published in <a href="https://medium.com/simplejs">Simple JS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transform a Web App into Progressive Web App in easy simple steps.]]></title>
            <link>https://medium.com/simplejs/transform-a-web-app-into-progressive-web-app-in-easy-simple-steps-af5c650cb3eb?source=rss----d3a2af331f68---4</link>
            <guid isPermaLink="false">https://medium.com/p/af5c650cb3eb</guid>
            <dc:creator><![CDATA[Pulkit Aggarwal]]></dc:creator>
            <pubDate>Thu, 02 Aug 2018 09:42:03 GMT</pubDate>
            <atom:updated>2018-08-02T10:36:53.971Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GDxaQqKJ_hVwUF5oPQO-rw.jpeg" /><figcaption>Single App for all the Devices.</figcaption></figure><p><strong><em>PWA in a nutshell:</em></strong></p><ul><li><strong><em>Reliable : </em></strong><em>Fast loading and works offline</em></li><li><strong><em>Fast : </em></strong><em>Smooth Animations, jank free scrolling and seamless navigation even on flaky networks</em></li><li><strong><em>Engaging</em></strong><em> </em><strong><em>:</em></strong><em> Launched from home screen and can receive push notification</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6BkyFi5At-_qn8mwZyn7ZQ.png" /><figcaption>Transformation of a Web App into Progressive Web App</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af5c650cb3eb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplejs/transform-a-web-app-into-progressive-web-app-in-easy-simple-steps-af5c650cb3eb">Transform a Web App into Progressive Web App in easy simple steps.</a> was originally published in <a href="https://medium.com/simplejs">Simple JS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple State management using MobX]]></title>
            <link>https://medium.com/simplejs/simple-state-management-using-mobx-595b2b90f076?source=rss----d3a2af331f68---4</link>
            <guid isPermaLink="false">https://medium.com/p/595b2b90f076</guid>
            <category><![CDATA[mobx]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Pulkit Aggarwal]]></dc:creator>
            <pubDate>Fri, 13 Jul 2018 12:13:41 GMT</pubDate>
            <atom:updated>2018-07-13T12:48:59.569Z</atom:updated>
            <content:encoded><![CDATA[<p>MobX is a battle tested library that makes state management simple and scalable by transparently applying functional reactive programming (TFRP). The philosophy behind MobX is very simple:</p><blockquote><em>Anything that can be derived from the application state, should be derived. Automatically.</em></blockquote><p>which includes the UI, data serialization, server communication, etc.</p><blockquote>`Half the code, twice the fun` is how people describe MobX</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W30WDoSgLxkJ-104IRy0Eg.png" /></figure><h3>Core concepts</h3><p>MobX has only a few core concepts which are inter-related with each other.</p><ol><li><strong>Observable State</strong></li><li><strong>Computed Values</strong></li><li><strong>Reactions<br></strong>- eg. Update React Components<br>- check <a href="https://github.com/mobxjs/mobx/blob/gh-pages/docs/best/react.md">understanding what MobX reacts to</a>.</li><li><strong>Actions</strong></li></ol><h3>MobX: Simple and scalable</h3><p>MobX is one of the least obtrusive libraries you can use for state management. That makes the MobXapproach not just simple, but very scalable as well:</p><ol><li>Using classes and real references</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=595b2b90f076" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplejs/simple-state-management-using-mobx-595b2b90f076">Simple State management using MobX</a> was originally published in <a href="https://medium.com/simplejs">Simple JS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get Start with VueJS, for absolute beginners]]></title>
            <link>https://medium.com/simplejs/get-start-with-vuejs-for-absolute-beginners-b658fd3399f5?source=rss----d3a2af331f68---4</link>
            <guid isPermaLink="false">https://medium.com/p/b658fd3399f5</guid>
            <category><![CDATA[getting-started]]></category>
            <category><![CDATA[vuejs]]></category>
            <dc:creator><![CDATA[Pulkit Aggarwal]]></dc:creator>
            <pubDate>Fri, 13 Jul 2018 12:13:25 GMT</pubDate>
            <atom:updated>2018-07-05T21:38:19.522Z</atom:updated>
            <content:encoded><![CDATA[<p>VueJS is most light weight and easy framework for JS beginners.</p><blockquote>VueJS is a hot topic right now, which isn’t terribly surprising. The developers behind VueJS have an open mind and while not always helpful, they joined the party late. VueJS has taken the good parts from other JS frameworks like Ember, React and Angular to create a framework that has the best features of each.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*XiB7Qa5442PQr9_mHIt0nw.jpeg" /></figure><h3>Machine Setup Instructions:</h3><p>Follow these steps to setup your machine for Vue Development. You may ignore individual step, if already done.</p><ol><li>download the NodeJS on your machine and install with default settings:<br><a href="https://nodejs.org/en/download/">https://nodejs.org/en/download/</a></li></ol><blockquote>NodeJS will ease the project management and provides a runtime to execute JavaScript directly in your terminal.</blockquote><p>2. Install Visual Studio Code:<br><a href="https://code.visualstudio.com/download">https://code.visualstudio.com/download</a></p><blockquote>A Free and most light weight IDE to write and manage the code for Frontend Development.</blockquote><p>3. Open CMD or Terminal. Install Vue-Cli:<br>npm install -g @vue/cli<br> npm install -g @vue/cli-service-globals<br> <br>npm is Node Package Manager, installed with node and used to manage the dependencies for your project.</p><blockquote>Vue-CLI is a full system for rapid Vue.js development.</blockquote><h3>Bootstrap your Project:</h3><p>There are two simple ways to create a VueJS Project.</p><h3>1. Using Vue-CLI:</h3><ol><li>Move into a folder, where you wish to start your project. (using ‘cd ../../’)</li><li>vue create projectname | To create a new Vue Project with name.</li><li>cd projectname/ | To move into new created folder.</li><li>npm install | To install various dependancies.</li><li>vue serve OR npm run serve | To serve the project locally.</li><li>Open: <a href="http://localhost:8000/">http://localhost:8080</a> | To check live preview.</li><li>Run: vue build | To build optimised version of compiled Vue project. (Ready for Deployment: public/folder)</li></ol><h3>2. Using the GUI</h3><p>Vue CLI may be little typical. Let do all this in a more simple way. You can also create and manage projects using a graphical interface with the vue ui command.</p><p>The above command will open a browser window with a GUI that guides you through the project creation process.</p><p>Open: <a href="http://localhost:8000/">http://localhost:8000</a>/project/create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tEVnjxp5w2y3S1SXHilZ-Q.png" /></figure><h3>Get Organise your project:</h3><ol><li>Open the project folder with VScode. (preferred )</li><li>Look at files structure: src/folder is of your use.</li><li>Install this VScode extension for better workout on .vue files.<br><a href="https://marketplace.visualstudio.com/items?itemName=octref.vetur">https://marketplace.visualstudio.com/items?itemName=octref.vetur</a></li><li>Open Integrated terminal in VScode. (preferred )<br>Follow these step to open the terminal:<br><a href="https://code.visualstudio.com/docs/editor/integrated-terminal">https://code.visualstudio.com/docs/editor/integrated-terminal</a><br>Shortcut: CTRL + ~</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b658fd3399f5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simplejs/get-start-with-vuejs-for-absolute-beginners-b658fd3399f5">Get Start with VueJS, for absolute beginners</a> was originally published in <a href="https://medium.com/simplejs">Simple JS</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>