{"id":50416581,"url":"https://github.com/musnows/vedio-on-demand","last_synced_at":"2026-05-31T06:03:59.764Z","repository":{"id":157292100,"uuid":"623311340","full_name":"musnows/Vedio-On-Demand","owner":"musnows","description":"VOD System Base On C++","archived":false,"fork":false,"pushed_at":"2024-03-10T08:13:33.000Z","size":3337,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-10T09:26:12.346Z","etag":null,"topics":["cpp","mariadb","mysql"],"latest_commit_sha":null,"homepage":"https://vod.musnow.top","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/musnows.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-04-04T05:52:32.000Z","updated_at":"2024-03-10T09:26:13.313Z","dependencies_parsed_at":"2024-03-10T09:36:20.200Z","dependency_job_id":null,"html_url":"https://github.com/musnows/Vedio-On-Demand","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/musnows/Vedio-On-Demand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musnows%2FVedio-On-Demand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musnows%2FVedio-On-Demand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musnows%2FVedio-On-Demand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musnows%2FVedio-On-Demand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/musnows","download_url":"https://codeload.github.com/musnows/Vedio-On-Demand/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/musnows%2FVedio-On-Demand/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33720900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cpp","mariadb","mysql"],"created_at":"2026-05-31T06:03:58.086Z","updated_at":"2026-05-31T06:03:59.747Z","avatar_url":"https://github.com/musnows.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vedio-On-Demand\n\nVOD System Base On C++\n\n\n## 1.简介\n\n使用 jsoncpp/httplib/mysql/openssl 等C++第三方库实现的视频点播系统。\n\n提供简单的前端页面，实现了如下功能：\n\n* 视频上传/删除\n* 视频简介修改\n* 视频播放\n* 视频点击量统计\n* 视频点赞点踩\n* ...\n\n\u003e 由于本人主学后端，只对前端语法有基本了解。本项目所用前端页面，由网络上所找视频播放站点的[前端模板](http://www.cssmoban.com/cssthemes/11519.shtml)修改而来。\n\n## 2.依赖项\n\n项目可运行于 `CentOS 8`，依赖项如下\n\n* jsoncpp/httplib/openssl 第三方库\n* mariadb/mysql 数据库\n* 用于连接 mariadb/mysql 数据库的 C++ dev 包\n\n```\nMariaDB数据库版本\nServer version: 10.3.28-MariaDB MariaDB Server\n\nSqlite3数据库版本\n3.26.0 2018-12-01 12:34:55 bf8c1b2b7a5960c282e543b9c293686dccff272512d08865f4600fb58238alt1\n\nGcc编译器版本\ngcc version 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC) \n\nOpenSSL版本\nOpenSSL 1.1.1k  FIPS 25 Mar 2021\n```\n\n### 2.1 安装jsoncpp\n\njsoncpp是json序列化方式的工具包\n\n```bash\n# centos\nsudo yum install epel-release \nsudo yum install jsoncpp-devel\n# debian\nsudo apt-get install libjsoncpp-dev\n```\n\n安装完毕之后，请检查你的 `/usr/include` 路径，查看jsoncpp头文件的路径\n\n```\nls /usr/include\n```\n\n比如我在 CentOS8 上安装时，路径为\n\n```\n/usr/include/json\n```\n\n但在 `deepin20.9` 上安装时，路径为\n\n```\n/usr/include/jsoncpp/json\n```\n\n检查路径后，需要修改 [server/utils](./server/utils.hpp) 里对 jsoncpp 的 `#include`；否则会因为找不到头文件而编译失败。\n\n### 2.2 httplib\n\n无需安装，这是一个单头文件的库，已在本项目中包含。\n\n### 2.3 MySQL/mariadb\n\nCentOS上的安装步骤，参考我的博客：https://blog.musnow.top/posts/577382991/\n\n在deepin下的安装命令和CentOS不同，在此记录如下\n\n```bash\n# deepin安装MySQL开发包\nsudo apt install default-libMySQLclient-dev\nsudo apt-get install libmariadbclient-dev\n```\n\n### 2.4 openssl\n\nopenssl 用于md5哈希计算\n\n```bash\nsudo yum install openssl-devel\nopenssl version  # 判断是否成功安装\n```\n\n## 3.ToDo\n\n- [x] data 中的数据类进行单例封装\n- [x] 提供 sqlite3 数据库选项\n- [ ] 提供 dockerfile 进行 docker 部署\n- [ ] 新增 用户登录和权限管理接口\n- [ ] 新增 用户邮箱验证\n- [ ] 新增 用户评论\n- [ ] 新增 视频分类和tag\n- [ ] 优化 大文件分块传输和md5校验\n- [ ] 优化 后端文件存放采用md5作为文件名，避免一份视频/封面被存放多次\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusnows%2Fvedio-on-demand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmusnows%2Fvedio-on-demand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusnows%2Fvedio-on-demand/lists"}