Giter Site home page Giter Site logo

hhy5277 / nkm-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nkm-admin/nkm-web

0.0 1.0 0.0 469 KB

👨‍💻‍nkm-admin的Web前端项目,基于Vue全家桶+elemenu-ui开发

Home Page: https://admin.xuanmo.xin

License: MIT License

JavaScript 32.32% HTML 0.61% Vue 59.52% CSS 7.54%

nkm-web's Introduction

nkm后台管理系统初始化模版-web端

  • 测试账号:testAdmin/123456

  • 脚手架采取3.x,项目已配置vue-router + vuex + eslint + axios + element-ui + sass(scss)

  • store、router已采取自动注入

安装项目依赖

yarn
or
npm install

启动项目

yarn start
or
npm run start

打包项目

yarn build
or
npm run build

Lints and fixes files

yarn run lint
or
npm run lint

目录文件说明

  • src:项目源码
    • api:存放所有的请求,按模块编写,入口文件为index.js
    • assets:静态文件目录
      1. scss:公用的scss文件,variables.scss已在全局引入,无需引入,每个页面都可以直接使用里面的变量
      2. images:图片资源
      3. svg-icon: 存放svg图标,文件名为调用名
    • components:公用组件目录,目录命名为大驼峰,自动注册
      1. 每个组件建立一个文件夹,文件夹名字采用大驼峰,组件入口为:index.vue,组件采取自动注册
      2. svg-icon: svg图标组件,已全局注册,调用方式:<x-svg-icon icon-name="name"></x-svg-icon>,icon-name传入src/assets/svg-icon目录下的文件名即可调用
    • directive:全局指令
    • filters:全局过滤器
    • modules:所有的业务页面,具体可参考系统管理部分
      1. 每个模块的xxx.store.js为vuex模块,无序引入,利用require.context完成自动注入,目录名为store模块名
      2. 每个模块的xxx.router.js为路由模块
    • pages:系统主要页面
      1. error:系统错误页面
      2. login:登录页面
      3. main:主题框架页面
    • router:项目主路由
    • store:vuex目录
    • utils:项目公用js和公用配置
      1. index.js:项目公用js和需要的配置
      2. axios.js:axios的一些基础配置
    • main.js:vue项目入口文件
    • style.scss:element-ui样式变量文件
  • .env.development:开发环境变量文件
  • .env.production:生产环境变量文件
  • .env.test:测试环境变量文件
  • vue.config.js:项目配置文件,具体使用说明可查看https://cli.vuejs.org/zh/config/#vue-config-js

参考指南

nkm-web's People

Contributors

d-xuanmo avatar

Watchers

 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.