# nodejs-mysql-mall **Repository Path**: vux/nodejs-mysql-mall ## Basic Information - **Project Name**: nodejs-mysql-mall - **Description**: 基于nodejs+mySQL+express的商城后台 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 21 - **Forks**: 10 - **Created**: 2020-12-03 - **Last Updated**: 2025-07-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: MySQL ## README # nodejs-mysql-mall 基于nodejs + mySQL + express的商城后台 ## 安装api文档插件 ``` npm i apidoc -g ``` ## 进入项目 ``` cd {项目目录} ``` ## 安装依赖包,必须cnpm ``` $ cnpm i ``` ## 还原数据库 1. 在mysql中创建mall数据库 2. 将mall.sql文件还原至mall数据库 3. 在config文件夹mysql.js文件,配置数据库、账户、密码; ## 重新生成API文档 ``` $ npm run api ``` ## 启动 ``` $ npm start ``` ## 后台API文档地址 ``` http://localhost:3002/api/ ``` ## 商城管理后台地址 ``` http://localhost:3002/admin/ ```