1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/Attem_Porous-video-website

В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
Внести вклад в разработку кода
Синхронизировать код
Отмена
Подсказка: Поскольку Git не поддерживает пустые директории, создание директории приведёт к созданию пустого файла .keep.
Loading...
README.md

Структура проекта

frontEnd: фронтенд-проект, построенный с использованием Vue

video_website: проект, построенный с использованием Java и фреймворка Spring Boot

Фронтенд

После установки node и npm

cd frontEnd
npm i
npm run dev

База данных MySQL

Создать три таблицы

create table bullet
(
    id          bigint auto_increment comment 'Номер сообщения, автоинкремент'
        primary key,
    video_id    bigint                        not null comment 'ID видео, к которому относится сообщение',
    user_id     bigint                        not null comment 'ID пользователя, отправившего сообщение',
    time        double                        null comment 'Время появления сообщения в видео (в секундах)',
    content     varchar(2048)                 not null comment 'Содержимое сообщения',
    color       varchar(50) default '#000000' not null comment 'Цвет сообщения',
    create_time datetime                      not null comment 'Время создания'
)
    comment 'Таблица сообщений';
create table user
(
    id       bigint auto_increment comment 'ID пользователя'
        primary key,
    username varchar(20)                   not null comment 'Имя пользователя',
    password varchar(200) default '123456' not null comment 'Пароль',
    picture  varchar(2083)                 null comment 'URL изображения пользователя',
    role     int          default 1        not null comment 'Роль пользователя: 0 - обычный пользователь, 1 - администратор',
    status   int          default 0        not null comment 'Статус аккаунта: 1 - активен, 0 - заблокирован'
)
    comment 'Таблица пользователей';
create table video
(
    id          bigint auto_increment comment 'ID видео, автоинкремент'
        primary key,
    title       varchar(255)                not null comment 'Название видео',
    description varchar(1024)              null comment 'Описание видео',
    user_id     bigint                      not null comment 'ID пользователя, загрузившего видео',
    create_time datetime                    not null comment 'Время создания видео',
    status      int                         default 0 not null comment 'Статус видео: 0 - не опубликовано, 1 - опубликовано'
)
    comment 'Таблица видео';
``````sql
create table video
(
    id          bigint auto_increment comment 'ID видео'
        primary key,
    user_id     bigint        not null comment 'ID пользователя, загрузившего видео',
    username    varchar(20)   not null comment 'Имя пользователя, загрузившего видео',
    name        varchar(30)   not null comment 'Название',
    duration    bigint        not null comment 'Общая длительность видео (в секундах)',
    url         varchar(2083) not null comment 'URL видео, максимальная длина cq 2083 символа',
    cover_url   varchar(2083) not null comment 'URL изображения обложки видео',
    status      int default 0 not null comment 'Статус видео: 1 - активен, 0 - заблокирован',
    create_time datetime      not null comment 'Время создания',
    update_time datetime      not null comment 'Время обновления'
)
    comment 'Таблица видео';
```# Бэкенд
**Конфигурация проекта**

```sql
spring:
  application:
    name: video_website
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://localhost:3306/videowebsite
    username: root
    password: 1234
  servlet:
    multipart:
      max-file-size: 100MB
      max-request-size: 100MB
  mvc:
    static-path-pattern: /files/**
  web:
    resources:
      static-locations: classpath:/files/

# конфигурация mybatis
mybatis:
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    map-underscore-to-camel-case: true # преобразование подчеркивания в стиль camelCase

logging:
  level:
    com:
      example:
        mapper: debug
        service: info
        controller: info

server:
  port: 8080
  address: 0.0.0.0

website:
  # конфигурация Ali OSS
  alioss:
    access-key-secret: QiGA79CQly4SBCU7CCsTY2wO4ID4Lo
    endpoint: oss-cn-beijing.aliyuncs.com
    access-key-id: LTAI5tMRS4ppByV3TCjyqPuE
    bucket-name: isara-bucket
  # конфигурация JWT
  jwt:
    # установка секретного ключа для шифрования JWT
    admin-secret-key: secret
    # установка времени жизни JWT
    admin-ttl: 7200000
    # установка имени токена, передаваемого фронтендом
    admin-token-name: token

  file:
    base-path: D:/XK/BIT/Object_oriented/videoWebsite/video_website/src/main/resources/static
    video-path: /videos/
    picture-path: /pictures/
    cover-path: /covers/

Внесены исправления в пунктуацию и пробелы.Конфигурация зависимостей```

xml version="1. 0" encoding="UTF-8"? > 4.0.0 com.example video_website 0.0.1-SNAPSHOT video_website video_website 1.8 UTF-8 UTF-8 2.7.6 org.springframework.boot spring-boot-starter-cache org.springframework.boot spring-boot-starter-jdbc org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-websocket org.mybatis.spring.boot mybatis-spring-boot-starter 2.2.2 com.github.xiaoymin knife4j-spring-boot-starter 3.0.2 io.jsonwebtoken jjwt 0.9.1 javax.xml.bind jaxb-api 2.3.1 ``` com.github.pagehelper pagehelper-spring-boot-starter 1.4.1 org.mybatis.spring.boot mybatis-spring-boot-starter 2.1.1 com.aliyun.oss aliyun-sdk-oss 3.15.1 org.bytedeco javacv-platform 1.5.5 ```markdown org.springframework.boot spring-boot-devtools runtime false com.mysql mysql-connector-j runtime org.projectlombok lombok true org.springframework.boot spring-boot-starter-test test org.springframework.boot spring-boot-dependencies ${spring-boot.version} pom import org.apache.maven.plugins maven-compiler-plugin 3.8.1 1.8 1.8 UTF-8 org.springframework.boot spring-boot-maven-plugin ${spring-boot.version} com.example.VideoWebsiteApplication repackage repackage ```проект> ``` # Запуск проекта **Проект backend** запускается по адресу `http://localhost:8080` Имя пользователя: isara Пароль: 123456 **Проект frontend** запускается по адресу `http://localhost:9025` ```

Комментарии ( 0 )

Вы можете оставить комментарий после Вход в систему

Введение

сайт для просмотра видео с субтитрами Развернуть Свернуть
Отмена

Обновления

Пока нет обновлений

Участники

все

Недавние действия

Загрузить больше
Больше нет результатов для загрузки
1
https://api.gitlife.ru/oschina-mirror/Attem_Porous-video-website.git
git@api.gitlife.ru:oschina-mirror/Attem_Porous-video-website.git
oschina-mirror
Attem_Porous-video-website
Attem_Porous-video-website
master