
This repo contains various Vuex Pathify demos:
Each folder is an individual demo and is entirely self-contained.
See individual demo readme files and source code for more information.
To clone the repo and install all demo folder packages, run:
git clone https://github.com/davestewart/vuex-pathify-demos.git
cd vuex-pathify-demos
npm run init
Each demo can be run from its own folder, or by a convenience npm command from the root:
npm run main
npm run simple
npm run nuxt
Additionally, the main and simple demos can be run on Code Sandbox:
To develop the Pathify locally whilst running any of the demos, you will need a special NPM setup which links the local demos to a locally-downloaded copy of the plugin repo.
The steps are:
First of all, create a folder that you can store both repos in:
mkdir ~/VuexPathify
Next, download and link the plugin package:
# clone the repo
cd ~/VuexPathify
git clone https://github.com/davestewart/vuex-pathify
# create global link
cd vuex-pathify
npm link
Next download and link one or more demos:
cd ~/VuexPathify
git clone https://github.com/davestewart/vuex-pathify-demos
# create local link
cd vuex-pathify-demos
cd simple
npm link vuex-pathify
Finally, you can run both the plugin and demo dev setups, and see the results in the browser.
In separate terminal windows:
cd ~/VuexPathify/vuex-pathify
npm run dev
cd ~/VuexPathify/vuex-pathify-demos
npm run simple
View in the browser at the URL stated in the terminal.
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.