The demos follow the standard Vue setup using vue-cli
.
By default the demos use a public demo server for the API which helps to facilitate a more realistic flow. Currently there is no sever demo code being released at this time.
The
@websanova/vue-auth
package is an alias to the root folder and not actually installed in the demo.
Check the live demo online.
> git clone https://github.com/websanova/vue-auth.git vue-auth
> cd vue-auth/demos/2.x
> cp .env.sample .env.local
> npm install
> npm run dev
> git clone https://github.com/websanova/vue-auth.git vue-auth
> cd vue-auth/demos/3.x
> cp .env.sample .env.local
> npm install
> npm run dev
By default the demo is setup to run with the vue-resource
package.
To run it with Axios, comment swap in the following two files.
> /src/http/index.js
> /scr/config/plugins.js