Giter VIP home page Giter VIP logo

express-video's Introduction

项目技术栈

Node.js + Express + MongoDB + Redis + 阿里云视频点播

项目逻辑架构

API 接口文档

点击跳转

使用教程

  1. 安装依赖
npm install
  1. 修改配置

打开 config/config.default.js

参数 说明
uuid jwt 加密密钥
time token 过期时间(单位:秒)
mongopath MongoDB 相关
redisClient Redis 相关
accessKeyId、accessKeySecret 阿里云 AccessKey 相关(可选)
regionId 视频点播服务接入地域(可选)
  1. 启动服务
npm run dev

用户接口列表

URL METHOD 说明
/user/register POST 用户注册
/user/login POST 用户登录
/user/update PUT 用户信息修改
/user/avatar POST 用户头像上传
/user/subscribe/:userId GET 关注用户(频道)
/user/unsubscribe/:userId GET 取消关注用户(频道)
/user/getchannel GET 用户粉丝列表
/user/getsubscribe/:userId GET 用户关注列表
/user/getuser/:userId GET 用户信息详情

视频接口列表

URL METHOD 说明
/createvideo POST 视频入库
/video/:videoId GET 视频详情
/videolist GET 视频列表
/comment/:videoId POST 评论视频
/commentlist/:videoId GET 视频评论列表
/comment/:videoId/:commentId DELETE 删除视频评论
/like/:videoId GET 评价视频(喜欢)
/dislike/:videoId GET 评价视频(不喜欢)
/likelist GET 喜欢视频列表
/collect/:videoId GET 收藏视频
/gethots/:topnum GET 视频热度排行

vod 接口列表

开发ing...

express-video's People

Contributors

auxior avatar

Watchers

Kostas Georgiou avatar  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.