Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Vue.js Quick Start Guide

You're reading from   Vue.js Quick Start Guide Learn how to build amazing and complex reactive web applications easily using Vue.js

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781789344103
Length 186 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ajdin Imsirovic Ajdin Imsirovic
Author Profile Icon Ajdin Imsirovic
Ajdin Imsirovic
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Introducing Vue 2. Basic Concepts of Vue 2 FREE CHAPTER 3. Working with Vue-CLI, Components, Props, and Slots 4. Filters and Mixins 5. Making Your Own Directives and Plugins 6. Transitions and Animations 7. Using Vuex 8. Using Nuxt.js and Vue-Router 9. Other Books You May Enjoy

Installing Nuxt.js and previewing the default project


To serve different routes, in the background Nuxt.js uses Vue-router. To keep things simple, we'll focus on using Nuxt.js.

There are a few ways to get started with Nuxt.js. One option is via the vue init command. Another one is with a practice that is common, which is the create-nuxt-app command, similar to create-elm-app or create-react-app.

Installing Nuxt.js with the vue init command

Let's begin by finding a location on our drive to save our new Nuxt app, and then use the vue init command to create it:

vue init nuxt-community/stater-template chapter8

Running this command without vue init being installed might return the following message in the console:

Command vue init requires a global addon to be installed. 
Please run yarn global add @vue/cli-init and try again.

Hence, to rectify the issue, simply run this:

yarn global add @vue/cli-init

This will take some time, but ultimately we'll end up being able to run the vue init command: 

vue init...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ÂŁ16.99/month. Cancel anytime