Skip to content

MoePlayer/RailsGun

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
 
 
log
 
 
 
 
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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