Code Monkey home page Code Monkey logo

blivemusicboard's Introduction

哔哩哔哩直播点歌板

这是一个点歌板项目,可用于OBS中,支持用户点歌、删除歌曲、查看历史歌单以及管理员设置点歌状态等功能。此项目包含了前端和后端两部分,其中前端使用了 Vue.js 框架实现,后端则是使用 Go 语言。

功能

  • 点歌:用户可以通过弹幕来点歌,并将歌曲添加到歌曲列表中。
  • 删除歌曲:管理员可以删除歌曲列表中的歌曲。
  • 同步歌曲列表:所有客户端将实时同步歌曲列表。

安装

  1. 安装 Go 和 Git
  2. 克隆此仓库:git clone https://github.com/MerlinCN/BliveMusicBoard.git
  3. 下载编译好的前端文件 https://github.com/MerlinCN/BliveMusicBoardWeb/releases
  4. 进入项目目录:cd BliveMusicBoard
  5. 安装依赖:go mod tidy

运行

  1. 启动服务器:go run main.go
  2. 在浏览器中打开 http://localhost:4220

代码结构

  • main.go:入口文件,定义了 HTTP 服务器和 WebSocket 服务器。
  • pkg目录:包含了项目的核心代码。
    • song.go:定义了 Song 结构体和相关的方法,用于表示歌曲。
    • utils.go:定义了一些辅助结构体和常量。
    • websocket.go:定义了 WebSocket 相关的方法,用于与客户端通信。
    • danmaku.go:监听弹幕
    • setting.go:持久化设置

接口测试

使用test.py来进行测试

技术栈

  • Go
  • HTML/CSS/JavaScript
  • Vue.js
  • etjsptcket

许可证

本项目使用AGPL-3.0 许可证。详情请参阅 LICENSE 文件。

blivemusicboard's People

Contributors

merlincn avatar tymon42 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

tymon42

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.