Giter Club home page Giter Club logo

shop-mall-app's Introduction

vue-spa

vue全家桶实现一个小的移动商城

年前正好赶上vue-cli 3.0 beta的到来,就花几天时间完成一个移动小商城的demo,是个新手项目

二维码
手机扫描二维码或在电脑上打开浏览器调试手机模式

开始

  • 首先同样是全局安装
  npm install -g @vue/cli
  // 或
  yarn add global @vue/cli
  • 然后生成项目以后可以发现,目录结构变简单了。build和config目录都没有了,vue-cli依旧使用webpack打包工具只是默认配置好了。只剩下vue-config.js当你需要更改默认配置才会用的到。
  • 开发过程中大部分人都会使用模板、样式预处理。这些也只要安装相应的依赖。我是使用pug和sass,安装对应的模板依赖包,打包工具默认已安装几乎所有的loader,所以直接用就行了。

项目预览

项目预览

项目预览

项目总结

  • 现在静态资源(之前老版本脚手架的static目录)都放在public下。
  • http请求依旧使用axios模拟请求本地数据,轮播图和弹框使用mint-ui。
  • 购物车数据使用vuex进行管理

shop-mall-app's People

Contributors

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