# 20230619vue-cart-demo **Repository Path**: RanGuMo/20230619vue-cart-demo ## Basic Information - **Project Name**: 20230619vue-cart-demo - **Description**: 基于Vuex实现的购物车案例 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-06-19 - **Last Updated**: 2026-01-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 20230619vue-cart-demo 购物车案例 ## Project setup ``` npm install ``` ### Compiles and hot-reloads for development ``` npm run serve ``` ### Compiles and minifies for production ``` npm run build ``` ### Lints and fixes files ``` npm run lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ## 准备后端接口服务环境 1. 安装全局工具 json-server (全局工具仅需要安装一次) ``` yarn global add json-server 或 npm i json-server -g ``` 2. 代码根目录(src)新建一个 db 目录 3. 将资料 index.json 移入 db 目录 4. 进入 db 目录,执行命令,启动后端接口服务 ``` json-server index.json ```