Skip to content

Commit

Permalink
docs README添加项目运行配置
Browse files Browse the repository at this point in the history
  • Loading branch information
tumobi committed Jul 15, 2017
1 parent 9d7c044 commit 2bf53a1
Showing 1 changed file with 36 additions and 5 deletions.
41 changes: 36 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,45 @@
+ 计划添加基于Vue.js的后台管理系统、PC版、Wap版


### 项目启动

### 安装配置
+ 克隆项目到本地
```
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
```
访问http://127.0.0.1:8360/


### 微信小程序客户端截图
Expand All @@ -28,8 +61,6 @@ npm start

![购物车](http://upload-images.jianshu.io/upload_images/3985656-60ff2307d81f6bb2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/320)

![我的](http://upload-images.jianshu.io/upload_images/3985656-92d60f1f23cd4be2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/320)

![订单中心](http://upload-images.jianshu.io/upload_images/3985656-dff837e6b2ec87b3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/320)


Expand All @@ -47,4 +78,4 @@ npm start
### 最后
喜欢别忘了Star
本项目长期更新完善,欢迎Watch
交流QQ群:594430617
交流QQ群:594430617

0 comments on commit 2bf53a1

Please sign in to comment.