Vue Auth / Guides / Demos

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.

Live

Check the live demo online.

Vue 2.x

> 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

Vue 3.x

> 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

Axios

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