NVA is dependent on nuxt.js and vue.js, and is a backend SPA based on vue-element-admin.
- Nuxt.js v.2.10.2
- vue-element-admin v3.9.3
run
# install dependencies
$ yarn install
# serve with hot reload at localhost:9091
$ yarn run dev
Certification
- The default user authentication is based on JWT-TOKEN . If you want to change the method, you have to change the code.
- The login entrance should have its own verification code for verification, which is not provided by NVA.
- Page access permissions need to define the user's roles. The default is to read the
user.roles
array. You can read the following code:-
~/mixins/sidebar.js
-
~/middleware/auth.js
-
~/mixins/hasRole.js
- Regarding user login and permission verification, you definitely have to configure it yourself, and it cannot be used out of the box. However, there are already solutions in the project, which can be modified slightly.
- To create a new route, please refer to the documentation of
nuxt.js
, and the icon and title must be configured for the route in sidebar.js before it can be used normally. - The code of
vue-element-admin
is in the vendor
directory and can be used according to the situation. Please refer to its documentation for usage methods.
Authorize
MIT