All Projects → luchx → ECHI_VUE_CLI3.0

luchx / ECHI_VUE_CLI3.0

Licence: other
[email protected] + axios + mock + typescript + element-ui + scss + webpack4构建的企业级应用项目基础模板;

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
Vue
7211 projects
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to ECHI VUE CLI3.0

vue-element-admin-ts
vue-element-admin 的 typescript 版本
Stars: ✭ 101 (+573.33%)
Mutual labels:  vue-cli-3
vue-antd-admin
基于vue3.0 + vue-cli4.0 + vue-router4.x + vuex4.x + ant-design-vue2.x开发的后台管理系统模板,包含权限路由、权限按钮、流程配置、个人中心等基础功能
Stars: ✭ 57 (+280%)
Mutual labels:  mockjs
new-ara-web
KAIST Community Ara Renewal Project
Stars: ✭ 19 (+26.67%)
Mutual labels:  vue-cli-3
vue-app-best-practice
Vue application sample with all the best practices
Stars: ✭ 28 (+86.67%)
Mutual labels:  vue-cli-3
Vue2.x-mobileSystem
基于Vue2.0的移动端项目,项目没有使用vue-cli,全部手写,让小白更容易学习理解
Stars: ✭ 72 (+380%)
Mutual labels:  mockjs
crm
客户关系管理系统
Stars: ✭ 53 (+253.33%)
Mutual labels:  mockjs
concats
🔨 Desktop app to output a single-column csv file of rows of concatenated fields from an input csv or tsv file.
Stars: ✭ 20 (+33.33%)
Mutual labels:  vue-cli-3
Vi-Ui
💙 A simple but consistent user interface made for Vue
Stars: ✭ 42 (+180%)
Mutual labels:  vue-cli-3
express-mockjs
mockjs api middleware for Express
Stars: ✭ 47 (+213.33%)
Mutual labels:  mockjs
vue-cli3-example
🍭 A Mand Mobile project example for @vue/cli 3.0
Stars: ✭ 25 (+66.67%)
Mutual labels:  vue-cli-3
Spring Boot Vuejs
Example project showing how to build a Spring Boot App providing a GUI with Vue.js
Stars: ✭ 1,818 (+12020%)
Mutual labels:  vue-cli-3
vue-mintUI-demo
采用vue2、Mint UI,做的移动端项目
Stars: ✭ 17 (+13.33%)
Mutual labels:  mockjs
dva-typescript-antd-starter-kit
A admin dashboard application demo based on antd by typescript and dva
Stars: ✭ 61 (+306.67%)
Mutual labels:  mockjs
vue-cli-plugin-bootstrap-vue
vue-cli 3 plugin to add bootstrap-vue
Stars: ✭ 35 (+133.33%)
Mutual labels:  vue-cli-3
olivia-ai.org
💻 The website and an online client for Olivia
Stars: ✭ 26 (+73.33%)
Mutual labels:  vue-cli-3
cloud-music-mobile
This is a music player
Stars: ✭ 22 (+46.67%)
Mutual labels:  vue-cli-3
better-mock
Forked from Mockjs, Generate random data & Intercept ajax request. Support miniprogram.
Stars: ✭ 140 (+833.33%)
Mutual labels:  mockjs
vue-lite-admin
a lite vue3.0 admin template,there is no typescript and vuex (但注释挺全)
Stars: ✭ 67 (+346.67%)
Mutual labels:  mockjs
vue-cli-3.x-doc-cn
vue-cli 3.x 中文文档
Stars: ✭ 49 (+226.67%)
Mutual labels:  vue-cli-3
Vue Todos
vue最新实战项目教程,从零开始,一步一个脚印,循序渐进。跟着我一起学习vue吧!
Stars: ✭ 1,659 (+10960%)
Mutual labels:  mockjs

Vue cli3 template 开发须知

技术栈及使用要求

  1. 基于Vue全家桶 + axios + mockjs + typescript + element-ui + scss + webpack4构建的企业级应用项目;
  2. 开发时请确保你已了解或掌握以上技术要求,然后你就可以愉快的玩耍了;

从新建项目到设置打包环境

1. vue create vue-cli3-template
2. 新建 vue.config.js 文件,设置baseUrl: './';更多配置请[点击链接](https://cli.vuejs.org/zh/guide/)
3. 新建各个环境的文件,例如:.env.development .env.test .env.production
4. 在 package.json 中设置打包命令,例如:build:development build:test build:production,在执行命令的语句中设置 mode 环境,例如:--mode test

关于环境变量的注意事项

  • 环境名应该与环境文件统一
  • 环境文件放置根目录下
  • 关于打包配置路径,请修改vue.config.js文件下的输出地址
  • 除了 baseUrlNODE_ENV 其他环境变量使用 VUE_APP 开头
  • 另外还设定本地运行环境local,你可以在项目拉取下来后补充 .env.development.local 文件,并添加如下信息并替换你自己所在服务器的域名及端口; 例如 : NODE_ENV='development' VUE_APP_URL='http://localhost:8080'

vue 文件中 TS 上下文顺序

- data
- @Prop
- @State
- @Getter
- @Action
- @Mutation
- @Watch
- 生命周期钩子
    - beforeCreate(按照生命周期钩子从上到下)
    - created
    - beforeMount
    - mounted
    - beforeUpdate
    - updated
    - activated
    - deactivated
    - beforeDestroy
    - destroyed
    - errorCaptured(最后一个生命周期钩子)
- 路由钩子
    - beforeRouteEnter
    - beforeRouteUpdate
    - beforeRouteLeave
- computed
- methods
- 组件引用,mixins,filters 等放在 @Component 里面

工程目录结构

src:项目源码。开发的时候代码写在这里。
 |--api # 服务层ajax请求服务
 |    |--index # api数据入口文件
 |--assets # 项目静态资源
 |--axios # axios封装请求//拦截配置
 |    |--config.ts # axios拦截器配置文件
 |    |--service,ts # axios请求配置文件
 |--components # 项目公共组件库
 |--router # 项目路由
 |    |--index.ts # 入口及路由初始化
 |    |--filterRouter # 页面路由文件
 |--store # 基于Vuex的状态管理模块
 |    |--index.ts # 入口及store初始化
 |    |--modules # 子模块的store对象
 |--utils # 公共库函数
 |--views # 项目应用页面,根据应用需要,还可以有子页面,各子页面目录结构和顶级子页面类似
 |--App.vue # 项目根视图
 |--main.ts # 项目入口文件

使用

使用命令行

$ git clone [email protected]:luchx/ECHI_VUE_CLI3.0.git
$ cd ECHI_VUE_CLI3.0
$ npm install
$ npm run serve         # 访问 http://localhost:8080
$ npm run build         # Compiles and minifies for production
$ npm run lint          # Lints and fixes files
$ npm run test:unit     # Run your unit tests

支持环境

现代浏览器及 IE11。

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
IE11, Edge last 2 versions last 2 versions last 2 versions last 2 versions
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].