{"id":13601317,"url":"https://github.com/shen100/wemall","last_synced_at":"2025-05-15T10:07:45.622Z","repository":{"id":41562631,"uuid":"90690924","full_name":"shen100/wemall","owner":"shen100","description":"基于react, node.js, go开发的微商城（含微信小程序）","archived":false,"fork":false,"pushed_at":"2023-04-06T05:23:31.000Z","size":9881,"stargazers_count":2291,"open_issues_count":19,"forks_count":596,"subscribers_count":140,"default_branch":"master","last_synced_at":"2025-04-14T16:57:49.604Z","etag":null,"topics":["go","node","react","vue","wexin"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shen100.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-05-09T01:58:15.000Z","updated_at":"2025-04-14T10:42:44.000Z","dependencies_parsed_at":"2022-09-01T14:04:18.588Z","dependency_job_id":"28c24536-c436-4aea-9895-45d587af601f","html_url":"https://github.com/shen100/wemall","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen100%2Fwemall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen100%2Fwemall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen100%2Fwemall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shen100%2Fwemall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shen100","download_url":"https://codeload.github.com/shen100/wemall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319720,"owners_count":22051073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","node","react","vue","wexin"],"created_at":"2024-08-01T18:01:00.369Z","updated_at":"2025-05-15T10:07:40.608Z","avatar_url":"https://github.com/shen100.png","language":"Go","funding_links":[],"categories":["Go","Repositories"],"sub_categories":[],"readme":"# 微商城\n\n\u003e 近期主要精力在开发[golang123](https://github.com/shen100/golang123)， wemall先暂停3周\n\n## 项目截图\n### 微信小程序\n\u003cimg src=\"http://res.cloudinary.com/dcemaqxcp/image/upload/c_scale,q_40,w_640/v1495726849/D55DF2778A92A721C4B5A509AE7ACD96_lkz2g8.jpg\" width=\"320\" alt=\"\"/\u003e\n\n## 项目环境搭建\n* **克隆代码**\n\n```\n$ git clone https://github.com/shen100/wemall.git\n``` \n\n* **修改configuration.json**  \n进入wemall目录，将`configuration.dev.json`改名为`configuration.json`, 再找到`UploadImgDir`，填写图片上传目录为 `{wemall所在目录}/upload/img`, 举例：C:\\dev\\src\\wemall\\upload\\img (Windows系统）或 /dev/src/wemall/upload/img (Mac OS X 或Linux系统)\n  \n```\n{\n  \"go\": {\n    \"UploadImgDir\": \"\" /*图片上传的目录*/\n  }\n}\n```  \n\n* **修改config.js**  \n进入`wemall/weixin/config`目录，将`config.dev.js`改名为`config.js`\n\n* **配置nginx**  \n将`wemall/nginx/dev.wemall.com.conf`文件拷贝到nginx的虚拟主机目录下, 再将`wemall/nginx/server.key`和`wemall/nginx/server.crt`拷贝到某个目录下，然后修改nginx的虚拟主机目录下的`dev.wemall.com.conf`文件中`server.key`和`server.crt`的路径  \n\n* **配置hosts**    \n127.0.0.1 dev.wemall.com  \n \n* **创建数据库**  \n先创建数据库如`wemall`，再use wemall，然后导入`wemall/sql/wemall.sql` \n\u003e注意: 本地开发模式下，数据库是`wemall`，用户是`root`，密码是`test1234`  \n\u003e可以通过`wemall/configuration.json`配置文件进行修改  \n\n* **安装node.js第三方模块**  \n进入`wemall/nodejs`目录，运行命令\n  \n```\n$ npm install\n``` \n\n如果安装失败，或速度慢，可尝试阿里的镜像\n\n```\n$ npm install --registry=https://registry.npm.taobao.org\n```\n\n* **启动node.js程序**  \n进入`wemall/nodejs`目录，运行命令\n\n```\n$ npm start\n```\n\n再开一个新的命令行窗口， 运行命令\n\n```\n$ npm run staticServ\n```\n\n* **运行go程序**  \n进入`wemall`目录，`将configuration.dev.json`改名`为configuration.json`, 运行\n\n```\n$ go run main.go\n```\n\n* **运行微信小程序**   \n进入`wemall/weixin`目录，`将config.dev.js`改名`为config.js`, 然后通过`微信web开发者工具`来运行小程序  \n\n* **访问网站后台**  \n在浏览器地址栏中输入https://dev.wemall.com/admin  \n\n## 技术选型\n### 前端\n* web服务器: nginx\n* 后台渲染: node.js\n* M站框架集: vue, vuex, vue-router\n* M站UI组件库: vux\n* 后台管理框架集: react, redux, react-router-redux\n* 后台管理UI组件库: antd\n* 数据可视化: echarts\n* 富文本编辑器: ueditor\n* 打包工具: webpack\n* 构建工具: gulp  \n\n### 后台\n* web框架: iris\n* 路由: httprouter\n* 持久层框架: gorm\n* 数据库: mysql \n\n### go依赖的第三方库\n\n| 库 | 说明              |\n|:---------|:-----------------------|\n| gopkg.in/kataras/iris.v6   | iris web框架   |\n| github.com/jinzhu/gorm     | gorm 持久层框架 |\n| github.com/satori/go.uuid  | uuid生成工具    |\n\n## 项目结构\n| 目录或文件 | 说明     |  \n|:---------|:-------:|\n| docs     |  文档|\n| config                 |  配置|\n| controller             |  控制器|\n| model                  |  数据模型|\n| utils                  |  实用工具|\n| nginx    |  nginx配置及证书|\n| nodejs   |  前端项目目录|\n| sql      |  sql文件目录|\n| weixin   | 微信小程序项目目录 |\n| configuration.dev.json  | 项目配置文件 |\n| main.go  | go主程序入口|\n\n## 技术交流  \nqq群: 32550512  \n\n## 最后\n求star，star就是继续下去的动力  \n\n## License\n[GPL](https://github.com/shen100/wemall/blob/master/LICENSE \"\")      \nCopyright (c) 2013-present, shen100","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshen100%2Fwemall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshen100%2Fwemall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshen100%2Fwemall/lists"}