Coder Social home page Coder Social logo

bricky's Introduction

bricky项目前端文档

the project is created by (vue-cli)[https://vuejs.org.cn/guide/installation.html]

运行方法

# 安装npm依赖(首先保证机器上已经安装node环境)
npm install

# serve with hot reload at localhost:9001, 开发环境的命令
npm run dev

# build for production, 生产环境的命令
npm run build

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

注意事项

  • 项目使用的vue版本是1.0,其他的vue-resource, vue-router之类的插件也要格外注意下版本的问题
  • 项目的html文件配置入口在build/webpack.dev.conf.js, build/webpack.prod.conf.js, js文件的配置入口在build/webpack.base.conf.js, css文件入口均写在js文件里
  • 代理的配置在 config/index.js 是用的是 node-http-proxy 模块
  • src 目录是项目的主要工作目录
    • assets 里面存放的是图片资源
    • components 是一些项目通用的 vue 插件或者 vue 组件
    • entry下面又有很多目录,基本每个目录名称是与每个html文件相对应,即为每个页面的的入口js文件,里面目录在下面的目录的话即为前端控制的子路由的入口vue组件
  • js目录下面是一些引用的全局库文件,或者是一些全局配置文件Config.js, vue的全局过滤函数文件Filter.js, 一些全局的工具函数 Util.js

bricky's People

Contributors

changmm avatar haohaookm 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.