GithubHelp home page GithubHelp logo

luotuo19880328 / nodejs-mysql-wechat Goto Github PK

View Code? Open in Web Editor NEW
42.0 2.0 14.0 29.94 MB

针对微信小程序的商城api,基于nodejs+mysql+express

License: MIT License

JavaScript 98.86% HTML 0.85% CSS 0.10% Pug 0.19%

nodejs-mysql-wechat's Introduction

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/

nodejs-mysql-wechat's People

Contributors

millet0328 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nodejs-mysql-wechat's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.