Code Monkey home page Code Monkey logo

nva's Introduction

NVA 由 nuxt.js 和 vue.js 为依赖,vue-element-admin 为基础的后台SPA

  1. Nuxt.js v.2.3.4
  2. vue-element-admin v3.9.3

运行

# install dependencies
$ yarn install

# serve with hot reload at localhost:9091
$ yarn run dev

认证

  1. 默认用户认证基于JWT-TOKEN,想要更改方式就得改代码
  2. 登录入口应该有自己的验证码来做校验,NVA自带没有提供
  3. 页面访问权限需要定义用户的 roles,默认是读取user.roles这个数组,可阅读以下代码:
    1. ~/mixins/sidebar.js
    2. ~/middleware/auth.js
    3. ~/mixins/hasRole.js
  4. 关于用户登录与权限校验,肯定得自己配置,无法开箱即用,但项目中已经有了解决的思路,稍微修改即可
  5. 新建路由请参考nuxt.js的文档,并且必须在sidebar.js里为路由配置icontitle后才能正常使用
  6. vue-element-admin的代码在vendor目录下,根据情况使用,使用方法参考其文档

授权

MIT

nva's People

Contributors

falstack avatar

Watchers

James Cloos avatar 0xdigiscore avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.