Giter Site home page Giter Site logo

filmshopping's Introduction

film-shop

A film shopping website

dependencies

脚手架: vue-cli
UI框架: element-UI
前端框架: vue
状态管理器: vuex
路由控制器: vue-router
(其实就是vue全家桶)  

文件架构

  1. 公用的组件写在components
  2. 具体的页面逻辑写在views里
  3. store文件夹存放公用状态
  4. styles存放全局样式
  5. router存放路由定义
  6. assets存放着公共的图片/字体

部署方式

  1. 打包前端代码
npm run build
  1. 开启node服务器
node app.js

开发时切换服务器的方法

在config/index.js里,有一个proxyTable,可以利用它来定义api转发规则和对应的服务器

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

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

原子类:

(原子类的目的只是为了方便开发)

  1. m-x,ml-x,mr-x,mt-x,mb-x, p-x,pl-x,pr-x,pt-x,mb-x意义如下:(其中,x必须是5的倍数,取值为5-100)
m-x {
  margin: xpx
}
ml-x {
  margin-left: xpx
}
mr-x {
  margin-right: xpx
}
...
  1. fl,fr,tl,tr,tc意义如下:
fl {
  float: left    
}
fr {
  float: right
}
tl {
  text-align: left
}
tr {
  texdt-align: right
}
tc {
  text-align: center
}

filmshopping's People

Contributors

chenjigeng avatar hanyif avatar

Watchers

James Cloos 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.