Giter Site home page Giter Site logo

devweb's Introduction

devweb

这是一个vue多页面的项目,主要技术栈为webpack + vue全家桶 + sass + es6

开始todo

  1. 安装依赖
    npm i 

2.文件目录

├─build
│      dev-server.js         // 使用webpack-dev-server搭建的本地服务器
│      utils.js   			 
│      webpack.config.js 	// webpack配置文件
│      
├─mock
│  │  api.js 			// 通过webpack-api-mocker插件使用本地数据进行模拟请求
│  │  
│  └─data
│          manage.json 	// 本地模拟数据
│          weather.json
│          
└─src
    ├─asset
    │  │  base.css
    │  │  
    │  └─images
    ├─page
    │  └─manage
    │      │  App.vue 	  // 最外层父级组件
    │      │  index.html  // 组件模版
    │      │  main.js     // webpack打包入口文件
    │      │  
    │      ├─components
    │      │  └─home
    │      │      │  home.css
    │      │      │  home.vue // 子组件的容器组件
    │      │      │  
    │      │      ├─dataview
    │      │      │      dataview.vue  // 子组件中的组件
    │      │      │      
    │      │      ├─formlist
    │      │      │      formlist.vue
    │      │      │      
    │      │      └─menu
    │      │              menu.vue
    │      │              
    │      └─router
    │              index.js
    │              
    ├─store   // 状态管理器
    │  │  index.js
    │  │  
    │  └─module
    │          test.js
    │          
    └─utils  // 一些常用的工具方法
            index.js

3.mock与联调数据

通过package.json文件中的devmock和devproxy命令去模拟数据或联调后端接口

devweb's People

Contributors

mountyprogram 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.