Vuex Quick Start Guide: Centralized State Management for your Vue.js applications
暫譯: Vuex 快速入門指南:為您的 Vue.js 應用程式提供集中式狀態管理
Andrea Koutifaris
- 出版商: Packt Publishing
- 出版日期: 2018-04-05
- 售價: $1,470
- 貴賓價: 9.5 折 $1,397
- 語言: 英文
- 頁數: 152
- 裝訂: Paperback
- ISBN: 1788999932
- ISBN-13: 9781788999939
-
相關分類:
Vue.js
海外代購書籍(需單獨結帳)
買這商品的人也買了...
-
$1,000$950 -
$549$522 -
$2,010$1,910 -
$2,060$1,957 -
$1,470$1,397 -
$100$100 -
$600$500 -
$2,030$1,929 -
$500$390
商品描述
Develop consistent web apps with Vuex by easily centralizing the state of your application
Key Features
- Uncover the hidden features of Vuex to build applications that are powerful, consistent, and maintainable
- Enforce a Flux-like application architecture in your Vue application
- Test your Vuex elements and Vue components using Karma/Jasmine testing framework
Book Description
State management preserves the state of controls in a user interface. Vuex is a state management tool for Vue.js that makes the architecture easier to understand, maintain and evolve. This book is the easiest way to get started with Vuex to improve your Vue.js application architecture and overall user experience.
Our book begins by explaining the problem that Vuex solves, and how it helps your applications. You will learn about the Vuex core concepts, including the Vuex store, changing application state, carrying out asynchronous operations and persisting state changes, all with an eye to scalability.
You will learn how to test Vuex elements and Vue components with the Karma and Jasmine testing frameworks. You will see this in the context of a testing first approach, following the fundamentals of Test Driven Development. TDD will help you to identify which components need testing and how to test them. You will build a full Vuex application by creating the application components and services, and persist the state.
Vuex comes with a plugin system that allows programmers to extend Vuex features. You will learn about some of the most powerful plugins, and make use of the built-in logger plugin. You write a custom Google Analytics plugin to send actions to its analytics API, and an Undo/Redo plugin.
What you will learn
- Moving from classical MVC to a Flux-like architecture
- Implementing predictable centralized state management in your applications using Vuex
- Using ECMAScript 6 features for developing a real application
- Using webpack in conjunction with Vue single file components
- Testing your Vue/Vuex applications using Karma/Jasmine and inject-loader
- Simple and effective Test Driven Development
- Extending your application with Vuex plugins
Who This Book Is For
If you are a JavaScript developer, working on Vue.js and want to extend your web development skills to develop and maintain bigger applications using state management, then this book is for you. No knowledge of Vuex is required.
Table of Contents
- Rethinking User Interfaces with Flux, Vue and Vuex
- Implementing Flux architecture with Vuex
- Setting Up Development and Test Environment
- Coding the EveryNote App Using Vuex State Management
- Debugging Vuex Applications
- Using the Vuex plugin system
商品描述(中文翻譯)
透過輕鬆集中應用程式的狀態,開發一致性的網頁應用程式
主要特點
- 揭示 Vuex 的隱藏功能,以構建強大、一致且可維護的應用程式
- 在您的 Vue 應用程式中強制執行類似 Flux 的應用架構
- 使用 Karma/Jasmine 測試框架測試您的 Vuex 元素和 Vue 組件
書籍描述
狀態管理保留用戶界面中控制項的狀態。Vuex 是一個針對 Vue.js 的狀態管理工具,使架構更易於理解、維護和演進。本書是開始使用 Vuex 的最簡單方法,以改善您的 Vue.js 應用程式架構和整體用戶體驗。
本書首先解釋了 Vuex 解決的問題,以及它如何幫助您的應用程式。您將學習 Vuex 的核心概念,包括 Vuex store、改變應用狀態、執行非同步操作和持久化狀態變更,所有這些都考慮到可擴展性。
您將學習如何使用 Karma 和 Jasmine 測試框架測試 Vuex 元素和 Vue 組件。您將在測試優先的方法中看到這一點,遵循測試驅動開發(TDD)的基本原則。TDD 將幫助您識別需要測試的組件以及如何測試它們。您將通過創建應用組件和服務來構建完整的 Vuex 應用程式,並持久化狀態。
Vuex 附帶一個插件系統,允許程序員擴展 Vuex 功能。您將學習一些最強大的插件,並使用內建的日誌插件。您將編寫一個自定義的 Google Analytics 插件,以將操作發送到其分析 API,還有一個撤銷/重做插件。
您將學習到的內容
- 從經典 MVC 轉向類似 Flux 的架構
- 在您的應用程式中使用 Vuex 實現可預測的集中狀態管理
- 使用 ECMAScript 6 特性開發實際應用程式
- 將 webpack 與 Vue 單文件組件結合使用
- 使用 Karma/Jasmine 和 inject-loader 測試您的 Vue/Vuex 應用程式
- 簡單而有效的測試驅動開發
- 使用 Vuex 插件擴展您的應用程式
本書適合誰
如果您是 JavaScript 開發人員,正在使用 Vue.js,並希望擴展您的網頁開發技能,以開發和維護更大的應用程式,使用狀態管理,那麼本書適合您。無需具備 Vuex 的知識。
目錄
- 重新思考使用 Flux、Vue 和 Vuex 的用戶界面
- 使用 Vuex 實現 Flux 架構
- 設置開發和測試環境
- 使用 Vuex 狀態管理編碼 EveryNote 應用程式
- 調試 Vuex 應用程式
- 使用 Vuex 插件系統