1 Star 0 Fork 0

范伟 / drop_server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

水滴 后端服务

图片上传服务端文档 简单介绍:https://help.aliyun.com/document_detail/31926.html Nodejs 代码:https://help.aliyun.com/document_detail/322691.htm?spm=a2c4g.11186623.0.0.1607566aUI6l0V#task-2121074 发送短信的阿里云文档 https://dysms.console.aliyun.com/quickstart

接口规范 返回数据的接口规范:

{ code: 200, // 10001 10002 data: [], // {} message: 'error', page: { start: 0, length: 20, total: 100, }, debug: '', key: '', } 使用 JWT 保存登录状态 相关文档:https://docs.nestjs.com/security/authentication

pnpm i @nestjs/jwt @nestjs/passport passport-jwt passport -S 注册 JwtModule 添加自定义 JWT 策略 创建 Guard,引入 JWT 策略 修改登录接口 PC 端页面获取 JWT 使用 plop 生成模版代码 文档:https://plopjs.com/documentation/ hbs:https://handlebarsjs.com/guide/#what-is-handlebars

pnpm i plop -D 配置 plopfile.js 文件 npx plop 按照商品的门店距离做排序 createQueryBuilder 自定义 SQL 查询 ST_Distance 计算两个地理对象之间的最短距离 ST_GeomFromText 把文本表示形式转换为地理对象(如点、线、多边形等) getRawAndEntities 获取自定义的查询结果 距离计算的两个扩展问题 坐标转换问题: https://github.com/wandergis/coordtransform 性能优化的问题:(先缩小范围再去排序)geohash https://github.com/sunng87/node-geohash 微信公众号网页授权文档 网页授权:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html 查看微信接口权限:https://mp.weixin.qq.com/advanced/advanced?action=table&token=360474277&lang=zh_CN 配置微信允许的域名:https://mp.weixin.qq.com/cgi-bin/settingpage?t=setting/function&action=function&token=360474277&lang=zh_CN 微信支付文档 接入文档:https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_1.shtml API 文档: https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_4.shtml 第三方微信支付 SDK:https://github.com/klover2/wechatpay-node-v3-ts 线上体验地址 http://water-drop.yondu.vip

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

水滴 后端服务 图片上传服务端文档 简单介绍:https://help.aliyun.com/document_detail/31926.html Nodejs 代码:https://help.aliyun.com/document_detail/322691.htm?spm=a2c4g.11186623.0.0.1607566aUI6l0V#task-2121074 发送短信的阿里云文档 https://dysms.console.aliyun.com/quickstart 接口规范 返回数据的接口规范: { code: 200, // 10001 10002 data: [], // {} message: 'error', page: { start: 0, length: 20, total: 100, }, debug: '', key: '', } 使用 JWT 保存登录状态 相关文档:https://docs.nestjs.com/security/authentication pnpm i @nestjs/jwt @nestjs/passport passport-jwt passport -S 注册 JwtModule 添加自定义 JWT 策略 创建 Guard,引入 JWT 策略 修改登录接口 PC 端页面获取 JWT 使用 plop 生成模版代码 文档:https://plopjs.com/documentation/ hbs:https://handlebarsjs.com/guide/#what-is-handlebars pnpm i plop -D 配置 plopfile.js 文件 npx plop 按照商品的门店距离做排序 createQueryBuilder 自定义 SQL 查询 ST_Distance 计算两个地理对象之间的最短距离 ST_GeomFromText 把文本表示形式转换为地理对象(如点、线、多边形等) getRawAndEntities 获取自定义的查询结果 距离计算的两个扩展问题 坐标转换问题: https://github.com/wandergis/coordtransform 性能优化的问题:(先缩小范围再去排序)geohash https://github.com/sunng87/node-geohash 微信公众号网页授权文档 网页授权:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html 查看微信接口权限:https://mp.weixin.qq.com/advanced/advanced?action=table&token=360474277&lang=zh_CN 配置微信允许的域名:https://mp.weixin.qq.com/cgi-bin/settingpage?t=setting/function&action=function&token=360474277&lang=zh_CN 微信支付文档 接入文档:https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_1.shtml API 文档: https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_4.shtml 第三方微信支付 SDK:https://github.com/klover2/wechatpay-node-v3-ts 线上体验地址 http://water-drop.yondu.vip ## Description [Nest](https://github.com/nestjs/nest) framework TypeScript starter repository. ## Installation ```bash $ npm install ``` ## Running the app ```bash # development $ npm run start # watch mode $ npm run start:dev # production mode $ npm run start:prod ``` ## Test ```bash # unit tests $ npm run test # e2e tests $ npm run test:e2e # test coverage $ npm run test:cov ``` ## Support Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support). ## Stay in touch - Author - [Kamil Myśliwiec](https://kamilmysliwiec.com) - Website - [https://nestjs.com](https://nestjs.com/) - Twitter - [@nestframework](https://twitter.com/nestframework) ## License Nest is [MIT licensed](LICENSE).

简介

nestjs学习 展开 收起
NodeJS 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/dtvikey_admin/drop_server.git
git@gitee.com:dtvikey_admin/drop_server.git
dtvikey_admin
drop_server
drop_server
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891