|
7 年之前 | |
---|---|---|
src | 7 年之前 | |
view | 8 年之前 | |
www | 8 年之前 | |
.babelrc | 8 年之前 | |
.gitattributes | 7 年之前 | |
.gitignore | 8 年之前 | |
.thinkjsrc | 8 年之前 | |
LICENSE | 7 年之前 | |
README.md | 8 年之前 | |
nginx.conf | 8 年之前 | |
nideshop.sql | 7 年之前 | |
package.json | 7 年之前 | |
pm2.json | 8 年之前 |
本项目需要配合微信小程序端使用,GitHub: https://github.com/tumobi/nideshop-mini-program
克隆项目到本地
git clone https://github.com/tumobi/nideshop
创建数据库nideshop并导入项目根目录下的nideshop.sql
CREATE SCHEMA `nideshop` DEFAULT CHARACTER SET utf8mb4 ;
注意数据库字符编码为utf8mb4
更改数据库配置 src/common/config/db.js
export default {
type: 'mysql',
adapter: {
mysql: {
host: '127.0.0.1',
port: '3306',
database: 'nideshop',
user: 'root',
password: 'root',
prefix: 'nideshop_',
encoding: 'utf8'
},
mongo: {
}
}
};
安装依赖并启动
npm install
npm start
线上部署参考文档:通过新浪云部署NideShop微信小程序商城(基于Node.js+MySQL+ThinkJS)
喜欢别忘了Star 本项目长期更新完善,欢迎Watch 交流QQ群:594430617