A shop developed with Vue2 + Vue-router + Axios + Vuex + Node + Express + MongoDB + Webpack
Note: Start MongoDB first
# cd server
# npm i (商城服务端依赖安装)
# node bin/www (启动服务端)
# cd .. (切到项目根目录)
# npm i (Vue项目依赖安装)
# npm start (Vue商城启动)
# # Build Setup
` ` ` bash
# project init(项目初始化)
vue init webpack vue-shop
# 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 --reportFor a detailed explanation on how things work, check out the guide and docs for vue-loader. more info, contact with [email protected]
Vue2 mall demand analysis and framework construction, product list implementation
Two ways to implement the product list module
Mall backend framework construction and product list scrolling pagination
Business function development (1) (paging query and login interception)
Business function development (2) (Shopping cart)
Business function development (III) (Shopping cart and receipt details)
Business function development (IV) (Order processing)
Vue project packaging optimization and deployment online + course summary