feathers-vuex
feathers-vuex
is a first class integration of the Feathers Client and Vuex. It implements many Redux best practices under the hood, eliminates a lot of boilerplate code, and still allows you to easily customize the Vuex store.
Features
- Fully powered by Vuex & Feathers
- Realtime By Default
- Actions With Reactive Data
- Local Queries
- Fall-Through Caching
- Feathers Query Syntax
- $FeathersVuex Vue Plugin
- Live Queries
- Per-Service Data Modeling
- Clone & Commit
- Vuex Strict Mode
- Per-Record Defaults
- Data Level Computes
- Relation Support
Installation
npm install feathers-vuex --save
Basic Examples
To setup feathers-vuex
, we first need to setup a Feathers Client. Here's an example using the latest @feathersjs
npm packages.
feathers-client.js:
And here's how you would integrate the Feathers Client into the Vuex store:
store/index.js: