Code Monkey home page Code Monkey logo

410douyinproj's Introduction

simple-demo

抖音项目服务端简单示例

具体功能内容参考飞书说明文档

工程无其他依赖,直接编译运行即可

go build && ./simple-demo

410 到底对不队 抖音项目

注意事项:

需要安装FFmpeg, 并修改controller/publish.go row: 47 的ffmpeg路径

需要安装MySQL,并创建golang_mysql 数据库, 并修改dbmodel.go 文件中连接mysql的账户和密码

需要修改BaseURL.

需要自己新建 public 文件夹

*新增 需要安装NSQ

在config.json文件中设置你的相关配置!!

执行以下命令开启消息队列:

nsqlookupd
nsqd --lookupd-tcp-address=127.0.0.1:4160
nsqd --lookupd-tcp-address=127.0.0.1:4160 --tcp-address=0.0.0.0:4152 --http-address=0.0.0.0:4153
nsqadmin --lookupd-http-address=127.0.0.1:4161

执行以下命令运行服务端程序

go build main.go router.go
./main.exe

相关资料:

极简抖音App使用说明 - 青训营版 - 成电飞书云文档 (feishu.cn)

视频流接口 - 抖音极简版 (apifox.cn)

410douyinproj's People

Contributors

wclin97 avatar

Watchers

 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.