All Projects → davestewart → vuex-pathify-demos

davestewart / vuex-pathify-demos

Licence: other
A set of demos for the Vuex Pathify plugin

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
SCSS
7915 projects
typescript
32286 projects
CSS
56736 projects

splash

Vuex Pathify Demos

Introduction

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:

Each folder is an individual demo and is entirely self-contained.

See individual demo readme files and source code for more information.

Installation

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

Running the demos

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:

Local plugin development

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

Plugin setup

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

Demo setup

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

Running the demo

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].