This repository contains the static HTML, Javascript, CSS, and images content of the mt.binary.com website.
In order to work on your own version of the mt.binary.com Javascript and CSS, please fork this project.
You will also need to install the following on your development machine:
-
Ruby, RubyGems
-
Sass (
sudo gem install sass
) -
Node.js and NPM (see https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager)
-
Go to project root
npm install
sudo npm install -g grunt-cli
curl -L https://cpanmin.us | sudo perl - App::cpanminus
sudo cpanm Carton
cd scripts
carton install
-
You need to have your own application registered at Binary.com because it should redirect client to your github pages after login. There is no UI for it yet, so you can send the following request for now (change YOUR_APP_NAME and YOUR_GITHUB_USERNAME as well):
{ "app_register": 1, "name": "YOUR_APP_NAME", "scopes": [ "read", "admin", "trade", "payments" ], "redirect_uri": "https://YOUR_GITHUB_USERNAME.github.io/binary-mt/en/logged_inws.html" }
-
Put the
app_id
returned by WebSocket insrc/javascript/config.js
- NOTE: In order to avoid accidentally committing personal changes to this file, use
git update-index --assume-unchanged src/javascript/config.js
- Run
grunt dev
grunt dev
grunt deploy
grunt dev --path=about-us
There are times that you're working on various branches at the same time, and you want to deploy/test each branch separately on your gh-pages, you can simply use --branch=branchname
for grunt commands:
grunt dev --branch=branchname
This will deploy your changes to a sub-folder named:br_branchname
and it can be browsed at: https://YOUR_GITHUB_USERNAME.github.io/binary-mt/br_branchname/
grunt release [--cleanup]
(The value is needed when more than one option is used)
###Parameters:
--cleanup
[optional]- Create CNAME file with proper value according to remote origin
- Deploy to gh-pages with the option
add: false