Giter VIP home page Giter VIP logo

mcm-production's Introduction

MCM-production

MCM studio's production package

Installation

  1. Download, install and start docker.
  2. Update src/irc.js with your twitch OAUTH token.
  3. Create a GSI config file in the proper place in your Dota2 install directory

Usage

docker-compose up creates two containers:

  1. A Node-JS container running the express app
  2. A MariaDB container running the database

The first time you run docker-compose up a persistent volume will be created for the database and the database will be initialized with the SQL scripts in the data folder. To stop the containers, just ctrl+c and they will be properly closed down. The next time you want to use them, just execute docker-compose up again and the containers will be started, using the persistent volume. Do not use docker-compose down as this will destroy the containers and the link with the persistent volume. You'll need to reattach the volume manually since the link no longer exists.

As soon as the containers are running, you can connect to the database using an SQL browser (e.g. HeidiSQL). Point it to localhost port 3306. The express app is running on localhost port 3000.

Production

Configure the production suite by surfing to http://localhost:3000/config. Here you can select the league, teams playing and the players you want to feature in the matchup. Click configure to send the config to the server.

The express app serves 2 routes: api and production. Api (still in baby shoes) exposes a few basic REST endpoints where you can query some of the data in the database. Only GET endpoints have been implemented as of yet. The production endpoint serves several endpoints that can be used for production. Apart from the /standings endpoint, all of them can be manipulated via websockets. This means you can configure all the endpoints as browser sources in OBS, and you can update their appearance by surfing to the same endpoint in your browser (except for /standings which you'll need to manipulate via the interact menu in OBS).

mcm-production's People

Contributors

crazy-duck 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.