{"id":15320333,"url":"https://github.com/cocainecong/bilibili","last_synced_at":"2025-04-15T02:31:33.008Z","repository":{"id":161628299,"uuid":"408910285","full_name":"CocaineCong/BiliBili","owner":"CocaineCong","description":"Gin框架实现B站，Gin+Gorm 实现一个视频弹幕网站","archived":false,"fork":false,"pushed_at":"2021-10-10T02:20:13.000Z","size":70,"stargazers_count":40,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T14:21:15.014Z","etag":null,"topics":["cron","gin","go","golang","gorm","jwt","mysql","redis"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CocaineCong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-21T17:19:29.000Z","updated_at":"2025-03-16T11:29:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"c93926ff-297d-4a89-8460-cc479373fa93","html_url":"https://github.com/CocaineCong/BiliBili","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CocaineCong%2FBiliBili","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CocaineCong%2FBiliBili/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CocaineCong%2FBiliBili/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CocaineCong%2FBiliBili/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CocaineCong","download_url":"https://codeload.github.com/CocaineCong/BiliBili/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248993938,"owners_count":21195282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cron","gin","go","golang","gorm","jwt","mysql","redis"],"created_at":"2024-10-01T09:08:13.962Z","updated_at":"2025-04-15T02:31:32.794Z","avatar_url":"https://github.com/CocaineCong.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FiliFili Fan站视频网站 \n\n**此项目使用`Gin`+`Gorm` ，基于`RESTful API`实现的一个B站**。\n\n**此项目比较适合小白进阶`web开发`这方面**\n\n# 接口文档\n\n[BiliBili 接口文档](https://www.showdoc.cc/1621442994395086)\n\n**密码：0000**\n\n![在这里插入图片描述](https://img-blog.csdnimg.cn/ca00b91683434f38bc940879898453c3.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBA5bCP55Sf5Yeh5LiA,size_20,color_FFFFFF,t_70,g_se,x_16)\n\n# 项目主要功能介绍\n\n- 用户模块：\n    - 注册登录\n    - 修改个人信息，更换头像，更改密码\n    - 关注用户\n    - 粉丝列表\n    \n   \n- 视频模块：\n    - 个人上传视频，可加视频封面\n    - 点赞，收藏，转发视频\n    - 更新视频简介，封面\n    - 查看收藏视频列表\n    - 删除视频\n\n- 弹幕模块：\n    - 发送弹幕\n    - 获取弹幕\n\n- 评论模块：\n    - 评论他人\n    - 回复他人\n\n## 项目主要依赖：\n\n**Golang V1.16**\n\n- Gin\n- Gorm\n- mysql\n- redis\n- viper\n- jwt-go\n- cron\n- qiniu-go-sdk\n\n## 项目结构\n\n```shell\nBiliBili/\n├── api\n├── cache\n├── conf\n├── middleware\n├── model\n├── pkg\n│  ├── e\n│  ├── util\n├── routes\n├── serializer\n└── servive\n```\n\n- api : 用于定义接口函数\n- cache : 放置redis缓存\n- conf : 用于存储配置文件\n- middleware : 应用中间件\n- model : 应用数据库模型\n- pkg/e : 封装错误码\n- pkg/util : 工具函数\n- routes : 路由逻辑处理\n- serializer : 将数据序列化为 json 的函数\n- servive : 接口函数的实现\n\n## 配置文件\n\n**conf/config.ini**\n```yml\nserver:\n  port: 3000\n  version: 1.0\n  coding: mp4\n  jwtSecret: something-very-secret\n  adminJwtSecret: admin-secret\ndatasource:\n  driverName: mysql\n  host: 127.0.0.1\n  port: 3306\n  database: bilibili\n  username: root\n  password: root\n  charset: utf8mb4\nqiniu:\n  AccessKey: \n  SerectKey: \n  Bucket: \n  QiniuServer: \n#email:\n#  port: 465\n#  host: smtp.163.com\n#  address: 邮箱地址\n#  password: 邮箱授权码\nredis:\n  address: 127.0.0.1:6379\n  password:\nadmin:\n  email: admin@qq.com\n  password: admin\n```\n\n## 简要说明\n1. `mysql`是存储主要数据\n2. `redis`用来存储点赞，收藏，浏览这些高实时的\n\n\n## 项目运行\n\n**本项目使用`Go Mod`管理依赖。**\n\n**下载依赖**\n\n```shell\ngo mod tidy\n```\n\n**运行**\n\n```shell\ngo run main.go\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcocainecong%2Fbilibili","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcocainecong%2Fbilibili","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcocainecong%2Fbilibili/lists"}