Open Source Easy Classroom Operation Manual-yiketang

title: Open Source Easy Classroom Operation Manual
date: 2022-01-05 15:10:43.915
updated: 2023-04-24 10:21:28.476
url: https://www.yby6.com/archives/yiketang
categories:
- Play series from scratch
tags:

Foreword

Carefully read the document document above some groups will not answer again

Note: If the service_pay module does not have WeChat payment configuration, please switch to the branch master-castration

Open source microservice exchange group

  • WeChat group: public account search spring open source exchange group click to add group

  • WeChat scan code (click to add group)

  • QQ group: 598347590 (may be delayed)

One, environment construction

JDK >= 1.8 (version 1.8 is recommended)
Mysql >= 5.7.0 (version 5.7 is recommended)
Maven >= 3.0
redis >= last
nacos >= last (version 1.X is recommended)
sentile >= 2.0 (you can not build it)
nodejs >= last (version 6.x is recommended)

Module List

top.yangbuyi
├── yangbuyi_video_portal // front-end portal [80]
├── yangbuyi_video_ui // front-end (back-end management) [81]
├── yangbuyi-gateway // gateway module [9728]
├── yangbuyi-api // interface module
│ └── api_pay // Alipay payment interface
│ └── api_user // user interface
│ └── api_video // work interface
│ └── api_vod // video on demand interface
│ └── api_websocket // message communication interface
├── yangbuyi-common // common module
│ └── common_utils // tools module
│ └── service_base // business configuration module
│ └── service_security // authentication module
├── yangbuyi_service // business module
│ └── service_authority // login system module (backend)
│ └── service_user // login system module (front end)
│ └── service_cms // portal system module
│ └── service_pay // payment system module
│ └── service_video // work system module
│ └── service_sms // message sending module
│ └── service_upload // file system module
│ └── service_vod // VOD module
│ └── service_websocket // message communication module
├──pom.xml // public dependencies

2. Running system (preparation environment)

1. Go to pull source code domestic-GITEE foreign-GITHUB (opens new window) ) Download and decompress to the working directory
2. Import to idea, use idea to open the project and then import, it will Automatically load Maven dependency packages, the initial loading will be slower (according to your own network conditions)
3. Create database video_db and import data script video_db.sql
4, configure nacos persistence, modify the conf/application.properties file, and add support for mysql data source configuration
# db mysql
spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://localhost:3306/nacos-config?characterEncoding=utf8 &connectTimeout=1000 &socketTimeout=3000 &autoReconnect=true &useUnicode=true & useSSL=false & serverTimezone=UTC
db.user=root
db.password=password
5. Configure redis Go to the configuration file to see what needs to be configured
6. Configure sentinel (can not be configured)
5. Import configuration to nacos

image-1653537475225

5.1, Alibaba Cloud VOD application
Activate by yourself

image.png

Select East China storage, if not, you need to modify the video-on-demand code (AliyunVodSDKUtils) Tools can be modified

image.png

Media library view video address

image.pngimage.png

5.2. Change the corresponding configuration of the video on demand backend
Just copy the Aliyun account and don't ask me to borrow the Aliyun account in the group. . .

image.pngimage.pngimage.png

Note: OSS object storage and video on demand all need to use this ACCESS KEY configuration to know the workaround

5.3, configure SMS sending (you don’t need to remove it yourself)
Or use Tencent Cloud slider verification code

slider captcha

5.4, Configure Alipay sandbox payment

Alipay payment article
Or watch the video to configure Official Account Search: Spring Open Source Exchange Group

Easy classroom configuration video explanation
6. Maven operation

image-1653537522029

7. Open the startup class under the yangbuyi_service module of the project, and the startup is successful if the following picture appears.

image-1653537531675

8. Download vod video on demand dependency

Open the yangbuyi_video/videoVodJar of the project
aliyun-sdk-vod-upload
Copy the vod-mvn code to execute the pom and it will not become popular

# Copy the following command to execute
mvn install:install-file -DgroupId=com.aliyun -DartifactId=aliyun-sdk-vod-upload -Dversion=1.4.14 -Dpackaging=jar -Dfile=aliyun-java-vod-upload-1.4.14.jar

image-1653537545744

9. Configure redis by yourself and view the configuration in each file of nacos
10. Open yangbuyi_service module bootstrap.yml and edit nacos service registration address or configuration center address server-addr

image-1653537553194

11, start the test AuthorityApplication module, if the following start is successful.

image-1653537562603image-1653537571037

12. Start all the modules, do not want to start the module refer to module list

image-1653537577908

3. Run the front-end system

yangbuyi_video_portal portal system => nuxtjs
yangbuyi_video_ui backend management system => vue

yangbuyi_video_ui startup project modify the backend address: vue.config.js
yangbuyi_video_portal startup project modify the backend address: utils => request.js

1, start the back-end management system, open yangbuyi_video_ui and execute npm install Run the system npm run dev => admin/111111 (super administrator)

image-1653537584619

2, start the portal system, open yangbuyi_video_portal, execute npm install run the system npm run dev

image-1653537590424image-1653537606434

If you have any questions, please ask and answer in the group.

Other Articles

1. Fun with Tencent slider verification code from zero 2. Fun with face recognition from zero 3. Fun with QQ login from zero

My blog is about to be synchronized to Tencent Cloud+ Community, everyone is invited to join: https://cloud.tencent.com/developer /support-plan?invite_code=2fe81frlwha1