Skip to content

Instantly share code, notes, and snippets.

@Mattchewone
Last active June 15, 2018 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mattchewone/61f2150704707c1df9e7353dbd86a8e2 to your computer and use it in GitHub Desktop.
Save Mattchewone/61f2150704707c1df9e7353dbd86a8e2 to your computer and use it in GitHub Desktop.
import Vue from 'vue'
import Vuex from 'vuex'
import feathersVuex from 'feathers-vuex'
import feathersClient from './feathers-client'
const { service, auth, FeathersVuex } = feathersVuex(feathersClient, { idField: '_id', enableEvents: true })
Vue.use(Vuex)
Vue.use(FeathersVuex)
Vue.config.devtools = true
export default new Vuex.Store({
plugins: [
service('users', { paginate: true }),
service('movies', { paginate: true }),
auth({ userService: 'users' })
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment