Giter Site home page Giter Site logo

webtrader's Introduction

#Webtrader Build Status This repository contains HTML, Javascript, CSS, and images for WebTrader website.

##How to work with this project ####Learn how to setup the project: In order to get started on this project, follow these steps. The steps are meant for Linux OS users. However Windows and MacOS should be similar

    > Open command prompt
    $ sudo apt-get install git
    $ git clone https://github.com/binary-com/webtrader.git
    $ cd webtrader
    $ sudo apt-get install node npm
    $ sudo apt-get install nodejs-legacy
    $ sudo npm install -g grunt-cli
    $ npm install

At this point, your project is properly setup. You can now run following command to start a local server

    $ grunt connect

In order to get SLOC(Source line of Code, which displays total number of lines of source code) report, run

    $ grunt sloc

To bump release version, run

    $ grunt bump:major

    or

    $ grunt bump:minor

    or

    $ grunt bump:patch

To release code (beta release, WebTrader (beta)) - Not recommended to be used from local environment

    $ grunt gh-pages:gh-pages-beta

To release code (prod release, WebTrader) - Not recommended to be used from local environment

    $ grunt gh-pages:gh-pages-prod

You can now access the charting page by opening http://localhost:9001/main.html in browser

Every checking into master will trigger travis-ci build process. Release is based on commit hooks.

[release_prod]
With this commit message, travis-ci will automatically deploy code into gh-pages for production release

[release_beta]
With this commit message, travis-ci will automatically deploy code into gh-pages for beta release

####Follow these rules:

General Guidelines

Airbnb JavaScript Style Guide

Anonymous closures

To prevent global variables, use closures:

    (function () {
        // ... all vars and functions are in this scope only
        // still maintains access to all globals
    }());
Strict Mode

Include at the beginning of each .js file:

    "use strict";

#####More details on strict mode:

ECMAScript 5 Strict Mode, JSON, and More

Strict Mode

It’s time to start using JavaScript strict mode

Naming conventions

Variables that contain jquery selected elements should start with a '$'.

Don't:

    var due = $('#due');

Do:

    var $due = $('#due');

#####Test thoroughly: Every module, JS file, classes, function, etc that is coded for this project, should be accompanied by a corresponding test file. We use QUnit and it is expected that every src code submission is covered by a unit test scenario. Our project is connected with travis CI and each checkin is validated by Travis Continuous Integration system.

#####Get your code to our repo: In order to contribute, please fork and submit pull request by following all the above mentioned coding rules.

#####Other details When commit is done with [release] tag in the master branch, it will trigger deployment into webtrader gh-pages automatically and will update the release files and changes could be seen live @ WebTrader

webtrader's People

Contributors

arnabk avatar

Watchers

 avatar  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.