Skip to content

Example static nuxt app with vuex store, store persisted client-side + shared state Share vuex mutations between tabs/windows.

Notifications You must be signed in to change notification settings

hartmut-co-uk/nuxt-vuex-persist-shared-mutations-example

Repository files navigation

nuxt-vuex-persist-shared-mutations-example

Example static nuxt SPA with vuex store featuring

  • store persisted client-side
  • mutations shared between tabs/windows.

Live Preview

Preview here

Libraries Used 🏆

Everything built with an out of the box combination of Nuxt (+ vuex) + vuex-persist + vuex-shared-mutations.
vuex-persist + vues-shared-mutations added as nuxt plugins.

All credits go to:

Build Setup

# install dependencies
$ yarn

# serve with hot reload at localhost:3000
$ yarn dev

# generate static project
$ yarn generate

# generate static for GitHub Pages
$ yarn generate:gh-pages

# deploy `dist` folder for GitHub Pages (branch 'gh-pages')
$ yarn deploy:gh-pages

Deployment: Github Actions > Github Pages

💪 This repo has been setup for fully automated deployment of the Live Preview via Github Actions as Github Pages.

For details, check following files + references below:
nuxt.config.js -> routerBase
package.json -> scripts generate:gh-pages + deploy:gh-pages
.github/workflows/gh-pages-deploy.yml

Credits

References Github :octocat:

About

Example static nuxt app with vuex store, store persisted client-side + shared state Share vuex mutations between tabs/windows.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published