This repo contains various Vuex Pathify demos:
Vue 2:
- Main demo - shows all Pathify features with several "code comparison" demos
- Simple demo - a simple "Hello World" style demo with minimal code and setup
- Nuxt demo - Pathify working in a Nuxt installation
Vue 3:
- Vue 3 - Vue 3 demo
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
npm run vue3
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:
- download the plugin package
- globally link the plugin package
- download the demos
- locally link individual demos
- run the dev setups for both plugin and demos
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.