Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Vue.js 3 Design Patterns and Best Practices

You're reading from  Vue.js 3 Design Patterns and Best Practices

Product type Book
Published in May 2023
Publisher Packt
ISBN-13 9781803238074
Pages 296 pages
Edition 1st Edition
Languages
Author (1):
Pablo David Garaguso Pablo David Garaguso
Profile icon Pablo David Garaguso

Table of Contents (16) Chapters

Preface Chapter 1: The Vue 3 Framework Chapter 2: Software Design Principles and Patterns Chapter 3: Setting Up a Working Project Chapter 4: User Interface Composition with Components Chapter 5: Single-Page Applications Chapter 6: Progressive Web Applications Chapter 7: Data Flow Management Chapter 8: Multithreading with Web Workers Chapter 9: Testing and Source Control Chapter 10: Deploying Your Application Chapter 11: Bonus Chapter - UX Patterns Final words Index Other Books You May Enjoy Appendix: Migrating from Vue 2

Our base example application

It is best to understand the discipline of testing and learn about the tools by applying them to a real project through practice. As a learning exercise, we will first take a running application based on one of the examples presented in Chapter 2, Software Design Principles and Patterns. We will build a Fibonacci calculator and install the Vitest test suite and Vue Testing Utils to the project. Later, we will explain what would change in this approach when applying the TDD discipline.

The code for this application can be found in the repository for this chapter. Once downloaded, you need to execute the following command to install the dependencies:

$ npm install

Then, to run the application, you must run the following:

$ npm run start

When the server is ready, loading the site in your web browser should present you with an application like this:

Figure 9.1 – The example application with a Fibonacci calculator

Figure 9.1 – The example application with a Fibonacci calculator...

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 $15.99/month. Cancel anytime}