2 Star 16 Fork 8

vux / nodejs-mysql-wechat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

nodejs-mysql-wechat

基于nodejs + mySQL + express的商城后台API接口,同时支持微信小程序的商城API接口

在线预览,请点击API文档

安装api文档插件

npm i apidoc -g

进入项目

cd {项目目录}

安装依赖包,必须cnpm

$ cnpm i

还原数据库

  1. 在mysql中创建wechat-mall数据库
  2. 将wechat-mall.sql文件还原至wechat-mall数据库
  3. 在config文件夹mysql.js文件,配置数据库、账户、密码;

修改小程序配置

  1. 注册小程序开发平台,获取小程序appid、小程序密钥
  2. 在config文件夹wx.js文件,修改成自己的appid、小程序密钥

重新生成API文档

$ npm run api

启动

$ npm start

后台API文档地址

http://localhost:3003/api/

商城管理后台地址

http://localhost:3003/admin/
The MIT License (MIT) Copyright (c) 2017 silky Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

针对微信小程序的商城api,基于nodejs+mysql+express 展开 收起
JavaScript 等 4 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/vux/nodejs-mysql-wechat.git
git@gitee.com:vux/nodejs-mysql-wechat.git
vux
nodejs-mysql-wechat
nodejs-mysql-wechat
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891