Giter Site home page Giter Site logo

levyangs / irh Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hmingr/irh

1.0 0.0 0.0 2.59 MB

基于微服务和智能推荐的校园服务平台。主要使用springBoot、SpringCloud、SpringOauth2、Mybaits搭建。主要功能有出售二手商品、智能推荐、发布文章、消息通知、公益活动、校园通知、AI实名认证等集校园生活于一体的服务平台。

Home Page: http://www.imuster.top

Java 93.33% FreeMarker 1.78% Dockerfile 0.03% TSQL 4.85%

irh's Introduction

说明

由于开启了https,所以本地测试时必须修改hosts映射到 www.imuster.top 才能进行本地测试。

后台管理的仓库地址:https://github.com/hhcol620/IRH_manage.git

微信小程序端的仓库地址:https://github.com/hhcol620/wechatApp.git

项目结构

image-20200728145104647

系统架构

image-20200728170119794

所需要的环境

  1. Java 8

  2. mysql 5.7

  3. redis 5.0.1

  4. mongodb

  5. elastic search

  6. 阿里的fastDFS

  7. nginx

  8. RabbitMQ

Maven配置

如果maven下载的jar包下载不全,可以参考我的maven镜像配置

<mirror>
    <id>alimaven</id>
   <name>aliyun maven</name>
 <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
   <mirrorOf>central</mirrorOf>
</mirror>

<mirror>
          <id>central</id>
          <name>Maven Repository Switchboard</name>
          <url>http://repo1.maven.org/maven2/</url>
          <mirrorOf>central</mirrorOf>
</mirror>

修改环境配置

可以直接在最外层的 pom.xml 中的 中修改成自己的配置,默认是使用 id 为 hmr 的配置。

配置第三方API

说明:第三方API需要自己去相应的官网注册申请,并查看对应的SDK文档;一般来说,使用以下API都可以免费使用限量次数。

  1. 配置图像内容识别第三方API

    图像内容识别API主要是使用在用户实名认证时提交的学生证或者身份证,用于提取出姓名和身份号。

    百度云AI平台注册账号之后搜索 OCR ,在控制台创建 iOCR通用版 即可自定义图片识别模版。

    image-20200728155320867

    申请成功之后可根据官方提供的文档申请accessToken ,然后将accessToken、创建的模版签名、填入 irh-security模块下的application.yml中,如下图

    image-20200728153145952

  2. 配置内容审核第三方API

    内容审核主要是使用在发布商品时,对用户填写的标题、主体信息、图片进行审核;主要审核的是内容是否含有暴力、色情、政治相关的信息。

    使用的是华为云内容审核

    image-20200728155244041

    申请成功之后修改 irh-common-core模块中的HuaweiModerationTextContentUtil.java下无参构造函数中的ak和sk,如下图

    image-20200728153837040

小程度截图:

image-20200728171129146

​ 首页

image-20200728171231041

​ 公益页面

2FBC5F03BDF7D9C0658A89B1A1FCE007

​ 个人中心

EDAF65BF9A771E40C85A03362DCB9979

​ 登陆页面

后台管理页面截图:

image-20200728180132543

image-20200728180157893

irh's People

Contributors

hmingr avatar

Stargazers

 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.