vervin / vue-shop

A VUE shop has NodeJS and MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-shop

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.

插件

滚动加载

npm install vue-infinite-scroll --save

node 接口步骤

  1. 创建数据结构 server/models/users.js
  2. 创建路由 server/roures/goods.js 对数据库进行增删改查,并输出
  3. 取消 /build/webpack.dev.conf.js 中的假数据模拟, 配置 config/index.js 中的代理转发
  4. 前端axios发起请求
  5. 拿到数据,处理数据

About

A VUE shop has NodeJS and MongoDB


Languages

Language:CSS 67.0%Language:JavaScript 22.0%Language:Vue 10.4%Language:HTML 0.6%