What is Vue.js and how to get Started with it



WHAT IS VUE.JS ?

Have you ever came across the techonology named Vue and wondered what exactly it is? 

Vue js is an open source JavaScript framework for building the front end of your website. With the help of Vue, you can create modern looking Single Page Applications (SPA). A SPA have less loading time as compared to a normal website because the pages and components gets loaded all together at the start and that means, a user can navigate through the whole website without reloading the page and that saves quiet a lot of time and enhances the user experience aswell. 

Vue.js was developed by Evan You and it is written in JavaScript. It have a Model-View View-Model architecture. The MVVM architecture seperates the User interface with the back end functionalities of the website. 

The routing in Vue applications are done using the Vue Router libraries which we will discuss in later articles. 

Vue.js have a state management system which can be used for passing data along the components from a single store. Data passing to a from a component can be a hectic task without the used of stores. In Vue.js, state management is handles by Vuex libraries which will be discuessed in later articles. 



GETTING STARTED WITH VUE

For using Vue, you need to install the Vue CLI using your command prompt, but before that, make sure you have Node.js installed on your local computer because Vue relies on Node environment.

If you don't have Node.js installed. You can install it from here

After the Node installation is done, you can move forward and install Vue CLI, for that, open your command promopt and type
npm install @vue/cli -g
and that's it,  you can now use Vue anywhere in your computer. For an example, let us check the Vue version
for that you can type vue --version in your command prompt and it will show you the current vue version installed.

Time to create our first vue project.
Navigate to the directory where you want your project to be created and type
vue create [project_name]. For example vue create blog  and with this, your vue project will get created. In the process of creation, the CLI will ask you several questions to setup the project, just select what you want by pressing the navigation keys on your keyboard.

Have fun with your newly created Vue Project!

Comments

Popular posts from this blog

What is MVC Architecture ?

Getting started with Laravel | Laravel Part - I