dobromir-hristov / vue-auth-training-app

Just a simple app with auth guards and vuex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

basic-aut-app

  • Explain structure
  • Api service
  • Login
  • Basic auth store module
  • Storing Token
  • fetching user
  • Routes
  • Route guards
  • Navigation component

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Runs a local API server

npm run api

You can now use these routes:

accounts: user@mail.com and user2@mail.com password: 12345

  • login - POST
  • register - POST
  • books - GET - Guarded, needs JWT Token
  • users - GET

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Run your end-to-end tests

npm run test:e2e

Run your unit tests

npm run test:unit

Customize configuration

See Configuration Reference.

About

Just a simple app with auth guards and vuex


Languages

Language:JavaScript 61.4%Language:Vue 34.5%Language:HTML 4.1%