Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
guoxiongLuo
committed
Feb 22, 2019
1 parent
3dbd5be
commit dccb11d
Showing
1 changed file
with
28 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,37 @@ | ||
### NideShop商城(服务端) | ||
# EasyMarket 服务端 | ||
|
||
+ 界面高仿网易严选商城(主要是2016年wap版) | ||
+ 测试数据采集自网易严选商城 | ||
+ 功能和数据库参考ecshop | ||
+ 服务端api基于Node.js+ThinkJS+MySQL | ||
+ 计划添加基于Vue.js的后台管理系统、PC版、Wap版 | ||
> 1. EasyMarket 服务端是基于[NideShop 服务端](https://github.com/tumobi/nideshop) 改造,在此感谢NideShop作者! | ||
> | ||
> 2. 服务端相关配置参考 [NideShop](https://github.com/tumobi/nideshop/blob/master/README.md) | ||
> 3. 未来会开发 EasyMarket 后台管理 | ||
本项目需要配合微信小程序端使用,GitHub: [https://github.com/tumobi/nideshop-mini-program](https://github.com/tumobi/nideshop-mini-program) | ||
## EasyMarket 新增Api接口 | ||
|
||
> 1. H5移动端登录接口 | ||
> | ||
> 2. H5微信支付接口(未完成) | ||
> | ||
> 未来会添加更多的接口,以实现更多的功能 | ||
### 本地开发环境配置 | ||
+ 克隆项目到本地 | ||
``` | ||
git clone https://github.com/tumobi/nideshop | ||
``` | ||
+ 创建数据库nideshop并导入项目根目录下的nideshop.sql | ||
``` | ||
CREATE SCHEMA `nideshop` DEFAULT CHARACTER SET utf8mb4 ; | ||
``` | ||
> 注意数据库字符编码为utf8mb4 | ||
+ 更改数据库配置 | ||
src/common/config/database.js | ||
|
||
``` | ||
const mysql = require('think-model-mysql'); | ||
## EasyMarket 本地部署 | ||
|
||
module.exports = { | ||
handle: mysql, | ||
database: 'nideshop', | ||
prefix: 'nideshop_', | ||
encoding: 'utf8mb4', | ||
host: '127.0.0.1', | ||
port: '3306', | ||
user: 'root', | ||
password: '你的密码', | ||
dateStrings: true | ||
}; | ||
``` | ||
> 1. 将nideShop.mysql导入您本地的数据库中 | ||
> 2. 更改数据库的配置文件目录(src/common/config/database.js) | ||
> 3. 将[EasyMarketApp](https://github.com/Peroluo/easyMarketApp) 打包文件放到 (www/web/easyMarket目录下) | ||
> 4. 安装依赖 cnpm install | ||
> 5. 启动项目 npm start | ||
> 6. 浏览器访问 http://127.0.01.1:8888/web/easyMarket | ||
+ 填写微信登录和微信支付配置 | ||
src/common/config/config.js | ||
``` | ||
// default config | ||
module.exports = { | ||
default_module: 'api', | ||
weixin: { | ||
appid: '', // 小程序 appid | ||
secret: '', // 小程序密钥 | ||
mch_id: '', // 商户帐号ID | ||
partner_key: '', // 微信支付密钥 | ||
notify_url: '' // 微信异步通知,例:https://www.nideshop.com/api/pay/notify | ||
} | ||
}; | ||
``` | ||
## End | ||
|
||
+ 安装依赖并启动 | ||
``` | ||
npm install | ||
npm start | ||
``` | ||
访问http://127.0.0.1:8360/ | ||
> - 喜欢 EasyMarket,帮忙点个Star吧! | ||
> - 作者还会不断更新, 您的支持是作者不断更新的动力! | ||
> - Thanks! | ||
### 线上部署 | ||
## About Me | ||
|
||
+ 没有域名部署参考文档:[不用买域名、不用备案、不用配置https快速部署Node.js微信小程序商城(基于Node.js+MySQL+ThinkJS)](http://www.jianshu.com/p/78a0f5f424e1) | ||
|
||
+ 如有域名且已备案,可参考: | ||
+ [阿里云 Ubuntu 16.04 下部署 Node.js + MySQL 微信小程序商城](http://www.jianshu.com/p/38d13a7c1b78) | ||
+ [阿里云 CentOS 7.3 下部署基于 Node.js + MySQL 的微信小程序商城](http://www.jianshu.com/p/5d5497697b0a) | ||
|
||
|
||
### 微信小程序客户端截图 | ||
|
||
![首页](http://upload-images.jianshu.io/upload_images/3985656-c543b937ac6e79bb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/320) | ||
|
||
![专题](http://upload-images.jianshu.io/upload_images/3985656-bd606aac3b5491c2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/320) | ||
|
||
![分类](http://upload-images.jianshu.io/upload_images/3985656-fa9565158376d439.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/320) | ||
|
||
![商品列表](http://upload-images.jianshu.io/upload_images/3985656-788b7fd2c4a558d0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/320) | ||
|
||
![商品详情](http://upload-images.jianshu.io/upload_images/3985656-99a6e0a57778d85f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/320) | ||
|
||
![购物车](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-dff837e6b2ec87b3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/320) | ||
|
||
|
||
### 功能列表 | ||
+ 首页 | ||
+ 分类首页、分类商品、新品首发、人气推荐商品页面 | ||
+ 商品详情页面,包含加入购物车、收藏商品、商品评论功能 | ||
+ 搜索功能 | ||
+ 专题功能 | ||
+ 品牌功能 | ||
+ 完整的购物流程,商品的加入、编辑、删除、批量选择,收货地址的选择,下单支付 | ||
+ 会员中心(订单、收藏、足迹、收货地址、意见反馈) | ||
.... | ||
|
||
### 最后 | ||
+ 喜欢别忘了 Star | ||
+ 微信号 tumobi | ||
+ 交流 QQ 群:497145766 | ||
> Name: pero 罗 | ||
> | ||
> QQ: 1025558554 | ||
> | ||
> Email:1025558554@qq.com |