Book Image

Vue.js 3 Cookbook

By : Heitor Ramon Ribeiro
Book Image

Vue.js 3 Cookbook

By: Heitor Ramon Ribeiro

Overview of this book

Vue.js is a progressive web framework for building professional user interfaces for your web applications. With Vue.js 3, the frontend framework is reinforced with architectural enhancements, new base languages, new render processes, and separated core components. The book starts with recipes for implementing Vue.js 3’s new features in your web development projects and migrating your existing Vue.js apps to the latest version. You will get up and running with TypeScript with Vue.js and find succinct solutions to common challenges and pitfalls faced in implementing components, derivatives, and animation, through to building plugins, adding state management, routing, and developing complete single-page applications (SPAs). As you advance, you'll discover recipes to help you integrate Vue.js apps with Nuxt.js in order to add server-side rendering capabilities to your SPAs. You'll then learn about the Vue.js ecosystem by exploring modern frameworks such as Quasar, Nuxt.js, Vuex, and Vuetify in your web projects. Finally, the book provides you with solutions for packaging and deploying your Vue.js apps. By the end of this Vue.js book, you'll be able to identify and solve challenges faced in building Vue.js applications and be able to adopt the Vue.js framework for frontend web projects of any scale.
Table of Contents (13 chapters)
5
Fetching Data from the Web via HTTP Requests
6
Managing Routes with vue-router
7
Managing the Application State with Vuex
11
Directives, Plugins, SSR, and More
Vue

To get the most out of this book

Vue 3 beta was the version available at the time of writing this book. All the code will be updated with the final release on the GitHub repository here: https://github.com/PacktPublishing/Vue.js-3.0-Cookbook

You will need Node.js 12+ installed, Vue CLI updated to the latest version, and a good code editor of some sort. Other requirements will be introduced in each recipe. All the software requirements are available for Windows, macOS, and Linux.

To develop mobile applications for iOS, you need a macOS machine to get access to Xcode and the iOS simulator. Here's a table summarizing all the requirements:

Software/hardware covered in the book

OS requirements

Vue CLI 4.X

Windows / Linux / macOS

TypeScript 3.9.X

Windows / Linux / macOS

Quasar-CLI 1.X

Windows / Linux / macOS

Nuxt-CLI 3.X.X

Windows / Linux / macOS

Visual Studio Code 1.4.X and IntelliJ WebStorm 2020.2

Windows / Linux / macOS

Netlify-CLI

Windows / Linux / macOS

Vercel-CLI

Windows / Linux / macOS

Firebase-CLI

Windows / Linux / macOS

Node.js 12+-

Windows / Linux / macOS

Python 3

Windows / Linux / macOS

Xcode 11.4 and iOS Simulator

macOS

If you are using the digital version of this book, we advise you to type the code yourself or access the code via the GitHub repository (link available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.