Giter Site home page Giter Site logo

uni-vue-template's Introduction

开发前必看

前提条件

nodejs 版本必须为 14.*, 主要是匹配 node-sass 版本。

1. 起步

安装依赖

npm install

启动应用

npm run serve

打包构建

npm run build

自定义打包配置

See Configuration Reference.

2. 项目结构

├─src
|  ├─App.vue // 应用文件
|  ├─main.js // 执行入口
|  ├─manifest.json // 应用配置文件(eg: 应用图标、小程序 appid 、各类小程序特定配置等等)
|  ├─pages.json // 配置页面路由
|  ├─uni.scss // 默认样式
|  ├─utils 	// 工具类
|  |   ├─config.js
|  |   ├─regex.js
|  |   └request.js
|  ├─style	// 工具样式类
|  |   ├─README.md
|  |   └flex.scss
|  ├─static	 // 静态资源
|  |   └logo.png
|  ├─plugins // 自定义插件
|  |    ├─errorCatch.js
|  |    ├─index.js
|  |    └interact.js
|  ├─pages // 页面文件
|  |   ├─index
|  |   |   └index.vue
|  |   ├─course
|  |   |   └course.vue
|  ├─store  // 接口
|  |  ├─modules
|  |  └index.js
|  ├─api  // 接口
|  |  ├─README.md
|  |  └common.js
├─public // 模版
|   └index.html

3. 使用组件库

uView

组件的搭建以及配置按需引入:

uView config

4. 请求库

请求库使用 uniapp 自带的 uni.request

5. Git 代码规范

Git Commit message

uni-vue-template's People

Contributors

wangjing013 avatar

Stargazers

 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.