Giter Club home page Giter Club logo

Binary-Static

This repository contains the static HTML, Javascript, CSS, and images content of the Binary.com website.

Installation

In order to work on your own version of the Binary.com Javascript and CSS, please fork this project.

You will also need to install the following on your development machine:

npm install
sudo npm install -g grunt-cli

curl -L https://cpanmin.us | sudo perl - App::cpanminus
sudo cpanm Carton
cd scripts
sudo carton install

Note:

You need to have the latest node & npm versions

Make sure to use Perl 5.18.2

In Mac systems, the safest way to install an old version of Perl is:

curl -L https://install.perlbrew.pl | bash
source ~/perl5/perlbrew/etc/bashrc
perlbrew init
perlbrew install 5.18.2
perlbrew switch perl-5.18.2

How to work with this project

Deploy to your gh-pages for the first time

  1. 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-static/en/logged_inws.html"
    }
  2. Put the app_id returned by WebSocket in src/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
  1. Run grunt dev

Deploy js/css and template changes together

grunt dev

Deploy only js/css changes

grunt deploy

Deploy some template changes

grunt dev --path=about-us

Using sub-folders

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:

Release to Production

grunt release --staging=1|--production=1 [--cleanup]

(The value is needed when more than one option is used)

###Parameters:

  • --staging or --production (mandatory)
    • In order to prevent accidentally releasing to the wrong target, it is mandatory to provide one of these parameters.
    • Your remote origin will be checked to be the correct target of the given parameter.
  • --cleanup [optional]
    • Create CNAME file with proper value according to remote origin
    • Deploy to gh-pages with the option add: false

apatrade's Projects

apabinary icon apabinary

Binary.com static content - staging release

dashboard icon dashboard

A dashboard for at-a-glance knowledge of the health of the Jekyll ecosystem.

grunt icon grunt

Grunt: The JavaScript Task Runner

gulp icon gulp

The streaming build system

jekyll icon jekyll

:globe_with_meridians: Jekyll is a blog-aware, static site generator in Ruby

jekyll-gist icon jekyll-gist

:page_with_curl: Liquid tag for displaying GitHub Gists in Jekyll sites.

jsdoc icon jsdoc

An API documentation generator for JavaScript.

node icon node

Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:

perl5 icon perl5

The Perl 5 language interpreter (MIRROR ONLY)

sass icon sass

Sass makes CSS fun again.

siteleaf.com icon siteleaf.com

Siteleaf v2 theme for the siteleaf.com marketing site and blog

streamjs icon streamjs

Lazy Object Streaming Pipeline for JavaScript

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.