Giter Club home page Giter Club logo

tpl-admin-vue's Introduction

tpl-admin-vue

中后台 vue+element+tm-cli 系统模板项目

node 环境安装必要工具:tm-cli 工具文档

环境版本要求

  • tm-cli v0.2.0-beta.10 +
  • node v10.15.3 +
  • npm v6.4.1 +
  • vue 2.5.17
  • vue-template-compiler: 2.5.17

安装依赖开发

# 全局安装tm-cli
npm i -g tm-cli

# 建议不要用cnpm  安装有各种诡异的bug 可以通过如下操作解决npm速度慢的问题
npm install --registry=https://registry.npm.taobao.org

# 开启本地api mock localhost:8900服务
npm run mock

# 开启开发服务 localhost:9090
npm run dev

发布打包

npm run build

目录结构

├─mock                               // 本地模拟数据服务
├─src                                // 源代码
│  ├─api                             // 所有请求
│  ├─assets                          // 主题 字体等静态资源
│  │  ├─401_images
│  │  ├─404_images
│  │  ├─icons                        // 项目所有 svg icons
│  │  └─styles
│  ├─config                           // 项目api请求等配置
│  ├─common
│  │  ├─directive                    // 全局指令
│  │  ├─filters                      // 全局 filter
│  │  ├─utils                        // 全局公用方法
│  │  └─vendor                       // 第三方扩展库资源
│  ├─components                      // 全局公用组件
│  ├─router                          // 路由
│  ├─store                           // 全局 store管理
│  └─views                           // 所有页面
└─static                             // 第三方不打包资源

注意!

  • api 是基于前端统一请求库 @xsyx/easy-api-h5 (包含了 axios 请求库) 定义,
// 后端api 返回响应结果必须是以下格式
{
  "rspCode": "success",
  "rspDesc": '',
  "data": {}
}
  • config 文件夹内包含了 应用的所有配置项目:路由拦截器、请求拦截器、常量配置

tpl-admin-vue's People

Contributors

note520 avatar dependabot[bot] 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.