{"id":82,"date":"2019-02-28T09:59:15","date_gmt":"2019-02-28T09:59:15","guid":{"rendered":"https:\/\/www.samarthya.me\/wps\/?p=82"},"modified":"2019-02-28T10:00:54","modified_gmt":"2019-02-28T10:00:54","slug":"creating-your-app-with-vuejs","status":"publish","type":"post","link":"https:\/\/blog.samarthya.me\/wps\/2019\/02\/28\/creating-your-app-with-vuejs\/","title":{"rendered":"Creating your app with VUEJS"},"content":{"rendered":"<p>This is my attempt at learning a new framework and using it to create my own webapp uing vueJS.<\/p>\n<blockquote><p>Vue is a progressive and reactive framework for building user interfaces.<\/p><\/blockquote>\n<p>The things I need is first<\/p>\n<h2>VUE-CLI<\/h2>\n<blockquote><p>npm install -g @vue\/cli<\/p><\/blockquote>\n<p>You can test the installation was successful or not by issuing <em>vue &#8211;version command. <\/em>In my case it is returning<em> 3.4.1. <\/em>Vue CLI uses a plugin based architecture<\/p>\n<h2>Creating a new application<\/h2>\n<p>I am going to create a single landing page for my application as the first step and keep adding to it as I go along so first step what all options do I have<\/p>\n<h3>vue &#8211;help<\/h3>\n<p>It returns a standard help output identifying the common commands you can use.<\/p>\n<pre>Commands:\r\ncreate [options] &lt;app-name&gt; create a new project powered by vue-cli-service\r\nadd [options] &lt;plugin&gt; [pluginOptions] install a plugin and invoke its generator in an already created project\r\ninvoke [options] &lt;plugin&gt; [pluginOptions] invoke the generator of a plugin in an already created project\r\ninspect [options] [paths...] inspect the webpack config in a project with vue-cli-service\r\nserve [options] [entry] serve a .js or .vue file in development mode with zero config\r\nbuild [options] [entry] build a .js or .vue file in production mode with zero config\r\nui [options] start and open the vue-cli ui\r\ninit [options] &lt;template&gt; &lt;app-name&gt; generate a project from a remote template (legacy API, requires @vue\/cli-init)\r\nconfig [options] [value] inspect and modify the config\r\nupgrade [semverLevel] upgrade vue cli service \/ plugins (default semverLevel: minor)\r\ninfo print debugging information about your environment\r\n\r\nRun vue &lt;command&gt; --help for detailed usage of given command.\r\n\r\n<\/pre>\n<h3>vue create &#8211;help<\/h3>\n<pre>Usage: create [options] &lt;app-name&gt;\r\n\r\ncreate a new project powered by vue-cli-service\r\n\r\nOptions:\r\n-p, --preset &lt;presetName&gt; Skip prompts and use saved or remote preset\r\n-d, --default Skip prompts and use default preset\r\n-i, --inlinePreset &lt;json&gt; Skip prompts and use inline JSON string as preset\r\n-m, --packageManager &lt;command&gt; Use specified npm client when installing dependencies\r\n-r, --registry &lt;url&gt; Use specified npm registry when installing dependencies (only for npm)\r\n-g, --git [message] Force git initialization with initial commit message\r\n-n, --no-git Skip git initialization\r\n-f, --force Overwrite target directory if it exists\r\n-c, --clone Use git clone when fetching remote preset\r\n-x, --proxy Use specified proxy when creating project\r\n-b, --bare Scaffold project without beginner instructions\r\n-h, --help output usage information\r\n\r\n<\/pre>\n<p>I will create my application by the name samarthya just to see how it works.<\/p>\n<h3>vue create samarthya<\/h3>\n<p>The moment you issue this command in the terminal you will be prompted to select some options choose the default and press enter<\/p>\n<p>&nbsp;<\/p>\n<h3>npm run serve<\/h3>\n<p>The last step to execute and see the application is to run this command npm run serve as open the localhost:8080 in browser and you can see your boiler plate application running.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is my attempt at learning a new framework and using it to create my own webapp uing vueJS. Vue is a progressive and reactive framework for building user interfaces. The things I need is first VUE-CLI npm install -g @vue\/cli You can test the installation was successful or not by issuing vue &#8211;version command. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":84,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[10],"class_list":["post-82","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-others","tag-vue"],"_links":{"self":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":0,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/media\/84"}],"wp:attachment":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}