Skip to content

leongaban/TickerTags-Dashboard

Repository files navigation

The TickerTags dashboard app

TickerTags.com | All change is detectable.

After cloning

Installs node dependencies gulp modules: $ npm install or yarn install

Installs bower frontend dependencies (Angular, es6, lodash etc):
$ bower install Installs bower dependencies

Rebuild the frontend vendors file: gulp build:vendors

Before editing SASS files you need to run gulp:
$ gulp compiles SASS into CSS

To watch and build HTML and JavaScript modules you need to run webpack:
npm run dev runs (webpack -w)

Create deployable build

$ V=patch gulp build ie: V= major for 1.x.x, minor for x.1.x or patch for x.x.1

For production

V=patch gulp build-prod

Creates deployable build folder.

Testing

Karma / Mochai / Chai Tests in test dir $ npm test Runs the tests Note: Tests are not complete and need to be refactored

Alert Testing localhost

Goto tickers directory $ python

>>> from hedge.dl.dm.alert import Alert
>>> alert = Alert.objects({})
>>> alerts = Alert.objects({})
>>> for alert in alerts:
...     alert.approved = 0
...     alert.save()
...
>>> alerts = Alert.objects({})
>>> for alert in alerts[0:100]:
...     print alert.approved

Dashboard