Skip to content

🔫 Dplayer backend for rails 弹幕军火库。姬~~。。 超电磁炮!!!

Notifications You must be signed in to change notification settings

MoePlayer/RailsGun

Repository files navigation

RailsGun

Build Status

System dependencies

  • Ruby version >=2.5.0

  • Rails version 5.2.0

  • Dplayer >= v1.22.0

Install && Run

bundle install
  • Configuration
vim config/database.yml
  • Database creation
rake db:setup
  • Test run
rails server
  • production
export RAILS_ENV=production
export SECRET_KEY_BASE=...............

# start railsgun in daemon
rails server -d

TestUnit

rails test

Danmaku API

Only support dplayer v2 interface

var dp = new DPlayer({
    container: document.getElementById('dplayer'),
    screenshot: true,
    video: {
        url: 'demo.mp4',
        pic: 'demo.jpg',
        thumbnails: 'thumbnails.jpg'
    },
    subtitle: {
        url: 'webvtt.vtt'
    },
    danmaku: {
        id: 'demo',
        api: 'http://localhost:3000/dplayer/'
    }
});

Test Server Address

The stability of the Barrage data is not currently used with caution

目前不保证弹幕数据的稳定性 慎用!

http://api.22333.fun/dplayer/

TodoList

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

About

🔫 Dplayer backend for rails 弹幕军火库。姬~~。。 超电磁炮!!!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages