Skip to content
This repository has been archived by the owner on Jan 1, 2019. It is now read-only.

Vincent1993/V2EX-Vue

Repository files navigation

V2EX-mobile

用到的东西

  • Vue2
  • Vuex2
  • Vue-Router2

如何开发

    git clone https://github.com/Vincent1993/V2EX-mobile.git ***your project***

    npm i

    npm start

    [https://localhost:3555](本地调试)

这边建议装一下跨域调试工具

目录结构

    src/
        assets/                         ---> 静态资源文件
        components/                     ---> 组件文件
        config/                         ---> 项目配置文件
        filters/                        ---> 过滤器
        router/                         ---> vue-router配置文件
        store/                          
            actions/                    ---> vuex actions
            getters/                    ---> vuex getters
            modules/                    ---> vuex modules
            index.js                    ---> vuex store
            plugins.js                  ---> vuex plugins
        utils/                          ---> 共用函数
        vendor/                         ---> ThirdParty lib
        views/                          ---> 展示视图库
        main.js                         ---> 入口文件
    .babelrc                            ---> babel 配置文件
    .eslintrc                           ---> eslint 配置文件
    .gitignore                          ---> gitignore
    index.html                          ---> index
    package.json                        ---> package
    README.md                           ---> 本文件
    webpack.config.common.js            ---> webpack通用配置
    webpack.config.dev.js               ---> webpack开发配置