# 微商城
## 项目截图
### 微信小程序
<img src="http://res.cloudinary.com/dcemaqxcp/image/upload/c_scale,q_40,w_640/v1495726849/D55DF2778A92A721C4B5A509AE7ACD96_lkz2g8.jpg" width="320" alt=""/>
## 项目环境搭建
1 **克隆代码**
```
git clone https://github.com/shen100/wemall.git
```
2 **配置nginx**
将`wemall/nginx/dev.wemall.com.conf`文件拷贝到nginx的虚拟主机目录下
3 **配置hosts**
127.0.0.1 dev.wemall.com
4 **创建数据库**
先创建数据库如`wemall`,再use wemall,然后导入`wemall/sql/wemall.sql`
>注意: 本地开发模式下,数据库是`wemall`,用户是`root`,密码是`test1234`
>可以通过`wemall/configuration.json`配置文件进行修改
5 **安装node.js第三方模块**
进入`wemall/nodejs`目录,运行命令
```
npm install
```
如果安装失败,或速度慢,可尝试阿里的镜像
```
npm install --registry=https://registry.npm.taobao.org
```
6 **启动node.js程序**
进入`wemall/nodejs`目录,运行命令
```
npm start
```
再开一个新的命令行窗口, 运行命令
```
npm run staticServ
```
7 **运行go程序**
进入`wemall`目录下,运行
```
go run main.go
```
## 技术选型
### 前端
* web服务器: nginx
* 后台渲染: node.js
* M站框架集: vue, vuex, vue-router
* M站UI组件库: vux
* 后台管理框架集: react, redux, react-router-redux
* 后台管理UI组件库: antd
* 数据可视化: echarts
* 富文本编辑器: ueditor
* 打包工具: webpack
* 构建工具: gulp
### 后台
* web框架: iris
* 路由: httprouter
* 持久层框架: gorm
* 数据库: mysql
### go依赖的第三方库
| 库 | 说明 |
|:---------|:-----------------------|
| gopkg.in/kataras/iris.v6 | iris web框架 |
| github.com/jinzhu/gorm | gorm 持久层框架 |
| github.com/satori/go.uuid | uuid生成工具 |
## 项目结构
| 目录或文件 | 目录或文件 | 说明 |
|:---------|:-----------------------|:-------:|
| docs | | 文档|
| go | | 后台代码目录|
| | config | 配置|
| | controller | 控制器|
| | model | 数据模型|
| | utils | 实用工具|
| nginx | | nginx配置|
| nodejs | | 前端项目目录|
| sql | | |
| weixin | | 微信小程序项目目录 |
| | wemall.sql | sql文件 |
| configuration.json | | 项目配置文件 |
| main.go | | go主程序入口|
## 最后
求star,star就是继续下去的动力
没有合适的资源?快使用搜索试试~ 我知道了~
微商城(含微信小程序)完整源码+配置指南
共410个文件
js:144个
png:98个
gif:45个
3星 · 超过75%的资源 需积分: 49 497 下载量 155 浏览量
2017-06-02
15:08:07
上传
评论 34
收藏 3.48MB ZIP 举报
温馨提示
基于vue, react, node.js, go开发的微商城(含微信小程序)
资源推荐
资源详情
资源评论
收起资源包目录
微商城(含微信小程序)完整源码+配置指南 (410个子文件)
.babelrc 102B
dev.wemall.com.conf 2KB
www.shen100.com.conf 1KB
ueditor.css 44KB
ueditor.min.css 34KB
video-js.css 21KB
image.css 19KB
video.css 15KB
attachment.css 15KB
video-js.min.css 11KB
shCoreDefault.css 7KB
scrawl.css 4KB
codemirror.css 3KB
charts.css 3KB
background.css 2KB
emotion.css 2KB
dialogbase.css 2KB
app.css 2KB
music.css 2KB
edittable.css 1KB
template.css 1KB
editProduct.css 958B
index.css 545B
orderAnalyze.css 544B
webuploader.css 515B
help.css 395B
editCategory.css 386B
editCategory.css 305B
productManage.css 208B
categoryManage.css 177B
productAnalyze.css 102B
iframe.css 42B
vjs.eot 3KB
.eslintrc 804B
UEditorSnapscreen.exe 508KB
wface.gif 49KB
jxface2.gif 40KB
yface.gif 28KB
bface.gif 27KB
icons.gif 20KB
file-icons.gif 20KB
file-icons.gif 20KB
tface.gif 19KB
fface.gif 18KB
cface.gif 8KB
icons-all.gif 4KB
videologo.gif 2KB
cancelbutton.gif 1KB
button-bg.gif 1KB
lock.gif 1KB
alignicon.gif 1KB
word.gif 1019B
icon_doc.gif 1012B
icon_psd.gif 1009B
icon_rar.gif 1007B
icon_xls.gif 1005B
icon_mv.gif 1001B
icon_ppt.gif 1001B
icon_pdf.gif 996B
icon_mp3.gif 986B
icon_txt.gif 970B
icon_jpg.gif 950B
icon_exe.gif 949B
icon_chm.gif 923B
loading.gif 734B
icons.gif 453B
icons.gif 453B
icons.gif 453B
success.gif 445B
success.gif 445B
success.gif 445B
cursor_v.gif 370B
cursor_h.gif 253B
anchor.gif 184B
unhighlighted.gif 111B
highlighted.gif 111B
bg.gif 84B
pagebreak.gif 54B
0.gif 43B
spacer.gif 43B
.gitignore 108B
product.go 10KB
category.go 6KB
config.go 6KB
order.go 4KB
user.go 4KB
user.go 3KB
upload.go 3KB
ueditor.go 3KB
order.go 3KB
route.go 2KB
config.go 2KB
visit.go 2KB
utils.go 2KB
uservisit.go 2KB
main.go 1KB
product.go 1KB
category.go 612B
Image.go 375B
errorcode.go 276B
共 410 条
- 1
- 2
- 3
- 4
- 5
APPx应用魔方
- 粉丝: 807
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页