vue-graphql-auth
vue-graphql-auth
vue-graphql-auth is a basic authentication template for VueJS apps using a GraphQL backend. It allows you to easily setup your own authentication by changing the GraphQL endpoint.
Installation
# installing the preset package
npm i vue-graphql-auth --save
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
Usage
Cd into src folder. In main.js, simply change __SIMPLE_API_ENDPOINT__
with your actual GraphQL endpoint.
const httpLink = new HttpLink({
// You should use an absolute URL here
uri: '__SIMPLE_API_ENDPOINT__'
})
Dependencies
Dependencies
autoprefixer: ^9.6.5babel-core: ^6.26.3babel-eslint: ^10.0.3babel-helper-vue-jsx-merge-props: ^2.0.3babel-loader: ^7.1.5babel-plugin-syntax-jsx: ^6.18.0babel-plugin-transform-runtime: ^6.23.0babel-plugin-transform-vue-jsx: ^3.7.0babel-preset-env: ^1.7.0babel-preset-stage-2: ^6.24.1chalk: ^2.4.2copy-webpack-plugin: ^5.0.4css-loader: ^3.2.0eslint: ^5.16.0eslint-config-standard: ^14.1.0eslint-friendly-formatter: ^4.0.1eslint-loader: ^3.0.2eslint-plugin-import: ^2.18.2eslint-plugin-node: ^10.0.0eslint-plugin-promise: ^4.2.1eslint-plugin-standard: ^4.0.1eslint-plugin-vue: ^5.2.3extract-text-webpack-plugin: ^3.0.2file-loader: ^4.2.0friendly-errors-webpack-plugin: ^1.7.0html-webpack-plugin: ^3.2.0node-notifier: ^6.0.0optimize-css-assets-webpack-plugin: ^5.0.3ora: ^4.0.2portfinder: ^1.0.25postcss-import: ^12.0.1postcss-loader: ^3.0.0postcss-url: ^8.0.0rimraf: ^3.0.0semver: ^6.3.0shelljs: ^0.8.3style-loader: ^1.0.0uglifyjs-webpack-plugin: ^2.2.0url-loader: ^2.2.0vue-loader: ^14.2.2vue-style-loader: ^4.1.2vue-template-compiler: ^2.6.10webpack: ^4.41.2webpack-bundle-analyzer: ^3.6.0webpack-cli: ^3.3.9webpack-dev-server: ^3.9.0webpack-merge: ^4.2.2