微信小程序-京东购物系列一
一.node-js后台服务器创建
https://mlab.com/ monggoDb数据库
https://www.heroku.com node后台服务器
二.后台关联
1.keys.js
monggoDb数据关联
module.exports = {mongoURI: 'mongodb://user:password@ds223542.mlab.com:23542/taxware-api',secretOrKey: 'secret'
};
2.node后台上传heroku服务器
首先下载安装heroku-cli工具
https://devcenter.heroku.com/articles/heroku-cli
1.后台代码git到本地仓库
2.命令行中上传代码到heroku服务器
命令如下:
PS C:\Users\Administrator\Desktop\jd-interface> heroku login //命令中登录heroku heroku: Press any key to open up the browser to login or q to exit:» Warning: If browser does not open, visit» https://cli-auth.heroku.com/auth/browser/d33e41e0-4afe-4ad4-8c2e-64968973f718 Logging in... done Logged in as sjxajhhaozi@foxmail.com //登录成功标志PS C:\Users\Administrator\Desktop\jd-interface> heroku create //创建服务器应用 Creating app... done, ⬢ shrouded-headland-66332 //创建后的应用名字 https://shrouded-headland-66332.herokuapp.com/ | https://git.heroku.com/shrouded-headland-66332.git PS C:\Users\Administrator\Desktop\jd-interface> heroku git:remote -a shrouded-headland-66332 //本地git仓库关联heroku set git remote heroku to https://git.heroku.com/shrouded-headland-66332.git PS C:\Users\Administrator\Desktop\jd-interface> git push heroku master //后台代码上传到heroku Enumerating objects: 200, done. Counting objects: 100% (200/200), done. Delta compression using up to 4 threads Compressing objects: 100% (181/181), done. Writing objects: 100% (200/200), 41.27 KiB | 358.00 KiB/s, done. Total 200 (delta 73), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Node.js app detected remote: remote: -----> Creating runtime environment remote: remote: NPM_CONFIG_LOGLEVEL=error remote: NODE_ENV=production remote: NODE_MODULES_CACHE=true remote: NODE_VERBOSE=false remote: remote: -----> Installing binaries remote: engines.node (package.json): unspecified remote: engines.npm (package.json): unspecified (use default) remote: remote: Resolving node version 10.x... remote: Downloading and installing node 10.13.0... remote: Using default npm version: 6.4.1 remote: remote: -----> Building dependencies remote: Installing node modules (package.json + package-lock) remote: remote: > bcrypt@2.0.1 install /tmp/build_6e5670a3cba76a8761ecd1e7cf3f0284/node_modules/bcrypt remote: > node-pre-gyp install --fallback-to-build remote: remote: [bcrypt] Success: "/tmp/build_6e5670a3cba76a8761ecd1e7cf3f0284/node_modules/bcrypt/lib/binding/bcrypt_lib.node" is installed via remote remote: added 210 packages from 130 contributors and audited 388 packages in 6.039s remote: found 1 low severity vulnerability remote: run `npm audit fix` to fix them, or `npm audit` for details remote: remote: -----> Caching build remote: - node_modules remote: remote: -----> Pruning devDependencies remote: audited 388 packages in 1.908s remote: found 1 low severity vulnerability remote: run `npm audit fix` to fix them, or `npm audit` for details remote: remote: -----> Build succeeded! remote: -----> Discovering process types remote: Procfile declares types -> (none) remote: Default types for buildpack -> web remote: remote: -----> Compressing... remote: Done: 20.9M remote: -----> Launching... remote: Released v3 remote: https://shrouded-headland-66332.herokuapp.com/ deployed to Heroku remote: remote: Verifying deploy... done. To https://git.heroku.com/shrouded-headland-66332.git* [new branch] master -> master PS C:\Users\Administrator\Desktop\jd-interface> heroku open //检查是否成功
三.微信小程序开发者注册
https://developers.weixin.qq.com/miniprogram/dev/
参考官方开发文档进行注册操作创建
转载于:https://www.cnblogs.com/pachulia/p/10028217.html
微信小程序-京东购物系列一相关推荐
- [转]微信小程序之购物车 —— 微信小程序实战商城系列(5)
本文转自:http://blog.csdn.net/michael_ouyang/article/details/70755892 续上一篇的文章:微信小程序之商品属性分类 -- 微信小程序实战商城 ...
- 微信小程序:商城系列专辑(开发指南+精品Demo)
商城开发指南: 微信小程序商城模块 | 链接 使用zanui开发小程序微商城(模板组件的开发规范)| 链接 ecshop商城开发:用户信息的获取和缓存,地址信息的缓存 | 链接 微信小程序商城 - 基 ...
- 微信小程序之购物车 —— 微信小程序实战商城系列(5)
续上一篇的文章:微信小程序之商品属性分类 -- 微信小程序实战商城系列(4) 自从认识某人后,我收获了两个成功.登录成功.付款成功,而且还拥有了自己的一辆车: 购物车 也发现了自己的不足之处: 余额不 ...
- 【毕业设计】基于微信小程序的购物商城系统 开题报告
毕业设计级别的微信小程序购物商城系统 通常大四上学期开学时开始准备毕业设计的,首先是确定毕业设计的主题,看自己想做什么方向的毕设题目,可以选取之前接触过的,做过的东西,这样快一些,如果选的是没接触过的 ...
- 微信小程序之仿淘宝分类入口 —— 微信小程序实战商城系列(2)
分类入口,已经成为了商城项目必须的布局之一,这里以仿照淘宝的分类入口来做案例 下图红框部分,就是本文重点讲解部分,另外本文并没有写点击某个入口跳转页面. 如需学习页面跳转的同学,可以参考此文 微信小程 ...
- 微信小程序之图表系列——canvas绘制饼状图,带点击效果
一图胜千言,相信很多开发者都没有绕开过图表制作这个坑,在小程序中也是,当然可以用第三方echart等制图插件来做,但小程序要求代码量最大12M,还得分好几个包,一个echart插件就将近1M,要是只做 ...
- 微信小程序地图插件系列(二):微信小程序使用百度地图(不定期补充知识点)
前言 当我们在使用一些地图相关软件的情况下,他会显示选择那种.一般都有高德地图,百度地图等.那么我们在微信小程序中也想使用这种功能需要怎么办呢? 本文地址链接 微信小程序-百度地图SDK官方文档 微信 ...
- 微信小程序实现购物商城(附源码)
2018年本人做了一个淘宝购物返利的微信公众号,截至目前已运营了近5年的时间,也陆续积累了不少粉丝.近日,有部分用户反馈是否可以在公众号上展示促销商品列表,而且要具备搜索功能.为感谢粉丝朋友们的长期支 ...
- 基于微信小程序的购物平台设计与实现-计算机毕业设计源码+LW文档
毕业论文(设计.创作)开题报告 一.选题的背景与意义(本研究的现状综述.理论价值与实际意义:设计或创作的思路.观念.表现技法及理论意义) 研究目的:通过这次的课题研究希望使自己能够使用所学的相关软件技 ...
最新文章
- Http协议中Get和Post的浅谈
- 计算点、线、面等元素之间的交点、交线、封闭区域面积和闭合集(续7)
- 组数总和—leetcode39
- 高并发架构系列:Redis为什么是单线程、及高并发快的3大原因详解
- 工具杂记-notepad++正则表达式匹配替换
- python filter函数 字符串_Python实现filter函数实现字符串切分
- 利用screen和nohup让Linux服务器后台运行程序
- 小技巧:Go怎么样获取常驻内存子进程的输出
- foreach语句使用总结
- 汇编语言与计算机体系结构
- 自动驾驶_感知_分割_车道线检测
- Java实现登录验证码功能
- python怎么生成图_python 生成图表
- arcgis python计算面积_如何在ARCMAP里面计算面积
- MATLAB制作歌曲
- Ubuntu虚拟机使用桥接模式设置IP
- JavaScript生成字符画(ASCII Art)
- 《一百岁感言》 杨绛
- 京东2017年4月7日笔试编程原题解析(站队、终结者C)
- php path separator,php_DIRECTORY_SEPARATOR 和 PATH_SEPARATOR
热门文章
- linux修改文件夹名称_1.3.2 对 Hello Word! 程序代码进行编辑修改
- php函数文件,PHP文件函数大全
- react 调用 html5,React-Native Webview 和H5交互的两种方式
- python中xpath用法_Python中的xpath基础使用
- 如何删除写保护的文件_如何找回已删除或永久删除的Office Excel文件
- Gitee Pages 静态网页托管服务
- JSP EL表达式 将数组拼接成字符串
- mysql命令:查看表结构
- 触发bfc的html元素,什么是BFC? CSS 使用伪元素清除浮动的方法
- hive链接mysql的shell命令_Hive shell 基本命令