|
il y a 7 ans | |
---|---|---|
src | il y a 7 ans | |
view | il y a 8 ans | |
www | il y a 8 ans | |
.babelrc | il y a 8 ans | |
.gitattributes | il y a 7 ans | |
.gitignore | il y a 8 ans | |
.thinkjsrc | il y a 8 ans | |
README.md | il y a 8 ans | |
nginx.conf | il y a 8 ans | |
nideshop.sql | il y a 7 ans | |
package.json | il y a 7 ans | |
pm2.json | il y a 8 ans |
本项目需要配合微信小程序端使用,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