Getting Started With the Starter Template (Recommended)
If you do not wish to install Nuxt.js manually, you can install it via a starter template that the Nuxt Community has created. This starter template essentially does what is needed for the manual installation, but offers additional features like a middleware directory, a nuxt.config.js
file, a Vuex store, and more.
You can easily get started with Nuxt.js by using Vue CLI. Chapter 2: Scaffolding Projects With Vue CLI 3 went over installing Vue CLI 3. If you haven’t read that chapter, it’s recommended that you do. By default, Vue CLI 3 comes with the create
command. Create
is great when you need to start a project from scratch. However, with the Nuxt starter template, you don’t need to create a project from scratch. Instead, you just need to initialize a Vue.js project by downloading a template. For that, you need the init
command, which can be downloaded and activated via NPM.
Download the ‘init’...