Book Image

Vue.js 3 By Example

By : John Au-Yeung
Book Image

Vue.js 3 By Example

By: John Au-Yeung

Overview of this book

With its huge ecosystem and wide adoption, Vue is one of the leading frameworks thanks to its ease of use when developing applications. However, it can get challenging for aspiring Vue.js developers to make sense of the ecosystem and build meaningful applications. This book will help you understand how you can leverage Vue effectively to develop impressive apps quickly using its latest version – Vue 3.0. The book takes an example-based approach to help you get to grips with the basics of Vue 3 and create a simple application by exploring features such as components and directives. You'll then enhance your app building skills by learning how to test the app with Jest and Vue Test Utils. As you advance, you'll understand how to write non-web apps with Vue 3, create cross-platform desktop apps with the Electron plugin, and build a multi-purpose mobile app with Vue and Ionic. You'll also be able to develop web apps with Vue 3 that interact well with GraphQL APIs. Finally, you'll build a chat app that performs real-time communication using Vue 3 and Laravel. By the end of this Vue.js book, you'll have developed the skills you need to build real-world apps using Vue 3 by working through a range of projects.
Table of Contents (10 chapters)

What this book covers

Chapter 1, Creating Your First Application in Vue 3, will look at how to use Vue 3 to create simple apps. You will start by building the most basic apps and then move on to building more complex solutions.

Chapter 2, Building a Vue 3 Progressive Web App, will teach you how to create a GitHub Progressive Web App (PWA) with Vue 3. As you build the project, you will examine the inner workings of Vue apps by looking at the basic building blocks in depth. You will create Vue apps with components and will look at the parts that make up a component and how they work.

Chapter 3, Building a Slider Puzzle Game with Tests, will introduce you to Vue by having you create a simple game with Vue 3. You will learn how to use different methods, mixins, directives, and computed properties to be added to the project.

Chapter 4, Building a Photo Management Desktop App, will help you build a photo management desktop app with the Vue Electron plugin. You will learn how to build cross-platform desktop apps easily with Electron and Vue.

Chapter 5, Building a Multipurpose Calculator Mobile App with Ionic, will see you create a multi-purpose calculator mobile app with NativeScript. You will use Vuex to manage the state and save results data so that you can use it later in local storage. Finally, you will master currency conversions, unit conversions, and tips calculations.

Chapter 6, Building a Vacation Booking App with the PrimeVue UI Framework, will teach you how to create a travel booking app with admin functionality. The admin side will be a dashboard for users to manage bookings. It will involve using state management and routing to create a full-fledged app. The backend will be simple so that you can focus more on Vue. State management with Vuex and routing with Vue Router will also be required.

Chapter 7, Creating a Shopping Cart System with GraphQL, will help you create a Vue 3 app and use it with GraphQL APIs. You will learn how to use a GraphQL client within our Vue 3 app. The API will have queries, mutations, and database interactions, and you will learn how to create a GraphQL API with Express.

Chapter 8, Building a Chat App with Vue 3, Laravel, and Socket.IO, will teach you how to create a chat app with Vue 3, socket.io, and Laravel. This app will make HTTP requests and have real-time communication. It can be used by multiple users.