Source - paulallen87/chaturbate-overlay-app GitHub Wiki

Setup

Install Git

sudo apt-get install git

Install NodeJS

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get update
sudo apt-get install nodejs

Install Yarn

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install yarn

Install Chrome (Version >= 59)

curl -sS https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | tee /etc/apt/sources.list.d/google-chrome.list
sudo apt-get update
sudo apt-get install google-chrome-stable

Clone The Source

mkdir chaturbate-overlay-app
cd chaturbate-overlay-app
git clone https://github.com/paulallen87/chaturbate-overlay-app.git .

Helper Scripts

Building The Code

  • Development

    sh bin/build-dev.sh
    
  • Production

    sh bin/build-prod.sh
    

Running The Code

  • Development

    sh bin/run-dev.sh
    
  • Production

    sh bin/run-prod.sh
    

Building And Running The Code

  • Development

    sh bin/start-dev.sh
    
  • Production

    sh bin/start-prod.sh
    

Manually

Building

  • Development

    yarn install
    yarn install_deps
    
  • Production

    yarn install
    yarn install_deps_prod
    yarn build
    
    export NODE_ENV="production"
    
    cp index.js build/
    cp package.json build/
    cd build
    yarn install --production
    

Running

  • Development

    export FRONTEND_BUNDLE="."
    export DEBUG="chaturbate:*"
    
    yarn start
    
  • Production

    export NODE_ENV="production"
    export FRONTEND_BUNDLE="es6-bundled"
    export DEBUG="chaturbate:*"
    
    cd build
    yarn start