Git Product home page Git Product logo

psndiscountassistant's Introduction

扫码查看实际效果:

二维码

为什么要做这个

PS4 商店的网络实在是太不友好了,速度极慢,再加上游戏检索、折扣查看等功能并不太方便所以就做了这么一个小程序。每天定时从 ps4 商店获取最新的游戏价格,供大家查看,同时也可以设置折扣推送(通过邮件和微信通知).

开发语言介绍:

小程序

注意:npm 中的 echart 体积过大,可以通过 echart 在线定制页面,自定义 echart,减小体积。

没有使用原生开发,而是用一个 vue 的框架:mpvue.此框架性能相比原生会差一些,实际开发中偶尔会有列表页卡死,无法滑动的情况出现。

http 请求库使用的flyio

UI 库使用的是:有赞的小程序库,vant

爬虫

爬虫比较简单,分析港服商店页面获取 api,然后再用代码请求获取游戏的价格数据,存储到 mysql 数据库中。使用 node.js+node-schedule 实现。注意代码使用的是:typescript

java 后台服务

java 后台基于 springboot+mysql+redis+jwt 实现。用于实现游戏查询,打着提醒推送等一系列功能。

部署

后台已经集成 docker,部署很简单,配好参数就行了。

  1. 修改dockerDeploy/jar_start.sh文件,配置邮件服务器、小程序 id、secrt 等参数
  2. 设置环境变量MYSQL_PASS,配置 mysql root 密码。
  3. 打 jar 包,进入 service 目录,执行mvn package,需要 maven 环境。
  4. 启动 docker-compose,进入 dockerDeploy 目录,运行:docker-compose up -d

**注意:**首次运行需要创建数据库 psn,在 mysql 启动后连接数据库,手动创建数据库psn。然后重启应用docker-compose restart

psndiscountassistant's People

Contributors

fleyx avatar

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.