Code Monkey home page Code Monkey logo

foxsnower

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

by Fox Snower -----2017/11/22

自从vue移除dev-server.js 后,就没有现成的本地服务了,为了能够本地模拟数据,方便开发, 新建了server文件夹,专门提供本地服务,若需要调取本地json数据,需要满足以下两个条件

* 打开 >src>api>api.js    

`const IsLoacalData = true; //本地数据`


* 启动本地服务 ,在server文件夹下 打开命令窗口

执行`node index.js`

目录详细说明

  -config             配置跨域请求
  -server(本地服务)   专门提供本地服务,调取本地json数据
    -local.json       本地数据
  -src(主要编写)      
    -api 							后台接口
    -components 			小组件
    -components_pages 页面组件
    -pages 						页面
    -router           路由
    -styles           样式
      -font_icon      字体图标
      -icon.less      图片图标
      -index.less     样式集合
      -reset.less     重置样式
      -transition.less过渡动画样式
      -var.less       变量样式
    -utils            公共工具
      -filter.js      公共过滤方法
    -vuex             状态管理

foxsnower's Projects

foxsnower doesn’t have any public repositories yet.

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.