Vuex ORM Axios plugin adds smooth integration between API requests and Vuex ORM data persistence through the awesome axios.
If you use axios with Vuex ORM, you may find handling requests can become an arduous and repetitive process. This plugin bridges Vuex ORM and axios and brings a unified process to perform requests and persist response data with ease.
// Example usage: fetch users and persist to store.
User.api().get('/api/users')Vuex ORM is sponsored by awesome folks. Big love to all of them from whole Vuex ORM community 💕
You can check out the full documentation for Vuex ORM Plugin: Axios at https://vuex-orm.github.io/plugin-axios.
Join us on our Slack Channel for any questions and discussions.
Although there is the Slack Channel, do not hesitate to open an issue for any question you might have. We're always more than happy to hear any feedback, and we don't care what kind of form they are.
Vuex ORM can be extended via plugins to add additional features. Here is a list of available plugins.
- Vuex ORM GraphQL – The plugin to sync the store against a GraphQL API.
- Vuex ORM Search – The plugin adds a search() method to filter records using fuzzy search logic from the Fuse.js.
- Vuex ORM Change Flags - Vuex ORM plugin for adding IsDirty / IsNew flags to model entities.
- Vuex ORM Soft Delete – Vuex ORM plugin for adding soft delete feature to model entities.
We are excited that you are interested in contributing to Vuex ORM Plugin: Axios! Anything from raising an issue, submitting an idea of a new feature, or making a pull request is welcome! Before submitting your contribution though, please make sure to take a moment and read through the following guidelines.
When submitting a new pull request, please make sure to follow these guidelines:
- For feature requests: Checkout a topic branch from
devbranch, and merge back againstdevbranch. - For bug fixes: Checkout a topic branch from
masterbranch, and merge back againstmasterbranch.
These rules also apply to the documentation. If you're submitting documentation about a new feature that isn't released yet, you must checkout the dev branch, but for non-functional updates, such as fixing a typo, you may checkout and commit to the master branch.
There are several scripts to help with development.
yarn buildCompile files and generate bundles in dist directory.
yarn lintLint files using Prettier.
yarn testRun the test using Jest.
yarn test:watchRun the test in watch mode.
yarn coverageGenerate test coverage in coverage directory.
yarn docsBuild and boot documentation server with VuePress.
Vuex ORM Plugin: Axios is open-sourced software licensed under the MIT license.
