├── packer
├── .gitignore
├── clean
├── scripts
│ ├── maven.sh
│ ├── lab_setup.sh
│ ├── intellij_ce.sh
│ └── oracle_jdk.sh
└── http
│ └── anaconda-ks.cfg
├── docs
├── images
│ ├── rpc-sequence.png.cache
│ ├── async-rpc-sequence.png.cache
│ ├── diagram-sequence.png.cache
│ ├── diagram-sequences.png.cache
│ ├── portfolio-sequence.png.cache
│ ├── dashboard.png
│ ├── rpc-sequence.png
│ ├── circuit-breaker.png
│ ├── async-rpc-sequence.png
│ ├── database-sequence.png
│ ├── diagram-sequence.png
│ ├── diagram-sequences.png
│ ├── portfolio-sequence.png
│ ├── workshop-application.png
│ └── dashboard-initial-state.png
├── assets
│ ├── fonts
│ │ ├── FontAwesome.otf
│ │ ├── fontawesome-webfont.eot
│ │ ├── fontawesome-webfont.ttf
│ │ ├── fontawesome-webfont.woff
│ │ ├── fontawesome-webfont.woff2
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
│ └── css
│ │ └── hol.css
├── README.md
├── chapters
│ ├── references.adoc
│ └── conclusion.adoc
├── build.sh
├── index.adoc
└── docinfo.html
├── trader-dashboard
├── src
│ └── main
│ │ └── resources
│ │ └── webroot
│ │ ├── bower_components
│ │ ├── jquery
│ │ │ ├── src
│ │ │ │ ├── outro.js
│ │ │ │ ├── var
│ │ │ │ │ ├── arr.js
│ │ │ │ │ ├── deletedIds.js
│ │ │ │ │ ├── rnotwhite.js
│ │ │ │ │ ├── document.js
│ │ │ │ │ ├── push.js
│ │ │ │ │ ├── slice.js
│ │ │ │ │ ├── concat.js
│ │ │ │ │ ├── indexOf.js
│ │ │ │ │ ├── class2type.js
│ │ │ │ │ ├── pnum.js
│ │ │ │ │ ├── toString.js
│ │ │ │ │ ├── documentElement.js
│ │ │ │ │ ├── hasOwn.js
│ │ │ │ │ ├── support.js
│ │ │ │ │ └── rcssNum.js
│ │ │ │ ├── selector.js
│ │ │ │ ├── ajax
│ │ │ │ │ ├── var
│ │ │ │ │ │ ├── rquery.js
│ │ │ │ │ │ ├── location.js
│ │ │ │ │ │ └── nonce.js
│ │ │ │ │ ├── parseJSON.js
│ │ │ │ │ └── parseXML.js
│ │ │ │ ├── css
│ │ │ │ │ ├── var
│ │ │ │ │ │ ├── rmargin.js
│ │ │ │ │ │ ├── cssExpand.js
│ │ │ │ │ │ ├── rnumnonpx.js
│ │ │ │ │ │ ├── isHidden.js
│ │ │ │ │ │ ├── getStyles.js
│ │ │ │ │ │ └── swap.js
│ │ │ │ │ ├── hiddenVisibleSelectors.js
│ │ │ │ │ ├── addGetHookIf.js
│ │ │ │ │ └── showHide.js
│ │ │ │ ├── manipulation
│ │ │ │ │ ├── var
│ │ │ │ │ │ ├── rleadingWhitespace.js
│ │ │ │ │ │ ├── rtagName.js
│ │ │ │ │ │ ├── rcheckableType.js
│ │ │ │ │ │ ├── rscriptType.js
│ │ │ │ │ │ └── nodeNames.js
│ │ │ │ │ ├── _evalUrl.js
│ │ │ │ │ ├── createSafeFragment.js
│ │ │ │ │ ├── setGlobalEval.js
│ │ │ │ │ ├── getAll.js
│ │ │ │ │ ├── wrapMap.js
│ │ │ │ │ └── support.js
│ │ │ │ ├── data
│ │ │ │ │ ├── var
│ │ │ │ │ │ ├── dataPriv.js
│ │ │ │ │ │ ├── dataUser.js
│ │ │ │ │ │ └── acceptData.js
│ │ │ │ │ ├── support.js
│ │ │ │ │ └── accepts.js
│ │ │ │ ├── core
│ │ │ │ │ ├── var
│ │ │ │ │ │ └── rsingleTag.js
│ │ │ │ │ ├── DOMEval.js
│ │ │ │ │ ├── support.js
│ │ │ │ │ └── parseHTML.js
│ │ │ │ ├── traversing
│ │ │ │ │ └── var
│ │ │ │ │ │ ├── rneedsContext.js
│ │ │ │ │ │ ├── siblings.js
│ │ │ │ │ │ └── dir.js
│ │ │ │ ├── event
│ │ │ │ │ ├── support.js
│ │ │ │ │ ├── ajax.js
│ │ │ │ │ └── alias.js
│ │ │ │ ├── attributes.js
│ │ │ │ ├── effects
│ │ │ │ │ └── animatedSelector.js
│ │ │ │ ├── selector-sizzle.js
│ │ │ │ ├── .jshintrc
│ │ │ │ ├── exports
│ │ │ │ │ ├── global.js
│ │ │ │ │ └── amd.js
│ │ │ │ ├── deferred
│ │ │ │ │ └── exceptionHook.js
│ │ │ │ ├── queue
│ │ │ │ │ └── delay.js
│ │ │ │ ├── jquery.js
│ │ │ │ ├── deprecated.js
│ │ │ │ └── attributes
│ │ │ │ │ └── support.js
│ │ │ ├── bower.json
│ │ │ └── .bower.json
│ │ ├── bootstrap
│ │ │ ├── grunt
│ │ │ │ ├── .jshintrc
│ │ │ │ └── bs-commonjs-generator.js
│ │ │ ├── less
│ │ │ │ ├── mixins
│ │ │ │ │ ├── center-block.less
│ │ │ │ │ ├── size.less
│ │ │ │ │ ├── opacity.less
│ │ │ │ │ ├── text-emphasis.less
│ │ │ │ │ ├── text-overflow.less
│ │ │ │ │ ├── background-variant.less
│ │ │ │ │ ├── tab-focus.less
│ │ │ │ │ ├── labels.less
│ │ │ │ │ ├── resize.less
│ │ │ │ │ ├── progress-bar.less
│ │ │ │ │ ├── nav-divider.less
│ │ │ │ │ ├── reset-filter.less
│ │ │ │ │ ├── alerts.less
│ │ │ │ │ ├── nav-vertical-align.less
│ │ │ │ │ ├── responsive-visibility.less
│ │ │ │ │ ├── border-radius.less
│ │ │ │ │ ├── reset-text.less
│ │ │ │ │ ├── pagination.less
│ │ │ │ │ ├── panels.less
│ │ │ │ │ ├── hide-text.less
│ │ │ │ │ ├── list-group.less
│ │ │ │ │ ├── clearfix.less
│ │ │ │ │ ├── table-row.less
│ │ │ │ │ └── image.less
│ │ │ │ ├── .csslintrc
│ │ │ │ ├── wells.less
│ │ │ │ ├── breadcrumbs.less
│ │ │ │ ├── responsive-embed.less
│ │ │ │ ├── component-animations.less
│ │ │ │ ├── close.less
│ │ │ │ ├── thumbnails.less
│ │ │ │ ├── utilities.less
│ │ │ │ ├── pager.less
│ │ │ │ ├── media.less
│ │ │ │ ├── mixins.less
│ │ │ │ ├── labels.less
│ │ │ │ └── jumbotron.less
│ │ │ ├── fonts
│ │ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ │ ├── glyphicons-halflings-regular.woff
│ │ │ │ └── glyphicons-halflings-regular.woff2
│ │ │ ├── dist
│ │ │ │ ├── fonts
│ │ │ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ │ │ ├── glyphicons-halflings-regular.woff
│ │ │ │ │ └── glyphicons-halflings-regular.woff2
│ │ │ │ └── js
│ │ │ │ │ └── npm.js
│ │ │ ├── js
│ │ │ │ └── .jshintrc
│ │ │ ├── CHANGELOG.md
│ │ │ ├── nuget
│ │ │ │ ├── MyGet.ps1
│ │ │ │ ├── bootstrap.nuspec
│ │ │ │ └── bootstrap.less.nuspec
│ │ │ ├── bower.json
│ │ │ ├── package.js
│ │ │ ├── .bower.json
│ │ │ └── LICENSE
│ │ ├── sockjs
│ │ │ ├── component.json
│ │ │ └── .bower.json
│ │ ├── Chart.js
│ │ │ ├── bower.json
│ │ │ └── .bower.json
│ │ └── vertx3-eventbus-client
│ │ │ ├── bower.json
│ │ │ └── .bower.json
│ │ └── bower.json
├── README.md
└── pom.xml
├── solution
├── trader-dashboard
│ ├── src
│ │ └── main
│ │ │ └── resources
│ │ │ └── webroot
│ │ │ ├── bower_components
│ │ │ ├── jquery
│ │ │ │ ├── src
│ │ │ │ │ ├── outro.js
│ │ │ │ │ ├── var
│ │ │ │ │ │ ├── arr.js
│ │ │ │ │ │ ├── deletedIds.js
│ │ │ │ │ │ ├── rnotwhite.js
│ │ │ │ │ │ ├── document.js
│ │ │ │ │ │ ├── push.js
│ │ │ │ │ │ ├── slice.js
│ │ │ │ │ │ ├── concat.js
│ │ │ │ │ │ ├── indexOf.js
│ │ │ │ │ │ ├── class2type.js
│ │ │ │ │ │ ├── pnum.js
│ │ │ │ │ │ ├── hasOwn.js
│ │ │ │ │ │ ├── toString.js
│ │ │ │ │ │ ├── documentElement.js
│ │ │ │ │ │ ├── support.js
│ │ │ │ │ │ └── rcssNum.js
│ │ │ │ │ ├── selector.js
│ │ │ │ │ ├── ajax
│ │ │ │ │ │ ├── var
│ │ │ │ │ │ │ ├── rquery.js
│ │ │ │ │ │ │ ├── location.js
│ │ │ │ │ │ │ └── nonce.js
│ │ │ │ │ │ ├── parseJSON.js
│ │ │ │ │ │ └── parseXML.js
│ │ │ │ │ ├── css
│ │ │ │ │ │ ├── var
│ │ │ │ │ │ │ ├── rmargin.js
│ │ │ │ │ │ │ ├── cssExpand.js
│ │ │ │ │ │ │ ├── rnumnonpx.js
│ │ │ │ │ │ │ ├── isHidden.js
│ │ │ │ │ │ │ ├── getStyles.js
│ │ │ │ │ │ │ └── swap.js
│ │ │ │ │ │ ├── hiddenVisibleSelectors.js
│ │ │ │ │ │ ├── addGetHookIf.js
│ │ │ │ │ │ └── showHide.js
│ │ │ │ │ ├── manipulation
│ │ │ │ │ │ ├── var
│ │ │ │ │ │ │ ├── rtagName.js
│ │ │ │ │ │ │ ├── rleadingWhitespace.js
│ │ │ │ │ │ │ ├── rcheckableType.js
│ │ │ │ │ │ │ ├── rscriptType.js
│ │ │ │ │ │ │ └── nodeNames.js
│ │ │ │ │ │ ├── _evalUrl.js
│ │ │ │ │ │ ├── createSafeFragment.js
│ │ │ │ │ │ ├── setGlobalEval.js
│ │ │ │ │ │ ├── getAll.js
│ │ │ │ │ │ ├── wrapMap.js
│ │ │ │ │ │ └── support.js
│ │ │ │ │ ├── data
│ │ │ │ │ │ ├── var
│ │ │ │ │ │ │ ├── dataPriv.js
│ │ │ │ │ │ │ ├── dataUser.js
│ │ │ │ │ │ │ └── acceptData.js
│ │ │ │ │ │ ├── support.js
│ │ │ │ │ │ └── accepts.js
│ │ │ │ │ ├── core
│ │ │ │ │ │ ├── var
│ │ │ │ │ │ │ └── rsingleTag.js
│ │ │ │ │ │ ├── DOMEval.js
│ │ │ │ │ │ ├── support.js
│ │ │ │ │ │ └── parseHTML.js
│ │ │ │ │ ├── traversing
│ │ │ │ │ │ └── var
│ │ │ │ │ │ │ ├── rneedsContext.js
│ │ │ │ │ │ │ ├── siblings.js
│ │ │ │ │ │ │ └── dir.js
│ │ │ │ │ ├── event
│ │ │ │ │ │ ├── support.js
│ │ │ │ │ │ ├── ajax.js
│ │ │ │ │ │ └── alias.js
│ │ │ │ │ ├── attributes.js
│ │ │ │ │ ├── effects
│ │ │ │ │ │ └── animatedSelector.js
│ │ │ │ │ ├── selector-sizzle.js
│ │ │ │ │ ├── .jshintrc
│ │ │ │ │ ├── exports
│ │ │ │ │ │ ├── global.js
│ │ │ │ │ │ └── amd.js
│ │ │ │ │ ├── deferred
│ │ │ │ │ │ └── exceptionHook.js
│ │ │ │ │ ├── queue
│ │ │ │ │ │ └── delay.js
│ │ │ │ │ ├── jquery.js
│ │ │ │ │ ├── deprecated.js
│ │ │ │ │ └── attributes
│ │ │ │ │ │ └── support.js
│ │ │ │ ├── bower.json
│ │ │ │ └── .bower.json
│ │ │ ├── bootstrap
│ │ │ │ ├── grunt
│ │ │ │ │ ├── .jshintrc
│ │ │ │ │ └── bs-commonjs-generator.js
│ │ │ │ ├── less
│ │ │ │ │ ├── mixins
│ │ │ │ │ │ ├── center-block.less
│ │ │ │ │ │ ├── size.less
│ │ │ │ │ │ ├── opacity.less
│ │ │ │ │ │ ├── text-emphasis.less
│ │ │ │ │ │ ├── text-overflow.less
│ │ │ │ │ │ ├── background-variant.less
│ │ │ │ │ │ ├── tab-focus.less
│ │ │ │ │ │ ├── resize.less
│ │ │ │ │ │ ├── labels.less
│ │ │ │ │ │ ├── progress-bar.less
│ │ │ │ │ │ ├── nav-divider.less
│ │ │ │ │ │ ├── reset-filter.less
│ │ │ │ │ │ ├── alerts.less
│ │ │ │ │ │ ├── nav-vertical-align.less
│ │ │ │ │ │ ├── responsive-visibility.less
│ │ │ │ │ │ ├── reset-text.less
│ │ │ │ │ │ ├── border-radius.less
│ │ │ │ │ │ ├── pagination.less
│ │ │ │ │ │ ├── panels.less
│ │ │ │ │ │ ├── hide-text.less
│ │ │ │ │ │ ├── list-group.less
│ │ │ │ │ │ ├── clearfix.less
│ │ │ │ │ │ ├── table-row.less
│ │ │ │ │ │ └── image.less
│ │ │ │ │ ├── .csslintrc
│ │ │ │ │ ├── wells.less
│ │ │ │ │ ├── breadcrumbs.less
│ │ │ │ │ ├── responsive-embed.less
│ │ │ │ │ ├── component-animations.less
│ │ │ │ │ ├── close.less
│ │ │ │ │ ├── thumbnails.less
│ │ │ │ │ ├── utilities.less
│ │ │ │ │ ├── pager.less
│ │ │ │ │ ├── media.less
│ │ │ │ │ ├── mixins.less
│ │ │ │ │ └── labels.less
│ │ │ │ ├── fonts
│ │ │ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ │ │ ├── glyphicons-halflings-regular.woff
│ │ │ │ │ └── glyphicons-halflings-regular.woff2
│ │ │ │ ├── dist
│ │ │ │ │ ├── fonts
│ │ │ │ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ │ │ │ ├── glyphicons-halflings-regular.woff
│ │ │ │ │ │ └── glyphicons-halflings-regular.woff2
│ │ │ │ │ └── js
│ │ │ │ │ │ └── npm.js
│ │ │ │ ├── js
│ │ │ │ │ └── .jshintrc
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── nuget
│ │ │ │ │ ├── MyGet.ps1
│ │ │ │ │ └── bootstrap.nuspec
│ │ │ │ ├── bower.json
│ │ │ │ ├── package.js
│ │ │ │ ├── .bower.json
│ │ │ │ └── LICENSE
│ │ │ ├── sockjs
│ │ │ │ ├── component.json
│ │ │ │ └── .bower.json
│ │ │ ├── Chart.js
│ │ │ │ ├── bower.json
│ │ │ │ └── .bower.json
│ │ │ └── vertx3-eventbus-client
│ │ │ │ ├── bower.json
│ │ │ │ └── .bower.json
│ │ │ └── bower.json
│ ├── README.md
│ └── pom.xml
├── audit-service
│ ├── src
│ │ └── conf
│ │ │ └── config.json
│ └── README.md
├── portfolio-service
│ ├── src
│ │ ├── main
│ │ │ └── java
│ │ │ │ └── io
│ │ │ │ └── vertx
│ │ │ │ └── workshop
│ │ │ │ └── portfolio
│ │ │ │ └── package-info.java
│ │ └── test
│ │ │ └── java
│ │ │ └── io
│ │ │ └── vertx
│ │ │ └── workshop
│ │ │ └── portfolio
│ │ │ └── impl
│ │ │ └── PortfolioVerticleTest.java
│ ├── README.md
│ └── pom.xml
├── quote-generator
│ ├── README.md
│ └── src
│ │ ├── conf
│ │ └── config.json
│ │ └── test
│ │ ├── resources
│ │ └── config.json
│ │ └── java
│ │ └── io
│ │ └── vertx
│ │ └── workshop
│ │ └── quote
│ │ └── MarketDataVerticleTest.java
└── compulsive-traders
│ ├── README.md
│ └── src
│ └── main
│ └── java
│ └── io
│ └── vertx
│ └── workshop
│ └── trader
│ └── impl
│ └── MainVerticle.java
├── audit-service
├── src
│ └── conf
│ │ └── config.json
└── README.md
├── TODO.md
├── vertx-workshop-common
├── README.md
└── pom.xml
├── portfolio-service
├── src
│ └── main
│ │ └── java
│ │ └── io
│ │ └── vertx
│ │ └── workshop
│ │ └── portfolio
│ │ ├── package-info.java
│ │ └── impl
│ │ └── PortfolioVerticle.java
├── README.md
└── pom.xml
├── quote-generator
├── README.md
└── src
│ ├── conf
│ └── config.json
│ └── test
│ ├── resources
│ └── config.json
│ └── java
│ └── io
│ └── vertx
│ └── workshop
│ └── quote
│ └── MarketDataVerticleTest.java
└── compulsive-traders
├── README.md
├── src
└── main
│ └── java
│ └── io
│ └── vertx
│ └── workshop
│ └── trader
│ └── impl
│ ├── MainVerticle.java
│ └── JavaCompulsiveTraderVerticle.java
└── pom.xml
/packer/.gitignore:
--------------------------------------------------------------------------------
1 | packer_cache
2 | output-virtualbox-iso
3 | packer.log
4 | *.iso
5 |
--------------------------------------------------------------------------------
/docs/images/rpc-sequence.png.cache:
--------------------------------------------------------------------------------
1 | {"checksum":"d53e375dbe69a6320b28fbea76158677","width":744,"height":419}
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/outro.js:
--------------------------------------------------------------------------------
1 | return jQuery;
2 | }));
3 |
--------------------------------------------------------------------------------
/docs/images/async-rpc-sequence.png.cache:
--------------------------------------------------------------------------------
1 | {"checksum":"a3251c42ffc9db694e46458d2db9f888","width":962,"height":419}
--------------------------------------------------------------------------------
/docs/images/diagram-sequence.png.cache:
--------------------------------------------------------------------------------
1 | {"checksum":"0e76bdfc35464648ab2ec5d9561ed892","width":276,"height":201}
--------------------------------------------------------------------------------
/docs/images/diagram-sequences.png.cache:
--------------------------------------------------------------------------------
1 | {"checksum":"0e76bdfc35464648ab2ec5d9561ed892","width":276,"height":201}
--------------------------------------------------------------------------------
/docs/images/portfolio-sequence.png.cache:
--------------------------------------------------------------------------------
1 | {"checksum":"f5e1cf05efcda41c89527e2773ea01cc","width":1464,"height":428}
--------------------------------------------------------------------------------
/packer/clean:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | rm -rf \
4 | packer_cache\
5 | output-virtualbox-iso\
6 | packer.log
7 |
8 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/outro.js:
--------------------------------------------------------------------------------
1 | return jQuery;
2 | }));
3 |
--------------------------------------------------------------------------------
/docs/images/dashboard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/images/dashboard.png
--------------------------------------------------------------------------------
/docs/images/rpc-sequence.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/images/rpc-sequence.png
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/arr.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return [];
3 | } );
4 |
--------------------------------------------------------------------------------
/docs/images/circuit-breaker.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/images/circuit-breaker.png
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/selector.js:
--------------------------------------------------------------------------------
1 | define( [ "./selector-sizzle" ], function() {} );
2 |
--------------------------------------------------------------------------------
/audit-service/src/conf/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "url": "jdbc:hsqldb:file:audit-db;shutdown=true",
3 | "driverclass" : "org.hsqldb.jdbcDriver"
4 | }
--------------------------------------------------------------------------------
/docs/assets/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/assets/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/docs/images/async-rpc-sequence.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/images/async-rpc-sequence.png
--------------------------------------------------------------------------------
/docs/images/database-sequence.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/images/database-sequence.png
--------------------------------------------------------------------------------
/docs/images/diagram-sequence.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/images/diagram-sequence.png
--------------------------------------------------------------------------------
/docs/images/diagram-sequences.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/images/diagram-sequences.png
--------------------------------------------------------------------------------
/docs/images/portfolio-sequence.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/images/portfolio-sequence.png
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/arr.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return [];
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/deletedIds.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return [];
3 | } );
4 |
--------------------------------------------------------------------------------
/docs/images/workshop-application.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/images/workshop-application.png
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/selector.js:
--------------------------------------------------------------------------------
1 | define( [ "./selector-sizzle" ], function() {} );
2 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/deletedIds.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return [];
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/ajax/var/rquery.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /\?/ );
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/rnotwhite.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /\S+/g );
3 | } );
4 |
--------------------------------------------------------------------------------
/docs/images/dashboard-initial-state.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/images/dashboard-initial-state.png
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/var/rmargin.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /^margin/ );
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/document.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return window.document;
3 | } );
4 |
--------------------------------------------------------------------------------
/docs/assets/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/assets/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/docs/assets/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/assets/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/ajax/var/rquery.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /\?/ );
3 | } );
4 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/rnotwhite.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /\S+/g );
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/ajax/var/location.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return window.location;
3 | } );
4 |
--------------------------------------------------------------------------------
/TODO.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | * Add monitoring
4 | * Add logging
5 | * Slides introduction
6 | * The second publication in the quote generator can be done by the attendees
7 |
--------------------------------------------------------------------------------
/docs/assets/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/assets/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/docs/assets/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/assets/fonts/fontawesome-webfont.woff2
--------------------------------------------------------------------------------
/solution/audit-service/src/conf/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "url": "jdbc:hsqldb:file:./target/audit-db;shutdown=true",
3 | "driverclass" : "org.hsqldb.jdbcDriver"
4 | }
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/var/rmargin.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /^margin/ );
3 | } );
4 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/document.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return window.document;
3 | } );
4 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/ajax/var/location.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return window.location;
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/var/rleadingWhitespace.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /^\s+/ );
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/var/rtagName.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /<([\w:-]+)/ );
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/push.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./arr"
3 | ], function( arr ) {
4 | return arr.push;
5 | } );
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/slice.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./arr"
3 | ], function( arr ) {
4 | return arr.slice;
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/var/rtagName.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /<([\w:-]+)/ );
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/concat.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./arr"
3 | ], function( arr ) {
4 | return arr.concat;
5 | } );
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/indexOf.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./arr"
3 | ], function( arr ) {
4 | return arr.indexOf;
5 | } );
6 |
--------------------------------------------------------------------------------
/docs/assets/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/assets/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/docs/assets/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/assets/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/docs/assets/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/assets/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/var/rleadingWhitespace.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /^\s+/ );
3 | } );
4 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/push.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./arr"
3 | ], function( arr ) {
4 | return arr.push;
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/slice.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./arr"
3 | ], function( arr ) {
4 | return arr.slice;
5 | } );
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/var/cssExpand.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return [ "Top", "Right", "Bottom", "Left" ];
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/class2type.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | // [[Class]] -> type pairs
4 | return {};
5 | } );
6 |
--------------------------------------------------------------------------------
/docs/assets/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/docs/assets/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/concat.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./arr"
3 | ], function( arr ) {
4 | return arr.concat;
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/indexOf.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./arr"
3 | ], function( arr ) {
4 | return arr.indexOf;
5 | } );
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/data/var/dataPriv.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../Data"
3 | ], function( Data ) {
4 | return new Data();
5 | } );
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/data/var/dataUser.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../Data"
3 | ], function( Data ) {
4 | return new Data();
5 | } );
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/var/rcheckableType.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /^(?:checkbox|radio)$/i );
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/var/rscriptType.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /^$|\/(?:java|ecma)script/i );
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/pnum.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
3 | } );
4 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/var/cssExpand.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return [ "Top", "Right", "Bottom", "Left" ];
3 | } );
4 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/class2type.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | // [[Class]] -> type pairs
4 | return {};
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/pnum.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/ajax/var/nonce.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../../core"
3 | ], function( jQuery ) {
4 | return jQuery.now();
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/ajax/var/nonce.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../../core"
3 | ], function( jQuery ) {
4 | return jQuery.now();
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/data/var/dataPriv.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../Data"
3 | ], function( Data ) {
4 | return new Data();
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/data/var/dataUser.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../Data"
3 | ], function( Data ) {
4 | return new Data();
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/var/rcheckableType.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /^(?:checkbox|radio)$/i );
3 | } );
4 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/var/rscriptType.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return ( /^$|\/(?:java|ecma)script/i );
3 | } );
4 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/toString.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./class2type"
3 | ], function( class2type ) {
4 | return class2type.toString;
5 | } );
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/documentElement.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./document"
3 | ], function( document ) {
4 | return document.documentElement;
5 | } );
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/hasOwn.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./class2type"
3 | ], function( class2type ) {
4 | return class2type.hasOwnProperty;
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/hasOwn.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./class2type"
3 | ], function( class2type ) {
4 | return class2type.hasOwnProperty;
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/toString.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./class2type"
3 | ], function( class2type ) {
4 | return class2type.toString;
5 | } );
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/support.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | // All support tests are defined in their respective modules.
4 | return {};
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/documentElement.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./document"
3 | ], function( document ) {
4 | return document.documentElement;
5 | } );
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/core/var/rsingleTag.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | // Match a standalone tag
4 | return ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ );
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/support.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | // All support tests are defined in their respective modules.
4 | return {};
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/core/var/rsingleTag.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | // Match a standalone tag
4 | return ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ );
5 | } );
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/var/rnumnonpx.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../../var/pnum"
3 | ], function( pnum ) {
4 | return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
5 | } );
6 |
--------------------------------------------------------------------------------
/vertx-workshop-common/README.md:
--------------------------------------------------------------------------------
1 | # Workshop common
2 |
3 | Just a set of classes used by the other projects. It configures the discovery infrastructure.
4 |
5 |
6 | ## Build
7 |
8 | ```
9 | mvn clean install
10 | ```
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/grunt/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends" : "../js/.jshintrc",
3 | "asi" : false,
4 | "browser" : false,
5 | "es3" : false,
6 | "node" : true
7 | }
8 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/var/rnumnonpx.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../../var/pnum"
3 | ], function( pnum ) {
4 | return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
5 | } );
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/rcssNum.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/pnum"
3 | ], function( pnum ) {
4 |
5 | return new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
6 |
7 | } );
8 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/grunt/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends" : "../js/.jshintrc",
3 | "asi" : false,
4 | "browser" : false,
5 | "es3" : false,
6 | "node" : true
7 | }
8 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/traversing/var/rneedsContext.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../../core",
3 | "../../selector"
4 | ], function( jQuery ) {
5 | return jQuery.expr.match.needsContext;
6 | } );
7 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/traversing/var/rneedsContext.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../../core",
3 | "../../selector"
4 | ], function( jQuery ) {
5 | return jQuery.expr.match.needsContext;
6 | } );
7 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/var/rcssNum.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/pnum"
3 | ], function( pnum ) {
4 |
5 | return new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
6 |
7 | } );
8 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/center-block.less:
--------------------------------------------------------------------------------
1 | // Center-align a block level element
2 |
3 | .center-block() {
4 | display: block;
5 | margin-left: auto;
6 | margin-right: auto;
7 | }
8 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/event/support.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/support"
3 | ], function( support ) {
4 |
5 | support.focusin = "onfocusin" in window;
6 |
7 | return support;
8 |
9 | } );
10 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/center-block.less:
--------------------------------------------------------------------------------
1 | // Center-align a block level element
2 |
3 | .center-block() {
4 | display: block;
5 | margin-left: auto;
6 | margin-right: auto;
7 | }
8 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/event/support.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/support"
3 | ], function( support ) {
4 |
5 | support.focusin = "onfocusin" in window;
6 |
7 | return support;
8 |
9 | } );
10 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/sockjs/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sockjs",
3 | "version": "0.3.4",
4 | "main": "sockjs.js",
5 | "ignore": [
6 | "**/.*",
7 | "node_modules",
8 | "components"
9 | ]
10 | }
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/sockjs/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sockjs",
3 | "version": "0.3.4",
4 | "main": "sockjs.js",
5 | "ignore": [
6 | "**/.*",
7 | "node_modules",
8 | "components"
9 | ]
10 | }
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/size.less:
--------------------------------------------------------------------------------
1 | // Sizing shortcuts
2 |
3 | .size(@width; @height) {
4 | width: @width;
5 | height: @height;
6 | }
7 |
8 | .square(@size) {
9 | .size(@size; @size);
10 | }
11 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/opacity.less:
--------------------------------------------------------------------------------
1 | // Opacity
2 |
3 | .opacity(@opacity) {
4 | opacity: @opacity;
5 | // IE8 filter
6 | @opacity-ie: (@opacity * 100);
7 | filter: ~"alpha(opacity=@{opacity-ie})";
8 | }
9 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/text-emphasis.less:
--------------------------------------------------------------------------------
1 | // Typography
2 |
3 | .text-emphasis-variant(@color) {
4 | color: @color;
5 | a&:hover,
6 | a&:focus {
7 | color: darken(@color, 10%);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/size.less:
--------------------------------------------------------------------------------
1 | // Sizing shortcuts
2 |
3 | .size(@width; @height) {
4 | width: @width;
5 | height: @height;
6 | }
7 |
8 | .square(@size) {
9 | .size(@size; @size);
10 | }
11 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/opacity.less:
--------------------------------------------------------------------------------
1 | // Opacity
2 |
3 | .opacity(@opacity) {
4 | opacity: @opacity;
5 | // IE8 filter
6 | @opacity-ie: (@opacity * 100);
7 | filter: ~"alpha(opacity=@{opacity-ie})";
8 | }
9 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/text-emphasis.less:
--------------------------------------------------------------------------------
1 | // Typography
2 |
3 | .text-emphasis-variant(@color) {
4 | color: @color;
5 | a&:hover,
6 | a&:focus {
7 | color: darken(@color, 10%);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/text-overflow.less:
--------------------------------------------------------------------------------
1 | // Text overflow
2 | // Requires inline-block or block for proper styling
3 |
4 | .text-overflow() {
5 | overflow: hidden;
6 | text-overflow: ellipsis;
7 | white-space: nowrap;
8 | }
9 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/background-variant.less:
--------------------------------------------------------------------------------
1 | // Contextual backgrounds
2 |
3 | .bg-variant(@color) {
4 | background-color: @color;
5 | a&:hover,
6 | a&:focus {
7 | background-color: darken(@color, 10%);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/tab-focus.less:
--------------------------------------------------------------------------------
1 | // WebKit-style focus
2 |
3 | .tab-focus() {
4 | // Default
5 | outline: thin dotted;
6 | // WebKit
7 | outline: 5px auto -webkit-focus-ring-color;
8 | outline-offset: -2px;
9 | }
10 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/text-overflow.less:
--------------------------------------------------------------------------------
1 | // Text overflow
2 | // Requires inline-block or block for proper styling
3 |
4 | .text-overflow() {
5 | overflow: hidden;
6 | text-overflow: ellipsis;
7 | white-space: nowrap;
8 | }
9 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/background-variant.less:
--------------------------------------------------------------------------------
1 | // Contextual backgrounds
2 |
3 | .bg-variant(@color) {
4 | background-color: @color;
5 | a&:hover,
6 | a&:focus {
7 | background-color: darken(@color, 10%);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/tab-focus.less:
--------------------------------------------------------------------------------
1 | // WebKit-style focus
2 |
3 | .tab-focus() {
4 | // Default
5 | outline: thin dotted;
6 | // WebKit
7 | outline: 5px auto -webkit-focus-ring-color;
8 | outline-offset: -2px;
9 | }
10 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/labels.less:
--------------------------------------------------------------------------------
1 | // Labels
2 |
3 | .label-variant(@color) {
4 | background-color: @color;
5 |
6 | &[href] {
7 | &:hover,
8 | &:focus {
9 | background-color: darken(@color, 10%);
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/resize.less:
--------------------------------------------------------------------------------
1 | // Resize anything
2 |
3 | .resizable(@direction) {
4 | resize: @direction; // Options: horizontal, vertical, both
5 | overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible`
6 | }
7 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/resize.less:
--------------------------------------------------------------------------------
1 | // Resize anything
2 |
3 | .resizable(@direction) {
4 | resize: @direction; // Options: horizontal, vertical, both
5 | overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible`
6 | }
7 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cescoffier/vertx-microservices-workshop/HEAD/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/labels.less:
--------------------------------------------------------------------------------
1 | // Labels
2 |
3 | .label-variant(@color) {
4 | background-color: @color;
5 |
6 | &[href] {
7 | &:hover,
8 | &:focus {
9 | background-color: darken(@color, 10%);
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "microtrader-dashboard",
3 | "version": "1.0.0",
4 | "dependencies": {
5 | "jquery": "2.2.3",
6 | "bootstrap": "3.3.6",
7 | "sockjs": "0.3.4",
8 | "vertx3-eventbus-client": "3.2.1",
9 | "Chart.js": "1.1.1"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "jquery",
3 | "main": "dist/jquery.js",
4 | "license": "MIT",
5 | "ignore": [
6 | "package.json"
7 | ],
8 | "keywords": [
9 | "jquery",
10 | "javascript",
11 | "browser",
12 | "library"
13 | ]
14 | }
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "microtrader-dashboard",
3 | "version": "1.0.0",
4 | "dependencies": {
5 | "jquery": "2.2.3",
6 | "bootstrap": "3.3.6",
7 | "sockjs": "0.3.4",
8 | "vertx3-eventbus-client": "3.2.1",
9 | "Chart.js": "1.1.1"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "jquery",
3 | "main": "dist/jquery.js",
4 | "license": "MIT",
5 | "ignore": [
6 | "package.json"
7 | ],
8 | "keywords": [
9 | "jquery",
10 | "javascript",
11 | "browser",
12 | "library"
13 | ]
14 | }
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/progress-bar.less:
--------------------------------------------------------------------------------
1 | // Progress bars
2 |
3 | .progress-bar-variant(@color) {
4 | background-color: @color;
5 |
6 | // Deprecated parent class requirement as of v3.2.0
7 | .progress-striped & {
8 | #gradient > .striped();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/attributes.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./core",
3 | "./attributes/attr",
4 | "./attributes/prop",
5 | "./attributes/classes",
6 | "./attributes/val"
7 | ], function( jQuery ) {
8 |
9 | // Return jQuery for attributes-only inclusion
10 | return jQuery;
11 | } );
12 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/progress-bar.less:
--------------------------------------------------------------------------------
1 | // Progress bars
2 |
3 | .progress-bar-variant(@color) {
4 | background-color: @color;
5 |
6 | // Deprecated parent class requirement as of v3.2.0
7 | .progress-striped & {
8 | #gradient > .striped();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/attributes.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./core",
3 | "./attributes/attr",
4 | "./attributes/prop",
5 | "./attributes/classes",
6 | "./attributes/val"
7 | ], function( jQuery ) {
8 |
9 | // Return jQuery for attributes-only inclusion
10 | return jQuery;
11 | } );
12 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/var/nodeNames.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return "abbr|article|aside|audio|bdi|canvas|data|datalist|" +
3 | "details|dialog|figcaption|figure|footer|header|hgroup|main|" +
4 | "mark|meter|nav|output|picture|progress|section|summary|template|time|video";
5 | } );
6 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/var/nodeNames.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return "abbr|article|aside|audio|bdi|canvas|data|datalist|" +
3 | "details|dialog|figcaption|figure|footer|header|hgroup|main|" +
4 | "mark|meter|nav|output|picture|progress|section|summary|template|time|video";
5 | } );
6 |
--------------------------------------------------------------------------------
/docs/README.md:
--------------------------------------------------------------------------------
1 | # Build
2 |
3 | To build the documentation:
4 |
5 | * Using Fish:
6 |
7 | ```
8 | docker run -it -v (pwd):/documents/ asciidoctor/docker-asciidoctor "./build.sh" "html"
9 | ```
10 |
11 | * Using Bash
12 |
13 | ```
14 | docker run -it -v $(pwd):/documents/ asciidoctor/docker-asciidoctor "./build.sh" "html"
15 | ```
16 |
17 |
18 |
--------------------------------------------------------------------------------
/portfolio-service/src/main/java/io/vertx/workshop/portfolio/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Indicates that this module contains classes that need to be generated / processed.
3 | */
4 | @ModuleGen(name = "vertx-workshop-portfolio", groupPackage = "io.vertx.workshop.portfolio")
5 | package io.vertx.workshop.portfolio;
6 |
7 | import io.vertx.codegen.annotations.ModuleGen;
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/traversing/var/siblings.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | return function( n, elem ) {
4 | var matched = [];
5 |
6 | for ( ; n; n = n.nextSibling ) {
7 | if ( n.nodeType === 1 && n !== elem ) {
8 | matched.push( n );
9 | }
10 | }
11 |
12 | return matched;
13 | };
14 |
15 | } );
16 |
--------------------------------------------------------------------------------
/solution/portfolio-service/src/main/java/io/vertx/workshop/portfolio/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Indicates that this module contains classes that need to be generated / processed.
3 | */
4 | @ModuleGen(name = "vertx-workshop-portfolio", groupPackage = "io.vertx.workshop.portfolio")
5 | package io.vertx.workshop.portfolio;
6 |
7 | import io.vertx.codegen.annotations.ModuleGen;
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/nav-divider.less:
--------------------------------------------------------------------------------
1 | // Horizontal dividers
2 | //
3 | // Dividers (basically an hr) within dropdowns and nav lists
4 |
5 | .nav-divider(@color: #e5e5e5) {
6 | height: 1px;
7 | margin: ((@line-height-computed / 2) - 1) 0;
8 | overflow: hidden;
9 | background-color: @color;
10 | }
11 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/reset-filter.less:
--------------------------------------------------------------------------------
1 | // Reset filters for IE
2 | //
3 | // When you need to remove a gradient background, do not forget to use this to reset
4 | // the IE filter for IE9 and below.
5 |
6 | .reset-filter() {
7 | filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
8 | }
9 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/ajax/parseJSON.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core"
3 | ], function( jQuery ) {
4 |
5 | // Support: Android 2.3
6 | // Workaround failure to string-cast null input
7 | jQuery.parseJSON = function( data ) {
8 | return JSON.parse( data + "" );
9 | };
10 |
11 | return jQuery.parseJSON;
12 |
13 | } );
14 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/ajax/parseJSON.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core"
3 | ], function( jQuery ) {
4 |
5 | // Support: Android 2.3
6 | // Workaround failure to string-cast null input
7 | jQuery.parseJSON = function( data ) {
8 | return JSON.parse( data + "" );
9 | };
10 |
11 | return jQuery.parseJSON;
12 |
13 | } );
14 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/traversing/var/siblings.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | return function( n, elem ) {
4 | var matched = [];
5 |
6 | for ( ; n; n = n.nextSibling ) {
7 | if ( n.nodeType === 1 && n !== elem ) {
8 | matched.push( n );
9 | }
10 | }
11 |
12 | return matched;
13 | };
14 |
15 | } );
16 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/nav-divider.less:
--------------------------------------------------------------------------------
1 | // Horizontal dividers
2 | //
3 | // Dividers (basically an hr) within dropdowns and nav lists
4 |
5 | .nav-divider(@color: #e5e5e5) {
6 | height: 1px;
7 | margin: ((@line-height-computed / 2) - 1) 0;
8 | overflow: hidden;
9 | background-color: @color;
10 | }
11 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/reset-filter.less:
--------------------------------------------------------------------------------
1 | // Reset filters for IE
2 | //
3 | // When you need to remove a gradient background, do not forget to use this to reset
4 | // the IE filter for IE9 and below.
5 |
6 | .reset-filter() {
7 | filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
8 | }
9 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/effects/animatedSelector.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 | "../selector",
4 | "../effects"
5 | ], function( jQuery ) {
6 |
7 | jQuery.expr.filters.animated = function( elem ) {
8 | return jQuery.grep( jQuery.timers, function( fn ) {
9 | return elem === fn.elem;
10 | } ).length;
11 | };
12 |
13 | } );
14 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/effects/animatedSelector.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 | "../selector",
4 | "../effects"
5 | ], function( jQuery ) {
6 |
7 | jQuery.expr.filters.animated = function( elem ) {
8 | return jQuery.grep( jQuery.timers, function( fn ) {
9 | return elem === fn.elem;
10 | } ).length;
11 | };
12 |
13 | } );
14 |
--------------------------------------------------------------------------------
/audit-service/README.md:
--------------------------------------------------------------------------------
1 | # Audit service
2 |
3 | The audit service receives operation (shares bought or sold) from the event bus and store them in a database. It also
4 | provides a REST endpoint to retrieve the last 10 operations.
5 |
6 | ## Build
7 |
8 | ```
9 | mvn clean package
10 | ```
11 |
12 | ## Run
13 |
14 | ```
15 | java -jar target/audit-service-1.0-SNAPSHOT-fat.jar
16 | ```
17 |
--------------------------------------------------------------------------------
/solution/audit-service/README.md:
--------------------------------------------------------------------------------
1 | # Audit service
2 |
3 | The audit service receives operation (shares bought or sold) from the event bus and store them in a database. It also
4 | provides a REST endpoint to retrieve the last 10 operations.
5 |
6 | ## Build
7 |
8 | ```
9 | mvn clean package
10 | ```
11 |
12 | ## Run
13 |
14 | ```
15 | java -jar target/audit-service-1.0-SNAPSHOT-fat.jar
16 | ```
17 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/alerts.less:
--------------------------------------------------------------------------------
1 | // Alerts
2 |
3 | .alert-variant(@background; @border; @text-color) {
4 | background-color: @background;
5 | border-color: @border;
6 | color: @text-color;
7 |
8 | hr {
9 | border-top-color: darken(@border, 5%);
10 | }
11 | .alert-link {
12 | color: darken(@text-color, 10%);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/quote-generator/README.md:
--------------------------------------------------------------------------------
1 | # Quote generator
2 |
3 | The quote generator simulates the evolution of the values of 3 companies. Every quote is sent on the event bus. It
4 | also exposes a HTTP endpoint to retrieve the last quote of each company.
5 |
6 |
7 | ## Build
8 |
9 | ```
10 | mvn clean package
11 | ```
12 |
13 | ## Run
14 |
15 | ```
16 | java -jar target/quote-generator-1.0-SNAPSHOT-fat.jar
17 | ```
18 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/alerts.less:
--------------------------------------------------------------------------------
1 | // Alerts
2 |
3 | .alert-variant(@background; @border; @text-color) {
4 | background-color: @background;
5 | border-color: @border;
6 | color: @text-color;
7 |
8 | hr {
9 | border-top-color: darken(@border, 5%);
10 | }
11 | .alert-link {
12 | color: darken(@text-color, 10%);
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/solution/quote-generator/README.md:
--------------------------------------------------------------------------------
1 | # Quote generator
2 |
3 | The quote generator simulates the evolution of the values of 3 companies. Every quote is sent on the event bus. It
4 | also exposes a HTTP endpoint to retrieve the last quote of each company.
5 |
6 |
7 | ## Build
8 |
9 | ```
10 | mvn clean package
11 | ```
12 |
13 | ## Run
14 |
15 | ```
16 | java -jar target/quote-generator-1.0-SNAPSHOT-fat.jar
17 | ```
18 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/js/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "asi" : true,
3 | "browser" : true,
4 | "eqeqeq" : false,
5 | "eqnull" : true,
6 | "es3" : true,
7 | "expr" : true,
8 | "jquery" : true,
9 | "latedef" : true,
10 | "laxbreak" : true,
11 | "nonbsp" : true,
12 | "strict" : true,
13 | "undef" : true,
14 | "unused" : true
15 | }
16 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/core/DOMEval.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/document"
3 | ], function( document ) {
4 | function DOMEval( code, doc ) {
5 | doc = doc || document;
6 |
7 | var script = doc.createElement( "script" );
8 |
9 | script.text = code;
10 | doc.head.appendChild( script ).parentNode.removeChild( script );
11 | }
12 |
13 | return DOMEval;
14 | } );
15 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/core/DOMEval.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/document"
3 | ], function( document ) {
4 | function DOMEval( code, doc ) {
5 | doc = doc || document;
6 |
7 | var script = doc.createElement( "script" );
8 |
9 | script.text = code;
10 | doc.head.appendChild( script ).parentNode.removeChild( script );
11 | }
12 |
13 | return DOMEval;
14 | } );
15 |
--------------------------------------------------------------------------------
/compulsive-traders/README.md:
--------------------------------------------------------------------------------
1 | # Compulsive Traders
2 |
3 | The compulsive traders projects contains 2 implementations of (very dumb) _traders_ that sell and buy shares. They
4 | receive quotes from the event bus and use the portfolio service to buy and sell shared.
5 |
6 | ## Build
7 |
8 | ```
9 | mvn clean package
10 | ```
11 |
12 | ## Run
13 |
14 | ```
15 | java -jar target/compulsive-traders-1.0-SNAPSHOT-fat.jar
16 | ```
17 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/js/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "asi" : true,
3 | "browser" : true,
4 | "eqeqeq" : false,
5 | "eqnull" : true,
6 | "es3" : true,
7 | "expr" : true,
8 | "jquery" : true,
9 | "latedef" : true,
10 | "laxbreak" : true,
11 | "nonbsp" : true,
12 | "strict" : true,
13 | "undef" : true,
14 | "unused" : true
15 | }
16 |
--------------------------------------------------------------------------------
/solution/compulsive-traders/README.md:
--------------------------------------------------------------------------------
1 | # Compulsive Traders
2 |
3 | The compulsive traders projects contains 2 implementations of (very dumb) _traders_ that sell and buy shares. They
4 | receive quotes from the event bus and use the portfolio service to buy and sell shared.
5 |
6 | ## Build
7 |
8 | ```
9 | mvn clean package
10 | ```
11 |
12 | ## Run
13 |
14 | ```
15 | java -jar target/compulsive-traders-1.0-SNAPSHOT-fat.jar
16 | ```
17 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/selector-sizzle.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./core",
3 | "../external/sizzle/dist/sizzle"
4 | ], function( jQuery, Sizzle ) {
5 |
6 | jQuery.find = Sizzle;
7 | jQuery.expr = Sizzle.selectors;
8 | jQuery.expr[ ":" ] = jQuery.expr.pseudos;
9 | jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
10 | jQuery.text = Sizzle.getText;
11 | jQuery.isXMLDoc = Sizzle.isXML;
12 | jQuery.contains = Sizzle.contains;
13 |
14 | } );
15 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/data/var/acceptData.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | /**
4 | * Determines whether an object can have data
5 | */
6 | return function( owner ) {
7 |
8 | // Accepts only:
9 | // - Node
10 | // - Node.ELEMENT_NODE
11 | // - Node.DOCUMENT_NODE
12 | // - Object
13 | // - Any
14 | /* jshint -W018 */
15 | return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
16 | };
17 |
18 | } );
19 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/selector-sizzle.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./core",
3 | "../external/sizzle/dist/sizzle"
4 | ], function( jQuery, Sizzle ) {
5 |
6 | jQuery.find = Sizzle;
7 | jQuery.expr = Sizzle.selectors;
8 | jQuery.expr[ ":" ] = jQuery.expr.pseudos;
9 | jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
10 | jQuery.text = Sizzle.getText;
11 | jQuery.isXMLDoc = Sizzle.isXML;
12 | jQuery.contains = Sizzle.contains;
13 |
14 | } );
15 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/data/var/acceptData.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | /**
4 | * Determines whether an object can have data
5 | */
6 | return function( owner ) {
7 |
8 | // Accepts only:
9 | // - Node
10 | // - Node.ELEMENT_NODE
11 | // - Node.DOCUMENT_NODE
12 | // - Object
13 | // - Any
14 | /* jshint -W018 */
15 | return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
16 | };
17 |
18 | } );
19 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/nav-vertical-align.less:
--------------------------------------------------------------------------------
1 | // Navbar vertical align
2 | //
3 | // Vertically center elements in the navbar.
4 | // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
5 |
6 | .navbar-vertical-align(@element-height) {
7 | margin-top: ((@navbar-height - @element-height) / 2);
8 | margin-bottom: ((@navbar-height - @element-height) / 2);
9 | }
10 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/event/ajax.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 | "../event"
4 | ], function( jQuery ) {
5 |
6 | // Attach a bunch of functions for handling common AJAX events
7 | jQuery.each( [
8 | "ajaxStart",
9 | "ajaxStop",
10 | "ajaxComplete",
11 | "ajaxError",
12 | "ajaxSuccess",
13 | "ajaxSend"
14 | ], function( i, type ) {
15 | jQuery.fn[ type ] = function( fn ) {
16 | return this.on( type, fn );
17 | };
18 | } );
19 |
20 | } );
21 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/_evalUrl.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../ajax"
3 | ], function( jQuery ) {
4 |
5 | jQuery._evalUrl = function( url ) {
6 | return jQuery.ajax( {
7 | url: url,
8 |
9 | // Make this explicit, since user can override this through ajaxSetup (#11264)
10 | type: "GET",
11 | dataType: "script",
12 | async: false,
13 | global: false,
14 | "throws": true
15 | } );
16 | };
17 |
18 | return jQuery._evalUrl;
19 |
20 | } );
21 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/nav-vertical-align.less:
--------------------------------------------------------------------------------
1 | // Navbar vertical align
2 | //
3 | // Vertically center elements in the navbar.
4 | // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
5 |
6 | .navbar-vertical-align(@element-height) {
7 | margin-top: ((@navbar-height - @element-height) / 2);
8 | margin-bottom: ((@navbar-height - @element-height) / 2);
9 | }
10 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/event/ajax.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 | "../event"
4 | ], function( jQuery ) {
5 |
6 | // Attach a bunch of functions for handling common AJAX events
7 | jQuery.each( [
8 | "ajaxStart",
9 | "ajaxStop",
10 | "ajaxComplete",
11 | "ajaxError",
12 | "ajaxSuccess",
13 | "ajaxSend"
14 | ], function( i, type ) {
15 | jQuery.fn[ type ] = function( fn ) {
16 | return this.on( type, fn );
17 | };
18 | } );
19 |
20 | } );
21 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | Bootstrap uses [GitHub's Releases feature](https://github.com/blog/1547-release-your-software) for its changelogs.
2 |
3 | See [the Releases section of our GitHub project](https://github.com/twbs/bootstrap/releases) for changelogs for each release version of Bootstrap.
4 |
5 | Release announcement posts on [the official Bootstrap blog](http://blog.getbootstrap.com) contain summaries of the most noteworthy changes made in each release.
6 |
--------------------------------------------------------------------------------
/portfolio-service/README.md:
--------------------------------------------------------------------------------
1 | # Portfolio service
2 |
3 | The portfolio service manages your portfolio: the available cash and the owned shares. It is exposed as an async RPC
4 | service on the event bus. It consumes the _consolidation_ endpoint from the quote generator and on every successful
5 | operation, it sends a message on the event bus.
6 |
7 |
8 | ## Build
9 |
10 | ```
11 | mvn clean package
12 | ```
13 |
14 | ## Run
15 |
16 | ```
17 | java -jar target/portfolio-service-1.0-SNAPSHOT-fat.jar
18 | ```
19 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/_evalUrl.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../ajax"
3 | ], function( jQuery ) {
4 |
5 | jQuery._evalUrl = function( url ) {
6 | return jQuery.ajax( {
7 | url: url,
8 |
9 | // Make this explicit, since user can override this through ajaxSetup (#11264)
10 | type: "GET",
11 | dataType: "script",
12 | async: false,
13 | global: false,
14 | "throws": true
15 | } );
16 | };
17 |
18 | return jQuery._evalUrl;
19 |
20 | } );
21 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | Bootstrap uses [GitHub's Releases feature](https://github.com/blog/1547-release-your-software) for its changelogs.
2 |
3 | See [the Releases section of our GitHub project](https://github.com/twbs/bootstrap/releases) for changelogs for each release version of Bootstrap.
4 |
5 | Release announcement posts on [the official Bootstrap blog](http://blog.getbootstrap.com) contain summaries of the most noteworthy changes made in each release.
6 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/var/isHidden.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../../core",
3 | "../../selector"
4 |
5 | // css is assumed
6 | ], function( jQuery ) {
7 |
8 | return function( elem, el ) {
9 |
10 | // isHidden might be called from jQuery#filter function;
11 | // in that case, element will be second argument
12 | elem = el || elem;
13 | return jQuery.css( elem, "display" ) === "none" ||
14 | !jQuery.contains( elem.ownerDocument, elem );
15 | };
16 | } );
17 |
--------------------------------------------------------------------------------
/solution/portfolio-service/README.md:
--------------------------------------------------------------------------------
1 | # Portfolio service
2 |
3 | The portfolio service manages your portfolio: the available cash and the owned shares. It is exposed as an async RPC
4 | service on the event bus. It consumes the _consolidation_ endpoint from the quote generator and on every successful
5 | operation, it sends a message on the event bus.
6 |
7 |
8 | ## Build
9 |
10 | ```
11 | mvn clean package
12 | ```
13 |
14 | ## Run
15 |
16 | ```
17 | java -jar target/portfolio-service-1.0-SNAPSHOT-fat.jar
18 | ```
19 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/var/isHidden.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../../core",
3 | "../../selector"
4 |
5 | // css is assumed
6 | ], function( jQuery ) {
7 |
8 | return function( elem, el ) {
9 |
10 | // isHidden might be called from jQuery#filter function;
11 | // in that case, element will be second argument
12 | elem = el || elem;
13 | return jQuery.css( elem, "display" ) === "none" ||
14 | !jQuery.contains( elem.ownerDocument, elem );
15 | };
16 | } );
17 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/responsive-visibility.less:
--------------------------------------------------------------------------------
1 | // Responsive utilities
2 |
3 | //
4 | // More easily include all the states for responsive-utilities.less.
5 | .responsive-visibility() {
6 | display: block !important;
7 | table& { display: table !important; }
8 | tr& { display: table-row !important; }
9 | th&,
10 | td& { display: table-cell !important; }
11 | }
12 |
13 | .responsive-invisibility() {
14 | display: none !important;
15 | }
16 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/responsive-visibility.less:
--------------------------------------------------------------------------------
1 | // Responsive utilities
2 |
3 | //
4 | // More easily include all the states for responsive-utilities.less.
5 | .responsive-visibility() {
6 | display: block !important;
7 | table& { display: table !important; }
8 | tr& { display: table-row !important; }
9 | th&,
10 | td& { display: table-cell !important; }
11 | }
12 |
13 | .responsive-invisibility() {
14 | display: none !important;
15 | }
16 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/var/getStyles.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return function( elem ) {
3 |
4 | // Support: IE<=11+, Firefox<=30+ (#15098, #14150)
5 | // IE throws on elements created in popups
6 | // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
7 | var view = elem.ownerDocument.defaultView;
8 |
9 | if ( !view || !view.opener ) {
10 | view = window;
11 | }
12 |
13 | return view.getComputedStyle( elem );
14 | };
15 | } );
16 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/traversing/var/dir.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../../core"
3 | ], function( jQuery ) {
4 |
5 | return function( elem, dir, until ) {
6 | var matched = [],
7 | truncate = until !== undefined;
8 |
9 | while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
10 | if ( elem.nodeType === 1 ) {
11 | if ( truncate && jQuery( elem ).is( until ) ) {
12 | break;
13 | }
14 | matched.push( elem );
15 | }
16 | }
17 | return matched;
18 | };
19 |
20 | } );
21 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/var/getStyles.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 | return function( elem ) {
3 |
4 | // Support: IE<=11+, Firefox<=30+ (#15098, #14150)
5 | // IE throws on elements created in popups
6 | // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
7 | var view = elem.ownerDocument.defaultView;
8 |
9 | if ( !view || !view.opener ) {
10 | view = window;
11 | }
12 |
13 | return view.getComputedStyle( elem );
14 | };
15 | } );
16 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/createSafeFragment.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./var/nodeNames"
3 | ], function( nodeNames ) {
4 |
5 | function createSafeFragment( document ) {
6 | var list = nodeNames.split( "|" ),
7 | safeFrag = document.createDocumentFragment();
8 |
9 | if ( safeFrag.createElement ) {
10 | while ( list.length ) {
11 | safeFrag.createElement(
12 | list.pop()
13 | );
14 | }
15 | }
16 | return safeFrag;
17 | }
18 |
19 | return createSafeFragment;
20 | } );
21 |
--------------------------------------------------------------------------------
/packer/scripts/maven.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 | set -x
5 |
6 | cd ${HOME}
7 | MIRROR=$(curl 'https://www.apache.org/dyn/closer.cgi' | grep -o '[^<]*' | sed 's/<[^>]*>//g' | head -1)
8 | wget ${MIRROR}/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
9 | tar zxf apache-maven-3.3.9-bin.tar.gz
10 | mv apache-maven-3.3.9 maven
11 | echo 'export M2_HOME=${HOME}/maven' >> ${HOME}/.bash_profile
12 | echo 'export PATH=${M2_HOME}/bin:${PATH}' >> ${HOME}/.bash_profile
13 | rm apache-maven-3.3.9-bin.tar.gz
14 |
15 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/traversing/var/dir.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../../core"
3 | ], function( jQuery ) {
4 |
5 | return function( elem, dir, until ) {
6 | var matched = [],
7 | truncate = until !== undefined;
8 |
9 | while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
10 | if ( elem.nodeType === 1 ) {
11 | if ( truncate && jQuery( elem ).is( until ) ) {
12 | break;
13 | }
14 | matched.push( elem );
15 | }
16 | }
17 | return matched;
18 | };
19 |
20 | } );
21 |
--------------------------------------------------------------------------------
/trader-dashboard/README.md:
--------------------------------------------------------------------------------
1 | # Trader dashboard
2 |
3 | This component is a UI to see what's going on with our trading system. It uses:
4 |
5 | 1. the portfolio service (event bus service)
6 | 2. the quotes sent by the quote generator to display the evolution of the prices.
7 | 3. the REST endpoint exposed with the audit service to retrieve the last operations (optional)
8 |
9 |
10 | ## Build
11 |
12 | ```
13 | mvn clean package
14 | ```
15 |
16 | ## Run
17 |
18 | ```
19 | java -jar target/trader-dashboard-1.0-SNAPSHOT-fat.jar
20 | ```
21 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/data/support.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/document",
3 | "../var/support"
4 | ], function( document, support ) {
5 |
6 | ( function() {
7 | var div = document.createElement( "div" );
8 |
9 | // Support: IE<9
10 | support.deleteExpando = true;
11 | try {
12 | delete div.test;
13 | } catch ( e ) {
14 | support.deleteExpando = false;
15 | }
16 |
17 | // Null elements to avoid leaks in IE.
18 | div = null;
19 | } )();
20 |
21 | return support;
22 |
23 | } );
24 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/data/support.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/document",
3 | "../var/support"
4 | ], function( document, support ) {
5 |
6 | ( function() {
7 | var div = document.createElement( "div" );
8 |
9 | // Support: IE<9
10 | support.deleteExpando = true;
11 | try {
12 | delete div.test;
13 | } catch ( e ) {
14 | support.deleteExpando = false;
15 | }
16 |
17 | // Null elements to avoid leaks in IE.
18 | div = null;
19 | } )();
20 |
21 | return support;
22 |
23 | } );
24 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/createSafeFragment.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./var/nodeNames"
3 | ], function( nodeNames ) {
4 |
5 | function createSafeFragment( document ) {
6 | var list = nodeNames.split( "|" ),
7 | safeFrag = document.createDocumentFragment();
8 |
9 | if ( safeFrag.createElement ) {
10 | while ( list.length ) {
11 | safeFrag.createElement(
12 | list.pop()
13 | );
14 | }
15 | }
16 | return safeFrag;
17 | }
18 |
19 | return createSafeFragment;
20 | } );
21 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/setGlobalEval.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../data/var/dataPriv"
3 | ], function( dataPriv ) {
4 |
5 | // Mark scripts as having already been evaluated
6 | function setGlobalEval( elems, refElements ) {
7 | var i = 0,
8 | l = elems.length;
9 |
10 | for ( ; i < l; i++ ) {
11 | dataPriv.set(
12 | elems[ i ],
13 | "globalEval",
14 | !refElements || dataPriv.get( refElements[ i ], "globalEval" )
15 | );
16 | }
17 | }
18 |
19 | return setGlobalEval;
20 | } );
21 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/README.md:
--------------------------------------------------------------------------------
1 | # Trader dashboard
2 |
3 | This component is a UI to see what's going on with our trading system. It uses:
4 |
5 | 1. the portfolio service (event bus service)
6 | 2. the quotes sent by the quote generator to display the evolution of the prices.
7 | 3. the REST endpoint exposed with the audit service to retrieve the last operations (optional)
8 |
9 |
10 | ## Build
11 |
12 | ```
13 | mvn clean package
14 | ```
15 |
16 | ## Run
17 |
18 | ```
19 | java -jar target/trader-dashboard-1.0-SNAPSHOT-fat.jar
20 | ```
21 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/data/accepts.js:
--------------------------------------------------------------------------------
1 | define([
2 | "../core"
3 | ], function( jQuery ) {
4 |
5 | /**
6 | * Determines whether an object can have data
7 | */
8 | jQuery.acceptData = function( owner ) {
9 | // Accepts only:
10 | // - Node
11 | // - Node.ELEMENT_NODE
12 | // - Node.DOCUMENT_NODE
13 | // - Object
14 | // - Any
15 | /* jshint -W018 */
16 | return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
17 | };
18 |
19 | return jQuery.acceptData;
20 | });
21 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/setGlobalEval.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../data/var/dataPriv"
3 | ], function( dataPriv ) {
4 |
5 | // Mark scripts as having already been evaluated
6 | function setGlobalEval( elems, refElements ) {
7 | var i = 0,
8 | l = elems.length;
9 |
10 | for ( ; i < l; i++ ) {
11 | dataPriv.set(
12 | elems[ i ],
13 | "globalEval",
14 | !refElements || dataPriv.get( refElements[ i ], "globalEval" )
15 | );
16 | }
17 | }
18 |
19 | return setGlobalEval;
20 | } );
21 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/data/accepts.js:
--------------------------------------------------------------------------------
1 | define([
2 | "../core"
3 | ], function( jQuery ) {
4 |
5 | /**
6 | * Determines whether an object can have data
7 | */
8 | jQuery.acceptData = function( owner ) {
9 | // Accepts only:
10 | // - Node
11 | // - Node.ELEMENT_NODE
12 | // - Node.DOCUMENT_NODE
13 | // - Object
14 | // - Any
15 | /* jshint -W018 */
16 | return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
17 | };
18 |
19 | return jQuery.acceptData;
20 | });
21 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/Chart.js/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Chart.js",
3 | "description": "Simple HTML5 Charts using the canvas element",
4 | "homepage": "https://github.com/nnnick/Chart.js",
5 | "author": "nnnick",
6 | "main": [
7 | "Chart.js"
8 | ],
9 | "ignore": [
10 | "**/*",
11 | ".travis.yml",
12 | "CONTRIBUTING.md",
13 | "Chart.js",
14 | "LICENSE.md",
15 | "README.md",
16 | "gulpfile.js",
17 | "package.json"
18 | ],
19 | "dependencies": {},
20 | "version": "1.1.1"
21 | }
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/nuget/MyGet.ps1:
--------------------------------------------------------------------------------
1 | $nuget = $env:NuGet
2 |
3 | #parse the version number out of package.json
4 | $bsversion = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version
5 |
6 | #create packages
7 | & $nuget pack "nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion
8 | & $nuget pack "nuget\bootstrap.less.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/Chart.js/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Chart.js",
3 | "description": "Simple HTML5 Charts using the canvas element",
4 | "homepage": "https://github.com/nnnick/Chart.js",
5 | "author": "nnnick",
6 | "main": [
7 | "Chart.js"
8 | ],
9 | "ignore": [
10 | "**/*",
11 | ".travis.yml",
12 | "CONTRIBUTING.md",
13 | "Chart.js",
14 | "LICENSE.md",
15 | "README.md",
16 | "gulpfile.js",
17 | "package.json"
18 | ],
19 | "dependencies": {},
20 | "version": "1.1.1"
21 | }
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/nuget/MyGet.ps1:
--------------------------------------------------------------------------------
1 | $nuget = $env:NuGet
2 |
3 | #parse the version number out of package.json
4 | $bsversion = ((Get-Content $env:SourcesPath\package.json) -join "`n" | ConvertFrom-Json).version
5 |
6 | #create packages
7 | & $nuget pack "nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion
8 | & $nuget pack "nuget\bootstrap.less.nuspec" -Verbosity detailed -NonInteractive -NoPackageAnalysis -BasePath $env:SourcesPath -Version $bsversion
--------------------------------------------------------------------------------
/quote-generator/src/conf/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "http.port": 35000,
3 | "companies": [
4 | {
5 | "name": "MacroHard",
6 | "symbol": "MCH",
7 | "volume": 95000,
8 | "price": 600,
9 | "variation": 100
10 | },
11 | {
12 | "name": "Divinator",
13 | "symbol": "DVN",
14 | "volume": 98000,
15 | "price": 650,
16 | "variation": 50
17 | },
18 | {
19 | "name": "Black Coat",
20 | "symbol": "BCT",
21 | "volume": 90000,
22 | "price": 550,
23 | "variation": 150
24 | }
25 | ]
26 | }
27 |
--------------------------------------------------------------------------------
/solution/quote-generator/src/conf/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "http.port": 35000,
3 | "companies": [
4 | {
5 | "name": "MacroHard",
6 | "symbol": "MCH",
7 | "volume": 95000,
8 | "price": 600,
9 | "variation": 100
10 | },
11 | {
12 | "name": "Divinator",
13 | "symbol": "DVN",
14 | "volume": 98000,
15 | "price": 650,
16 | "variation": 50
17 | },
18 | {
19 | "name": "Black Coat",
20 | "symbol": "BCT",
21 | "volume": 90000,
22 | "price": 550,
23 | "variation": 150
24 | }
25 | ]
26 | }
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/js/npm.js:
--------------------------------------------------------------------------------
1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
2 | require('../../js/transition.js')
3 | require('../../js/alert.js')
4 | require('../../js/button.js')
5 | require('../../js/carousel.js')
6 | require('../../js/collapse.js')
7 | require('../../js/dropdown.js')
8 | require('../../js/modal.js')
9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/.csslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "adjoining-classes": false,
3 | "box-sizing": false,
4 | "box-model": false,
5 | "compatible-vendor-prefixes": false,
6 | "floats": false,
7 | "font-sizes": false,
8 | "gradients": false,
9 | "important": false,
10 | "known-properties": false,
11 | "outline-none": false,
12 | "qualified-headings": false,
13 | "regex-selectors": false,
14 | "shorthand": false,
15 | "text-indent": false,
16 | "unique-headings": false,
17 | "universal-selector": false,
18 | "unqualified-attributes": false
19 | }
20 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/dist/js/npm.js:
--------------------------------------------------------------------------------
1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
2 | require('../../js/transition.js')
3 | require('../../js/alert.js')
4 | require('../../js/button.js')
5 | require('../../js/carousel.js')
6 | require('../../js/collapse.js')
7 | require('../../js/dropdown.js')
8 | require('../../js/modal.js')
9 | require('../../js/tooltip.js')
10 | require('../../js/popover.js')
11 | require('../../js/scrollspy.js')
12 | require('../../js/tab.js')
13 | require('../../js/affix.js')
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/sockjs/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sockjs",
3 | "version": "0.3.4",
4 | "main": "sockjs.js",
5 | "ignore": [
6 | "**/.*",
7 | "node_modules",
8 | "components"
9 | ],
10 | "homepage": "https://github.com/myguidingstar/bower-sockjs",
11 | "_release": "0.3.4",
12 | "_resolution": {
13 | "type": "version",
14 | "tag": "0.3.4",
15 | "commit": "ae96e770ab85caf9073a8806a9dcd7c0ce316623"
16 | },
17 | "_source": "https://github.com/myguidingstar/bower-sockjs.git",
18 | "_target": "0.3.4",
19 | "_originalSource": "sockjs"
20 | }
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/.csslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "adjoining-classes": false,
3 | "box-sizing": false,
4 | "box-model": false,
5 | "compatible-vendor-prefixes": false,
6 | "floats": false,
7 | "font-sizes": false,
8 | "gradients": false,
9 | "important": false,
10 | "known-properties": false,
11 | "outline-none": false,
12 | "qualified-headings": false,
13 | "regex-selectors": false,
14 | "shorthand": false,
15 | "text-indent": false,
16 | "unique-headings": false,
17 | "universal-selector": false,
18 | "unqualified-attributes": false
19 | }
20 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/sockjs/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sockjs",
3 | "version": "0.3.4",
4 | "main": "sockjs.js",
5 | "ignore": [
6 | "**/.*",
7 | "node_modules",
8 | "components"
9 | ],
10 | "homepage": "https://github.com/myguidingstar/bower-sockjs",
11 | "_release": "0.3.4",
12 | "_resolution": {
13 | "type": "version",
14 | "tag": "0.3.4",
15 | "commit": "ae96e770ab85caf9073a8806a9dcd7c0ce316623"
16 | },
17 | "_source": "https://github.com/myguidingstar/bower-sockjs.git",
18 | "_target": "0.3.4",
19 | "_originalSource": "sockjs"
20 | }
--------------------------------------------------------------------------------
/quote-generator/src/test/resources/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "companies": [
3 | {
4 | "name": "MacroHard",
5 | "symbol": "MCH",
6 | "volume": 100000,
7 | "price": 600,
8 | "variation": 200,
9 | "period": 100
10 | },
11 | {
12 | "name": "Divinator",
13 | "symbol": "DVN",
14 | "volume": 500000,
15 | "price": 800,
16 | "variation": 50,
17 | "period": 100
18 | },
19 | {
20 | "name": "Black Coat",
21 | "symbol": "BCT",
22 | "volume": 90000,
23 | "price": 300,
24 | "variation": 150,
25 | "period": 100
26 | }
27 | ]
28 |
29 | }
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/border-radius.less:
--------------------------------------------------------------------------------
1 | // Single side border-radius
2 |
3 | .border-top-radius(@radius) {
4 | border-top-right-radius: @radius;
5 | border-top-left-radius: @radius;
6 | }
7 | .border-right-radius(@radius) {
8 | border-bottom-right-radius: @radius;
9 | border-top-right-radius: @radius;
10 | }
11 | .border-bottom-radius(@radius) {
12 | border-bottom-right-radius: @radius;
13 | border-bottom-left-radius: @radius;
14 | }
15 | .border-left-radius(@radius) {
16 | border-bottom-left-radius: @radius;
17 | border-top-left-radius: @radius;
18 | }
19 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/reset-text.less:
--------------------------------------------------------------------------------
1 | .reset-text() {
2 | font-family: @font-family-base;
3 | // We deliberately do NOT reset font-size.
4 | font-style: normal;
5 | font-weight: normal;
6 | letter-spacing: normal;
7 | line-break: auto;
8 | line-height: @line-height-base;
9 | text-align: left; // Fallback for where `start` is not supported
10 | text-align: start;
11 | text-decoration: none;
12 | text-shadow: none;
13 | text-transform: none;
14 | white-space: normal;
15 | word-break: normal;
16 | word-spacing: normal;
17 | word-wrap: normal;
18 | }
19 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/reset-text.less:
--------------------------------------------------------------------------------
1 | .reset-text() {
2 | font-family: @font-family-base;
3 | // We deliberately do NOT reset font-size.
4 | font-style: normal;
5 | font-weight: normal;
6 | letter-spacing: normal;
7 | line-break: auto;
8 | line-height: @line-height-base;
9 | text-align: left; // Fallback for where `start` is not supported
10 | text-align: start;
11 | text-decoration: none;
12 | text-shadow: none;
13 | text-transform: none;
14 | white-space: normal;
15 | word-break: normal;
16 | word-spacing: normal;
17 | word-wrap: normal;
18 | }
19 |
--------------------------------------------------------------------------------
/solution/quote-generator/src/test/resources/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "companies": [
3 | {
4 | "name": "MacroHard",
5 | "symbol": "MCH",
6 | "volume": 100000,
7 | "price": 600,
8 | "variation": 200,
9 | "period": 100
10 | },
11 | {
12 | "name": "Divinator",
13 | "symbol": "DVN",
14 | "volume": 500000,
15 | "price": 800,
16 | "variation": 50,
17 | "period": 100
18 | },
19 | {
20 | "name": "Black Coat",
21 | "symbol": "BCT",
22 | "volume": 90000,
23 | "price": 300,
24 | "variation": 150,
25 | "period": 100
26 | }
27 | ]
28 |
29 | }
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/border-radius.less:
--------------------------------------------------------------------------------
1 | // Single side border-radius
2 |
3 | .border-top-radius(@radius) {
4 | border-top-right-radius: @radius;
5 | border-top-left-radius: @radius;
6 | }
7 | .border-right-radius(@radius) {
8 | border-bottom-right-radius: @radius;
9 | border-top-right-radius: @radius;
10 | }
11 | .border-bottom-radius(@radius) {
12 | border-bottom-right-radius: @radius;
13 | border-bottom-left-radius: @radius;
14 | }
15 | .border-left-radius(@radius) {
16 | border-bottom-left-radius: @radius;
17 | border-top-left-radius: @radius;
18 | }
19 |
--------------------------------------------------------------------------------
/packer/scripts/lab_setup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 | set -x
5 |
6 | export JAVA_HOME=${HOME}/jdk
7 | export PATH=${JAVA_HOME}/bin:${PATH}
8 | export M2_HOME=${HOME}/maven
9 | export PATH=${M2_HOME}/bin:${PATH}
10 |
11 | echo "#################################################################"
12 | echo "Checking Maven install"
13 | echo
14 | mvn -version
15 | echo
16 | echo "Done"
17 | echo "#################################################################"
18 |
19 | cd ${HOME}
20 | export BRANCH=master
21 | git clone https://github.com/cescoffier/vertx-microservices-workshop.git
22 | cd vertx-microservices-workshop
23 | mvn install dependency:go-offline
24 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "boss": true,
3 | "curly": true,
4 | "eqeqeq": true,
5 | "eqnull": true,
6 | "expr": true,
7 | "immed": true,
8 | "noarg": true,
9 | "quotmark": "double",
10 | "undef": true,
11 | "unused": true,
12 |
13 | "sub": true,
14 |
15 | // Support: IE < 10, Android < 4.1
16 | // The above browsers are failing a lot of tests in the ES5
17 | // test suite at http://test262.ecmascript.org.
18 | "es3": true,
19 |
20 | "globals": {
21 | "window": true,
22 | "JSON": false,
23 |
24 | "jQuery": true,
25 | "define": true,
26 | "module": true,
27 | "noGlobal": true
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/pagination.less:
--------------------------------------------------------------------------------
1 | // Pagination
2 |
3 | .pagination-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
4 | > li {
5 | > a,
6 | > span {
7 | padding: @padding-vertical @padding-horizontal;
8 | font-size: @font-size;
9 | line-height: @line-height;
10 | }
11 | &:first-child {
12 | > a,
13 | > span {
14 | .border-left-radius(@border-radius);
15 | }
16 | }
17 | &:last-child {
18 | > a,
19 | > span {
20 | .border-right-radius(@border-radius);
21 | }
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/ajax/parseXML.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core"
3 | ], function( jQuery ) {
4 |
5 | // Cross-browser xml parsing
6 | jQuery.parseXML = function( data ) {
7 | var xml;
8 | if ( !data || typeof data !== "string" ) {
9 | return null;
10 | }
11 |
12 | // Support: IE9
13 | try {
14 | xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
15 | } catch ( e ) {
16 | xml = undefined;
17 | }
18 |
19 | if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
20 | jQuery.error( "Invalid XML: " + data );
21 | }
22 | return xml;
23 | };
24 |
25 | return jQuery.parseXML;
26 |
27 | } );
28 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/pagination.less:
--------------------------------------------------------------------------------
1 | // Pagination
2 |
3 | .pagination-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
4 | > li {
5 | > a,
6 | > span {
7 | padding: @padding-vertical @padding-horizontal;
8 | font-size: @font-size;
9 | line-height: @line-height;
10 | }
11 | &:first-child {
12 | > a,
13 | > span {
14 | .border-left-radius(@border-radius);
15 | }
16 | }
17 | &:last-child {
18 | > a,
19 | > span {
20 | .border-right-radius(@border-radius);
21 | }
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "boss": true,
3 | "curly": true,
4 | "eqeqeq": true,
5 | "eqnull": true,
6 | "expr": true,
7 | "immed": true,
8 | "noarg": true,
9 | "quotmark": "double",
10 | "undef": true,
11 | "unused": true,
12 |
13 | "sub": true,
14 |
15 | // Support: IE < 10, Android < 4.1
16 | // The above browsers are failing a lot of tests in the ES5
17 | // test suite at http://test262.ecmascript.org.
18 | "es3": true,
19 |
20 | "globals": {
21 | "window": true,
22 | "JSON": false,
23 |
24 | "jQuery": true,
25 | "define": true,
26 | "module": true,
27 | "noGlobal": true
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/ajax/parseXML.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core"
3 | ], function( jQuery ) {
4 |
5 | // Cross-browser xml parsing
6 | jQuery.parseXML = function( data ) {
7 | var xml;
8 | if ( !data || typeof data !== "string" ) {
9 | return null;
10 | }
11 |
12 | // Support: IE9
13 | try {
14 | xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
15 | } catch ( e ) {
16 | xml = undefined;
17 | }
18 |
19 | if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
20 | jQuery.error( "Invalid XML: " + data );
21 | }
22 | return xml;
23 | };
24 |
25 | return jQuery.parseXML;
26 |
27 | } );
28 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/var/swap.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | // A method for quickly swapping in/out CSS properties to get correct calculations.
4 | return function( elem, options, callback, args ) {
5 | var ret, name,
6 | old = {};
7 |
8 | // Remember the old values, and insert the new ones
9 | for ( name in options ) {
10 | old[ name ] = elem.style[ name ];
11 | elem.style[ name ] = options[ name ];
12 | }
13 |
14 | ret = callback.apply( elem, args || [] );
15 |
16 | // Revert the old values
17 | for ( name in options ) {
18 | elem.style[ name ] = old[ name ];
19 | }
20 |
21 | return ret;
22 | };
23 |
24 | } );
25 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/hiddenVisibleSelectors.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 | "../selector"
4 | ], function( jQuery ) {
5 |
6 | jQuery.expr.filters.hidden = function( elem ) {
7 | return !jQuery.expr.filters.visible( elem );
8 | };
9 | jQuery.expr.filters.visible = function( elem ) {
10 |
11 | // Support: Opera <= 12.12
12 | // Opera reports offsetWidths and offsetHeights less than zero on some elements
13 | // Use OR instead of AND as the element is not visible if either is true
14 | // See tickets #10406 and #13132
15 | return elem.offsetWidth > 0 || elem.offsetHeight > 0 || elem.getClientRects().length > 0;
16 | };
17 |
18 | } );
19 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/var/swap.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | // A method for quickly swapping in/out CSS properties to get correct calculations.
4 | return function( elem, options, callback, args ) {
5 | var ret, name,
6 | old = {};
7 |
8 | // Remember the old values, and insert the new ones
9 | for ( name in options ) {
10 | old[ name ] = elem.style[ name ];
11 | elem.style[ name ] = options[ name ];
12 | }
13 |
14 | ret = callback.apply( elem, args || [] );
15 |
16 | // Revert the old values
17 | for ( name in options ) {
18 | elem.style[ name ] = old[ name ];
19 | }
20 |
21 | return ret;
22 | };
23 |
24 | } );
25 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/hiddenVisibleSelectors.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 | "../selector"
4 | ], function( jQuery ) {
5 |
6 | jQuery.expr.filters.hidden = function( elem ) {
7 | return !jQuery.expr.filters.visible( elem );
8 | };
9 | jQuery.expr.filters.visible = function( elem ) {
10 |
11 | // Support: Opera <= 12.12
12 | // Opera reports offsetWidths and offsetHeights less than zero on some elements
13 | // Use OR instead of AND as the element is not visible if either is true
14 | // See tickets #10406 and #13132
15 | return elem.offsetWidth > 0 || elem.offsetHeight > 0 || elem.getClientRects().length > 0;
16 | };
17 |
18 | } );
19 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "jquery",
3 | "main": "dist/jquery.js",
4 | "license": "MIT",
5 | "ignore": [
6 | "package.json"
7 | ],
8 | "keywords": [
9 | "jquery",
10 | "javascript",
11 | "browser",
12 | "library"
13 | ],
14 | "homepage": "https://github.com/jquery/jquery-dist",
15 | "version": "2.2.3",
16 | "_release": "2.2.3",
17 | "_resolution": {
18 | "type": "version",
19 | "tag": "2.2.3",
20 | "commit": "af22a351b2ea5801ffb1695abb3bb34d5bed9198"
21 | },
22 | "_source": "https://github.com/jquery/jquery-dist.git",
23 | "_target": "2.2.3",
24 | "_originalSource": "jquery"
25 | }
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/addGetHookIf.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | function addGetHookIf( conditionFn, hookFn ) {
4 |
5 | // Define the hook, we'll check on the first run if it's really needed.
6 | return {
7 | get: function() {
8 | if ( conditionFn() ) {
9 |
10 | // Hook not needed (or it's not possible to use it due
11 | // to missing dependency), remove it.
12 | delete this.get;
13 | return;
14 | }
15 |
16 | // Hook needed; redefine it so that the support test is not executed again.
17 | return ( this.get = hookFn ).apply( this, arguments );
18 | }
19 | };
20 | }
21 |
22 | return addGetHookIf;
23 |
24 | } );
25 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "jquery",
3 | "main": "dist/jquery.js",
4 | "license": "MIT",
5 | "ignore": [
6 | "package.json"
7 | ],
8 | "keywords": [
9 | "jquery",
10 | "javascript",
11 | "browser",
12 | "library"
13 | ],
14 | "homepage": "https://github.com/jquery/jquery-dist",
15 | "version": "2.2.3",
16 | "_release": "2.2.3",
17 | "_resolution": {
18 | "type": "version",
19 | "tag": "2.2.3",
20 | "commit": "af22a351b2ea5801ffb1695abb3bb34d5bed9198"
21 | },
22 | "_source": "https://github.com/jquery/jquery-dist.git",
23 | "_target": "2.2.3",
24 | "_originalSource": "jquery"
25 | }
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/addGetHookIf.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | function addGetHookIf( conditionFn, hookFn ) {
4 |
5 | // Define the hook, we'll check on the first run if it's really needed.
6 | return {
7 | get: function() {
8 | if ( conditionFn() ) {
9 |
10 | // Hook not needed (or it's not possible to use it due
11 | // to missing dependency), remove it.
12 | delete this.get;
13 | return;
14 | }
15 |
16 | // Hook needed; redefine it so that the support test is not executed again.
17 | return ( this.get = hookFn ).apply( this, arguments );
18 | }
19 | };
20 | }
21 |
22 | return addGetHookIf;
23 |
24 | } );
25 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/getAll.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core"
3 | ], function( jQuery ) {
4 |
5 | function getAll( context, tag ) {
6 |
7 | // Support: IE9-11+
8 | // Use typeof to avoid zero-argument method invocation on host objects (#15151)
9 | var ret = typeof context.getElementsByTagName !== "undefined" ?
10 | context.getElementsByTagName( tag || "*" ) :
11 | typeof context.querySelectorAll !== "undefined" ?
12 | context.querySelectorAll( tag || "*" ) :
13 | [];
14 |
15 | return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
16 | jQuery.merge( [ context ], ret ) :
17 | ret;
18 | }
19 |
20 | return getAll;
21 | } );
22 |
--------------------------------------------------------------------------------
/compulsive-traders/src/main/java/io/vertx/workshop/trader/impl/MainVerticle.java:
--------------------------------------------------------------------------------
1 | package io.vertx.workshop.trader.impl;
2 |
3 | import io.vertx.core.AbstractVerticle;
4 | import io.vertx.core.DeploymentOptions;
5 | import io.vertx.core.json.JsonObject;
6 |
7 | /**
8 | * The main verticle creating compulsive traders.
9 | */
10 | public class MainVerticle extends AbstractVerticle {
11 |
12 | @Override
13 | public void start() throws Exception {
14 |
15 | // Java traders
16 | vertx.deployVerticle(JavaCompulsiveTraderVerticle.class.getName(), new DeploymentOptions().setInstances(2));
17 |
18 | // Groovy traders...
19 | vertx.deployVerticle("GroovyCompulsiveTraderVerticle.groovy");
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/getAll.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core"
3 | ], function( jQuery ) {
4 |
5 | function getAll( context, tag ) {
6 |
7 | // Support: IE9-11+
8 | // Use typeof to avoid zero-argument method invocation on host objects (#15151)
9 | var ret = typeof context.getElementsByTagName !== "undefined" ?
10 | context.getElementsByTagName( tag || "*" ) :
11 | typeof context.querySelectorAll !== "undefined" ?
12 | context.querySelectorAll( tag || "*" ) :
13 | [];
14 |
15 | return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
16 | jQuery.merge( [ context ], ret ) :
17 | ret;
18 | }
19 |
20 | return getAll;
21 | } );
22 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/panels.less:
--------------------------------------------------------------------------------
1 | // Panels
2 |
3 | .panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) {
4 | border-color: @border;
5 |
6 | & > .panel-heading {
7 | color: @heading-text-color;
8 | background-color: @heading-bg-color;
9 | border-color: @heading-border;
10 |
11 | + .panel-collapse > .panel-body {
12 | border-top-color: @border;
13 | }
14 | .badge {
15 | color: @heading-bg-color;
16 | background-color: @heading-text-color;
17 | }
18 | }
19 | & > .panel-footer {
20 | + .panel-collapse > .panel-body {
21 | border-bottom-color: @border;
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/exports/global.js:
--------------------------------------------------------------------------------
1 | var
2 |
3 | // Map over jQuery in case of overwrite
4 | _jQuery = window.jQuery,
5 |
6 | // Map over the $ in case of overwrite
7 | _$ = window.$;
8 |
9 | jQuery.noConflict = function( deep ) {
10 | if ( window.$ === jQuery ) {
11 | window.$ = _$;
12 | }
13 |
14 | if ( deep && window.jQuery === jQuery ) {
15 | window.jQuery = _jQuery;
16 | }
17 |
18 | return jQuery;
19 | };
20 |
21 | // Expose jQuery and $ identifiers, even in AMD
22 | // (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
23 | // and CommonJS for browser emulators (#13566)
24 | if ( !noGlobal ) {
25 | window.jQuery = window.$ = jQuery;
26 | }
27 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/panels.less:
--------------------------------------------------------------------------------
1 | // Panels
2 |
3 | .panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) {
4 | border-color: @border;
5 |
6 | & > .panel-heading {
7 | color: @heading-text-color;
8 | background-color: @heading-bg-color;
9 | border-color: @heading-border;
10 |
11 | + .panel-collapse > .panel-body {
12 | border-top-color: @border;
13 | }
14 | .badge {
15 | color: @heading-bg-color;
16 | background-color: @heading-text-color;
17 | }
18 | }
19 | & > .panel-footer {
20 | + .panel-collapse > .panel-body {
21 | border-bottom-color: @border;
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/exports/global.js:
--------------------------------------------------------------------------------
1 | var
2 |
3 | // Map over jQuery in case of overwrite
4 | _jQuery = window.jQuery,
5 |
6 | // Map over the $ in case of overwrite
7 | _$ = window.$;
8 |
9 | jQuery.noConflict = function( deep ) {
10 | if ( window.$ === jQuery ) {
11 | window.$ = _$;
12 | }
13 |
14 | if ( deep && window.jQuery === jQuery ) {
15 | window.jQuery = _jQuery;
16 | }
17 |
18 | return jQuery;
19 | };
20 |
21 | // Expose jQuery and $ identifiers, even in AMD
22 | // (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
23 | // and CommonJS for browser emulators (#13566)
24 | if ( !noGlobal ) {
25 | window.jQuery = window.$ = jQuery;
26 | }
27 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/wells.less:
--------------------------------------------------------------------------------
1 | //
2 | // Wells
3 | // --------------------------------------------------
4 |
5 |
6 | // Base class
7 | .well {
8 | min-height: 20px;
9 | padding: 19px;
10 | margin-bottom: 20px;
11 | background-color: @well-bg;
12 | border: 1px solid @well-border;
13 | border-radius: @border-radius-base;
14 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
15 | blockquote {
16 | border-color: #ddd;
17 | border-color: rgba(0,0,0,.15);
18 | }
19 | }
20 |
21 | // Sizes
22 | .well-lg {
23 | padding: 24px;
24 | border-radius: @border-radius-large;
25 | }
26 | .well-sm {
27 | padding: 9px;
28 | border-radius: @border-radius-small;
29 | }
30 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/wells.less:
--------------------------------------------------------------------------------
1 | //
2 | // Wells
3 | // --------------------------------------------------
4 |
5 |
6 | // Base class
7 | .well {
8 | min-height: 20px;
9 | padding: 19px;
10 | margin-bottom: 20px;
11 | background-color: @well-bg;
12 | border: 1px solid @well-border;
13 | border-radius: @border-radius-base;
14 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
15 | blockquote {
16 | border-color: #ddd;
17 | border-color: rgba(0,0,0,.15);
18 | }
19 | }
20 |
21 | // Sizes
22 | .well-lg {
23 | padding: 24px;
24 | border-radius: @border-radius-large;
25 | }
26 | .well-sm {
27 | padding: 9px;
28 | border-radius: @border-radius-small;
29 | }
30 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/hide-text.less:
--------------------------------------------------------------------------------
1 | // CSS image replacement
2 | //
3 | // Heads up! v3 launched with only `.hide-text()`, but per our pattern for
4 | // mixins being reused as classes with the same name, this doesn't hold up. As
5 | // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
6 | //
7 | // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
8 |
9 | // Deprecated as of v3.0.1 (has been removed in v4)
10 | .hide-text() {
11 | font: ~"0/0" a;
12 | color: transparent;
13 | text-shadow: none;
14 | background-color: transparent;
15 | border: 0;
16 | }
17 |
18 | // New mixin to use as of v3.0.1
19 | .text-hide() {
20 | .hide-text();
21 | }
22 |
--------------------------------------------------------------------------------
/solution/compulsive-traders/src/main/java/io/vertx/workshop/trader/impl/MainVerticle.java:
--------------------------------------------------------------------------------
1 | package io.vertx.workshop.trader.impl;
2 |
3 | import io.vertx.core.AbstractVerticle;
4 | import io.vertx.core.DeploymentOptions;
5 | import io.vertx.core.json.JsonObject;
6 |
7 | /**
8 | * The main verticle creating compulsive traders.
9 | */
10 | public class MainVerticle extends AbstractVerticle {
11 |
12 | @Override
13 | public void start() throws Exception {
14 |
15 | // Java traders
16 | vertx.deployVerticle(JavaCompulsiveTraderVerticle.class.getName(), new DeploymentOptions().setInstances(2));
17 |
18 | // Kotlin traders...
19 | vertx.deployVerticle("io.vertx.workshop.trader.impl.KotlinCompulsiveTraderVerticle");
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/hide-text.less:
--------------------------------------------------------------------------------
1 | // CSS image replacement
2 | //
3 | // Heads up! v3 launched with only `.hide-text()`, but per our pattern for
4 | // mixins being reused as classes with the same name, this doesn't hold up. As
5 | // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
6 | //
7 | // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
8 |
9 | // Deprecated as of v3.0.1 (has been removed in v4)
10 | .hide-text() {
11 | font: ~"0/0" a;
12 | color: transparent;
13 | text-shadow: none;
14 | background-color: transparent;
15 | border: 0;
16 | }
17 |
18 | // New mixin to use as of v3.0.1
19 | .text-hide() {
20 | .hide-text();
21 | }
22 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/vertx3-eventbus-client/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vertx3-eventbus-client",
3 | "version": "3.2.1",
4 | "homepage": "http://vertx.io",
5 | "authors": [
6 | "The Vert.x Team"
7 | ],
8 | "description": "Vert.x Event Bus Client for vert.x 3.2.1",
9 | "main": "vertx-eventbus.js",
10 | "moduleType": [
11 | "amd"
12 | ],
13 | "repository": {
14 | "type": "git",
15 | "url": "git://github.com/vert-x3/vertx-stack.git"
16 | },
17 | "keywords": [
18 | "vert.x",
19 | "sockjs",
20 | "websocket",
21 | "websockets"
22 | ],
23 | "ignore": [
24 | "src",
25 | "target",
26 | "pom.xml",
27 | "README.md"
28 | ],
29 | "license": "Apache-2.0"
30 | }
31 |
--------------------------------------------------------------------------------
/packer/scripts/intellij_ce.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 | set -x
5 |
6 | cd ${HOME}
7 | wget https://download.jetbrains.com/idea/ideaIC-2016.3.5-no-jdk.tar.gz
8 | tar zxf ideaIC-2016.3.5-no-jdk.tar.gz
9 | mv idea-IC-163.13906.18 idea
10 | rm ideaIC-2016.3.5-no-jdk.tar.gz
11 |
12 | mkdir --parents /home/vertx/.local/share/applications
13 | cat < /home/vertx/.local/share/applications/jetbrains-idea-ce.desktop
14 | [Desktop Entry]
15 | Version=1.0
16 | Type=Application
17 | Name=IntelliJ IDEA Community Edition
18 | Icon=/home/vertx/idea/bin/idea.png
19 | Exec=env IDEA_JDK=/home/vertx/jdk "/home/vertx/idea/bin/idea.sh" %f
20 | Comment=The Drive to Develop
21 | Categories=Development;IDE;
22 | Terminal=false
23 | StartupWMClass=jetbrains-idea-ce
24 | EOF
25 |
26 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/core/support.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/document",
3 | "../var/support"
4 | ], function( document, support ) {
5 |
6 | // Support: Safari 8+
7 | // In Safari 8 documents created via document.implementation.createHTMLDocument
8 | // collapse sibling forms: the second one becomes a child of the first one.
9 | // Because of that, this security measure has to be disabled in Safari 8.
10 | // https://bugs.webkit.org/show_bug.cgi?id=137337
11 | support.createHTMLDocument = ( function() {
12 | var body = document.implementation.createHTMLDocument( "" ).body;
13 | body.innerHTML = "";
14 | return body.childNodes.length === 2;
15 | } )();
16 |
17 | return support;
18 | } );
19 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/vertx3-eventbus-client/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vertx3-eventbus-client",
3 | "version": "3.2.1",
4 | "homepage": "http://vertx.io",
5 | "authors": [
6 | "The Vert.x Team"
7 | ],
8 | "description": "Vert.x Event Bus Client for vert.x 3.2.1",
9 | "main": "vertx-eventbus.js",
10 | "moduleType": [
11 | "amd"
12 | ],
13 | "repository": {
14 | "type": "git",
15 | "url": "git://github.com/vert-x3/vertx-stack.git"
16 | },
17 | "keywords": [
18 | "vert.x",
19 | "sockjs",
20 | "websocket",
21 | "websockets"
22 | ],
23 | "ignore": [
24 | "src",
25 | "target",
26 | "pom.xml",
27 | "README.md"
28 | ],
29 | "license": "Apache-2.0"
30 | }
31 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/list-group.less:
--------------------------------------------------------------------------------
1 | // List Groups
2 |
3 | .list-group-item-variant(@state; @background; @color) {
4 | .list-group-item-@{state} {
5 | color: @color;
6 | background-color: @background;
7 |
8 | a&,
9 | button& {
10 | color: @color;
11 |
12 | .list-group-item-heading {
13 | color: inherit;
14 | }
15 |
16 | &:hover,
17 | &:focus {
18 | color: @color;
19 | background-color: darken(@background, 5%);
20 | }
21 | &.active,
22 | &.active:hover,
23 | &.active:focus {
24 | color: #fff;
25 | background-color: @color;
26 | border-color: @color;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/deferred/exceptionHook.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 | "../deferred"
4 | ], function( jQuery ) {
5 |
6 | // These usually indicate a programmer mistake during development,
7 | // warn about them ASAP rather than swallowing them by default.
8 | var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
9 |
10 | jQuery.Deferred.exceptionHook = function( error, stack ) {
11 |
12 | // Support: IE9
13 | // Console exists when dev tools are open, which can happen at any time
14 | if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
15 | window.console.warn( "jQuery.Deferred exception: " + error.message, stack );
16 | }
17 | };
18 |
19 | } );
20 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/core/support.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/document",
3 | "../var/support"
4 | ], function( document, support ) {
5 |
6 | // Support: Safari 8+
7 | // In Safari 8 documents created via document.implementation.createHTMLDocument
8 | // collapse sibling forms: the second one becomes a child of the first one.
9 | // Because of that, this security measure has to be disabled in Safari 8.
10 | // https://bugs.webkit.org/show_bug.cgi?id=137337
11 | support.createHTMLDocument = ( function() {
12 | var body = document.implementation.createHTMLDocument( "" ).body;
13 | body.innerHTML = "";
14 | return body.childNodes.length === 2;
15 | } )();
16 |
17 | return support;
18 | } );
19 |
--------------------------------------------------------------------------------
/packer/scripts/oracle_jdk.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo "#################################################################"
4 | echo "Installing Oracle JDK"
5 | echo "By using this script you agree to the Oracle licensing agreement."
6 | echo "#################################################################"
7 |
8 | set -e
9 | set -x
10 |
11 | cd ${HOME}
12 | wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jdk-8u112-linux-x64.tar.gz
13 | tar zxf jdk-8u112-linux-x64.tar.gz
14 | mv jdk1.8.0_112 jdk
15 | echo 'export JAVA_HOME=${HOME}/jdk' >> ${HOME}/.bash_profile
16 | echo 'export PATH=${JAVA_HOME}/bin:${PATH}' >> ${HOME}/.bash_profile
17 | rm jdk-8u112-linux-x64.tar.gz
18 |
19 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/list-group.less:
--------------------------------------------------------------------------------
1 | // List Groups
2 |
3 | .list-group-item-variant(@state; @background; @color) {
4 | .list-group-item-@{state} {
5 | color: @color;
6 | background-color: @background;
7 |
8 | a&,
9 | button& {
10 | color: @color;
11 |
12 | .list-group-item-heading {
13 | color: inherit;
14 | }
15 |
16 | &:hover,
17 | &:focus {
18 | color: @color;
19 | background-color: darken(@background, 5%);
20 | }
21 | &.active,
22 | &.active:hover,
23 | &.active:focus {
24 | color: #fff;
25 | background-color: @color;
26 | border-color: @color;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/deferred/exceptionHook.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 | "../deferred"
4 | ], function( jQuery ) {
5 |
6 | // These usually indicate a programmer mistake during development,
7 | // warn about them ASAP rather than swallowing them by default.
8 | var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
9 |
10 | jQuery.Deferred.exceptionHook = function( error, stack ) {
11 |
12 | // Support: IE9
13 | // Console exists when dev tools are open, which can happen at any time
14 | if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
15 | window.console.warn( "jQuery.Deferred exception: " + error.message, stack );
16 | }
17 | };
18 |
19 | } );
20 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/clearfix.less:
--------------------------------------------------------------------------------
1 | // Clearfix
2 | //
3 | // For modern browsers
4 | // 1. The space content is one way to avoid an Opera bug when the
5 | // contenteditable attribute is included anywhere else in the document.
6 | // Otherwise it causes space to appear at the top and bottom of elements
7 | // that are clearfixed.
8 | // 2. The use of `table` rather than `block` is only necessary if using
9 | // `:before` to contain the top-margins of child elements.
10 | //
11 | // Source: http://nicolasgallagher.com/micro-clearfix-hack/
12 |
13 | .clearfix() {
14 | &:before,
15 | &:after {
16 | content: " "; // 1
17 | display: table; // 2
18 | }
19 | &:after {
20 | clear: both;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/breadcrumbs.less:
--------------------------------------------------------------------------------
1 | //
2 | // Breadcrumbs
3 | // --------------------------------------------------
4 |
5 |
6 | .breadcrumb {
7 | padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;
8 | margin-bottom: @line-height-computed;
9 | list-style: none;
10 | background-color: @breadcrumb-bg;
11 | border-radius: @border-radius-base;
12 |
13 | > li {
14 | display: inline-block;
15 |
16 | + li:before {
17 | content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space
18 | padding: 0 5px;
19 | color: @breadcrumb-color;
20 | }
21 | }
22 |
23 | > .active {
24 | color: @breadcrumb-active-color;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/queue/delay.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 | "../queue",
4 | "../effects" // Delay is optional because of this dependency
5 | ], function( jQuery ) {
6 |
7 | // Based off of the plugin by Clint Helfers, with permission.
8 | // http://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
9 | jQuery.fn.delay = function( time, type ) {
10 | time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
11 | type = type || "fx";
12 |
13 | return this.queue( type, function( next, hooks ) {
14 | var timeout = window.setTimeout( next, time );
15 | hooks.stop = function() {
16 | window.clearTimeout( timeout );
17 | };
18 | } );
19 | };
20 |
21 | return jQuery.fn.delay;
22 | } );
23 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/clearfix.less:
--------------------------------------------------------------------------------
1 | // Clearfix
2 | //
3 | // For modern browsers
4 | // 1. The space content is one way to avoid an Opera bug when the
5 | // contenteditable attribute is included anywhere else in the document.
6 | // Otherwise it causes space to appear at the top and bottom of elements
7 | // that are clearfixed.
8 | // 2. The use of `table` rather than `block` is only necessary if using
9 | // `:before` to contain the top-margins of child elements.
10 | //
11 | // Source: http://nicolasgallagher.com/micro-clearfix-hack/
12 |
13 | .clearfix() {
14 | &:before,
15 | &:after {
16 | content: " "; // 1
17 | display: table; // 2
18 | }
19 | &:after {
20 | clear: both;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/responsive-embed.less:
--------------------------------------------------------------------------------
1 | // Embeds responsive
2 | //
3 | // Credit: Nicolas Gallagher and SUIT CSS.
4 |
5 | .embed-responsive {
6 | position: relative;
7 | display: block;
8 | height: 0;
9 | padding: 0;
10 | overflow: hidden;
11 |
12 | .embed-responsive-item,
13 | iframe,
14 | embed,
15 | object,
16 | video {
17 | position: absolute;
18 | top: 0;
19 | left: 0;
20 | bottom: 0;
21 | height: 100%;
22 | width: 100%;
23 | border: 0;
24 | }
25 | }
26 |
27 | // Modifier class for 16:9 aspect ratio
28 | .embed-responsive-16by9 {
29 | padding-bottom: 56.25%;
30 | }
31 |
32 | // Modifier class for 4:3 aspect ratio
33 | .embed-responsive-4by3 {
34 | padding-bottom: 75%;
35 | }
36 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/breadcrumbs.less:
--------------------------------------------------------------------------------
1 | //
2 | // Breadcrumbs
3 | // --------------------------------------------------
4 |
5 |
6 | .breadcrumb {
7 | padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;
8 | margin-bottom: @line-height-computed;
9 | list-style: none;
10 | background-color: @breadcrumb-bg;
11 | border-radius: @border-radius-base;
12 |
13 | > li {
14 | display: inline-block;
15 |
16 | + li:before {
17 | content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space
18 | padding: 0 5px;
19 | color: @breadcrumb-color;
20 | }
21 | }
22 |
23 | > .active {
24 | color: @breadcrumb-active-color;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/responsive-embed.less:
--------------------------------------------------------------------------------
1 | // Embeds responsive
2 | //
3 | // Credit: Nicolas Gallagher and SUIT CSS.
4 |
5 | .embed-responsive {
6 | position: relative;
7 | display: block;
8 | height: 0;
9 | padding: 0;
10 | overflow: hidden;
11 |
12 | .embed-responsive-item,
13 | iframe,
14 | embed,
15 | object,
16 | video {
17 | position: absolute;
18 | top: 0;
19 | left: 0;
20 | bottom: 0;
21 | height: 100%;
22 | width: 100%;
23 | border: 0;
24 | }
25 | }
26 |
27 | // Modifier class for 16:9 aspect ratio
28 | .embed-responsive-16by9 {
29 | padding-bottom: 56.25%;
30 | }
31 |
32 | // Modifier class for 4:3 aspect ratio
33 | .embed-responsive-4by3 {
34 | padding-bottom: 75%;
35 | }
36 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/queue/delay.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 | "../queue",
4 | "../effects" // Delay is optional because of this dependency
5 | ], function( jQuery ) {
6 |
7 | // Based off of the plugin by Clint Helfers, with permission.
8 | // http://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
9 | jQuery.fn.delay = function( time, type ) {
10 | time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
11 | type = type || "fx";
12 |
13 | return this.queue( type, function( next, hooks ) {
14 | var timeout = window.setTimeout( next, time );
15 | hooks.stop = function() {
16 | window.clearTimeout( timeout );
17 | };
18 | } );
19 | };
20 |
21 | return jQuery.fn.delay;
22 | } );
23 |
--------------------------------------------------------------------------------
/vertx-workshop-common/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | io.vertx.workshop
9 | vertx-microservice-workshop
10 | 1.0-SNAPSHOT
11 |
12 |
13 | vertx-workshop-common
14 |
15 |
16 |
17 | io.vertx
18 | vertx-rx-java
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/jquery.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./core",
3 | "./selector",
4 | "./traversing",
5 | "./callbacks",
6 | "./deferred",
7 | "./core/ready",
8 | "./data",
9 | "./queue",
10 | "./queue/delay",
11 | "./attributes",
12 | "./event",
13 | "./event/alias",
14 | "./event/focusin",
15 | "./manipulation",
16 | "./manipulation/_evalUrl",
17 | "./wrap",
18 | "./css",
19 | "./css/hiddenVisibleSelectors",
20 | "./serialize",
21 | "./ajax",
22 | "./ajax/xhr",
23 | "./ajax/script",
24 | "./ajax/jsonp",
25 | "./ajax/load",
26 | "./event/ajax",
27 | "./effects",
28 | "./effects/animatedSelector",
29 | "./offset",
30 | "./dimensions",
31 | "./deprecated",
32 | "./exports/amd"
33 | ], function( jQuery ) {
34 |
35 | return ( window.jQuery = window.$ = jQuery );
36 |
37 | } );
38 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/event/alias.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 |
4 | "../event",
5 | "./trigger"
6 | ], function( jQuery ) {
7 |
8 | jQuery.each( ( "blur focus focusin focusout load resize scroll unload click dblclick " +
9 | "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
10 | "change select submit keydown keypress keyup error contextmenu" ).split( " " ),
11 | function( i, name ) {
12 |
13 | // Handle event binding
14 | jQuery.fn[ name ] = function( data, fn ) {
15 | return arguments.length > 0 ?
16 | this.on( name, null, data, fn ) :
17 | this.trigger( name );
18 | };
19 | } );
20 |
21 | jQuery.fn.extend( {
22 | hover: function( fnOver, fnOut ) {
23 | return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
24 | }
25 | } );
26 |
27 | } );
28 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/event/alias.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 |
4 | "../event",
5 | "./trigger"
6 | ], function( jQuery ) {
7 |
8 | jQuery.each( ( "blur focus focusin focusout load resize scroll unload click dblclick " +
9 | "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
10 | "change select submit keydown keypress keyup error contextmenu" ).split( " " ),
11 | function( i, name ) {
12 |
13 | // Handle event binding
14 | jQuery.fn[ name ] = function( data, fn ) {
15 | return arguments.length > 0 ?
16 | this.on( name, null, data, fn ) :
17 | this.trigger( name );
18 | };
19 | } );
20 |
21 | jQuery.fn.extend( {
22 | hover: function( fnOver, fnOut ) {
23 | return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
24 | }
25 | } );
26 |
27 | } );
28 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/jquery.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./core",
3 | "./selector",
4 | "./traversing",
5 | "./callbacks",
6 | "./deferred",
7 | "./core/ready",
8 | "./data",
9 | "./queue",
10 | "./queue/delay",
11 | "./attributes",
12 | "./event",
13 | "./event/alias",
14 | "./event/focusin",
15 | "./manipulation",
16 | "./manipulation/_evalUrl",
17 | "./wrap",
18 | "./css",
19 | "./css/hiddenVisibleSelectors",
20 | "./serialize",
21 | "./ajax",
22 | "./ajax/xhr",
23 | "./ajax/script",
24 | "./ajax/jsonp",
25 | "./ajax/load",
26 | "./event/ajax",
27 | "./effects",
28 | "./effects/animatedSelector",
29 | "./offset",
30 | "./dimensions",
31 | "./deprecated",
32 | "./exports/amd"
33 | ], function( jQuery ) {
34 |
35 | return ( window.jQuery = window.$ = jQuery );
36 |
37 | } );
38 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/deprecated.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./core"
3 | ], function( jQuery ) {
4 |
5 | jQuery.fn.extend( {
6 |
7 | bind: function( types, data, fn ) {
8 | return this.on( types, null, data, fn );
9 | },
10 | unbind: function( types, fn ) {
11 | return this.off( types, null, fn );
12 | },
13 |
14 | delegate: function( selector, types, data, fn ) {
15 | return this.on( types, selector, data, fn );
16 | },
17 | undelegate: function( selector, types, fn ) {
18 |
19 | // ( namespace ) or ( selector, types [, fn] )
20 | return arguments.length === 1 ?
21 | this.off( selector, "**" ) :
22 | this.off( types, selector || "**", fn );
23 | },
24 | size: function() {
25 | return this.length;
26 | }
27 | } );
28 |
29 | jQuery.fn.andSelf = jQuery.fn.addBack;
30 |
31 | } );
32 |
33 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/Chart.js/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Chart.js",
3 | "description": "Simple HTML5 Charts using the canvas element",
4 | "homepage": "https://github.com/nnnick/Chart.js",
5 | "author": "nnnick",
6 | "main": [
7 | "Chart.js"
8 | ],
9 | "ignore": [
10 | "**/*",
11 | ".travis.yml",
12 | "CONTRIBUTING.md",
13 | "Chart.js",
14 | "LICENSE.md",
15 | "README.md",
16 | "gulpfile.js",
17 | "package.json"
18 | ],
19 | "dependencies": {},
20 | "version": "1.1.1",
21 | "_release": "1.1.1",
22 | "_resolution": {
23 | "type": "version",
24 | "tag": "v1.1.1",
25 | "commit": "a62537a80029cd5a2e230769a652904e2de2d5d4"
26 | },
27 | "_source": "https://github.com/nnnick/Chart.js.git",
28 | "_target": "1.1.1",
29 | "_originalSource": "Chart.js"
30 | }
--------------------------------------------------------------------------------
/docs/chapters/references.adoc:
--------------------------------------------------------------------------------
1 | ## References
2 |
3 | Some recommended reading. Nothing especially about microservices or Vert.x because the concepts are broader than
4 | these two topics.
5 |
6 | [bibliography]
7 | - A. S. Tanenbaum, M Van Steam. Distributed Systems - Principles and Paradigms. 2003
8 | - L. Bass, I. Weber, L. Zhu. Devops, A software Architect's Perspective. 2015
9 | - P. Clements, F. Bachmann, L Bass, D. Garlan, J. Ivers, R. Little, P. Merson, R. Nord, J.
10 | Stafford. Documenting Software Architecture. 2010
11 | - S. Krakowiak. Middleware Architecture with Patterns and Frameworks. 2009 (unfinished),
12 | http://lig-membres.imag.fr/krakowia/Files/MW-Book/Chapters/Preface/preface.html
13 | - J. Lewis, M. Fowler. Microservices - a definition of this new architectural term, 2014,
14 | http://martinfowler.com/articles/microservices.html
15 |
16 |
17 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/deprecated.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "./core"
3 | ], function( jQuery ) {
4 |
5 | jQuery.fn.extend( {
6 |
7 | bind: function( types, data, fn ) {
8 | return this.on( types, null, data, fn );
9 | },
10 | unbind: function( types, fn ) {
11 | return this.off( types, null, fn );
12 | },
13 |
14 | delegate: function( selector, types, data, fn ) {
15 | return this.on( types, selector, data, fn );
16 | },
17 | undelegate: function( selector, types, fn ) {
18 |
19 | // ( namespace ) or ( selector, types [, fn] )
20 | return arguments.length === 1 ?
21 | this.off( selector, "**" ) :
22 | this.off( types, selector || "**", fn );
23 | },
24 | size: function() {
25 | return this.length;
26 | }
27 | } );
28 |
29 | jQuery.fn.andSelf = jQuery.fn.addBack;
30 |
31 | } );
32 |
33 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "bootstrap",
3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
4 | "keywords": [
5 | "css",
6 | "js",
7 | "less",
8 | "mobile-first",
9 | "responsive",
10 | "front-end",
11 | "framework",
12 | "web"
13 | ],
14 | "homepage": "http://getbootstrap.com",
15 | "license": "MIT",
16 | "moduleType": "globals",
17 | "main": [
18 | "less/bootstrap.less",
19 | "dist/js/bootstrap.js"
20 | ],
21 | "ignore": [
22 | "/.*",
23 | "_config.yml",
24 | "CNAME",
25 | "composer.json",
26 | "CONTRIBUTING.md",
27 | "docs",
28 | "js/tests",
29 | "test-infra"
30 | ],
31 | "dependencies": {
32 | "jquery": "1.9.1 - 2"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/Chart.js/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Chart.js",
3 | "description": "Simple HTML5 Charts using the canvas element",
4 | "homepage": "https://github.com/nnnick/Chart.js",
5 | "author": "nnnick",
6 | "main": [
7 | "Chart.js"
8 | ],
9 | "ignore": [
10 | "**/*",
11 | ".travis.yml",
12 | "CONTRIBUTING.md",
13 | "Chart.js",
14 | "LICENSE.md",
15 | "README.md",
16 | "gulpfile.js",
17 | "package.json"
18 | ],
19 | "dependencies": {},
20 | "version": "1.1.1",
21 | "_release": "1.1.1",
22 | "_resolution": {
23 | "type": "version",
24 | "tag": "v1.1.1",
25 | "commit": "a62537a80029cd5a2e230769a652904e2de2d5d4"
26 | },
27 | "_source": "https://github.com/nnnick/Chart.js.git",
28 | "_target": "1.1.1",
29 | "_originalSource": "Chart.js"
30 | }
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "bootstrap",
3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
4 | "keywords": [
5 | "css",
6 | "js",
7 | "less",
8 | "mobile-first",
9 | "responsive",
10 | "front-end",
11 | "framework",
12 | "web"
13 | ],
14 | "homepage": "http://getbootstrap.com",
15 | "license": "MIT",
16 | "moduleType": "globals",
17 | "main": [
18 | "less/bootstrap.less",
19 | "dist/js/bootstrap.js"
20 | ],
21 | "ignore": [
22 | "/.*",
23 | "_config.yml",
24 | "CNAME",
25 | "composer.json",
26 | "CONTRIBUTING.md",
27 | "docs",
28 | "js/tests",
29 | "test-infra"
30 | ],
31 | "dependencies": {
32 | "jquery": "1.9.1 - 2"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/docs/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Run using:
4 | #
5 | # ./convert.sh
6 | #
7 | # or
8 | #
9 | # ./convert.sh html,pdf
10 | #
11 | # ...where the first argument is a comma-delimited list of formats
12 |
13 | # Program paths
14 | ASCIIDOCTOR=asciidoctor
15 | FOPUB=fopub
16 | ASCIIDOCTOR_PDF=asciidoctor-pdf
17 |
18 | # File names
19 | MASTER_ADOC=index.adoc
20 | MASTER_DOCBOOK=${MASTER_ADOC/.adoc/.xml}
21 |
22 | # Command options
23 | mkdir -p output
24 | SHARED_OPTIONS='-a toc=left -a stylesheet! -a numbered -a experimental -a source-highlighter=prettify -r asciidoctor-diagram -a imagesdir=images
25 | --destination-dir=output'
26 |
27 | cp -R images output
28 | cp -R assets output
29 |
30 | echo "Converting to HTML ..."
31 | $ASCIIDOCTOR -v $SHARED_OPTIONS $MASTER_ADOC
32 |
33 | cp -R images output
34 | mv chapters/*.png images
35 | rm -Rf **/.asciidoctor
36 |
37 |
38 | exit 0
--------------------------------------------------------------------------------
/compulsive-traders/src/main/java/io/vertx/workshop/trader/impl/JavaCompulsiveTraderVerticle.java:
--------------------------------------------------------------------------------
1 | package io.vertx.workshop.trader.impl;
2 |
3 | import io.vertx.core.CompositeFuture;
4 | import io.vertx.core.Future;
5 | import io.vertx.core.eventbus.MessageConsumer;
6 | import io.vertx.core.json.JsonObject;
7 | import io.vertx.servicediscovery.types.EventBusService;
8 | import io.vertx.servicediscovery.types.MessageSource;
9 | import io.vertx.workshop.common.MicroServiceVerticle;
10 | import io.vertx.workshop.portfolio.PortfolioService;
11 |
12 | /**
13 | * A compulsive trader...
14 | */
15 | public class JavaCompulsiveTraderVerticle extends MicroServiceVerticle {
16 |
17 | @Override
18 | public void start(Future future) {
19 | super.start();
20 |
21 | //TODO
22 | //----
23 | future.fail("no implemented yet...");
24 | // ----
25 | }
26 |
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/packer/http/anaconda-ks.cfg:
--------------------------------------------------------------------------------
1 | install
2 | text
3 | reboot
4 | url --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
5 | lang en_US.UTF-8
6 | keyboard us
7 | timezone --utc Etc/UTC
8 | rootpw --plaintext packer
9 | user --name=vertx --password=vertx --plaintext --groups wheel
10 | zerombr
11 | autopart --type=plain
12 | clearpart --all --initlabel
13 | bootloader --timeout=1
14 |
15 | %packages
16 | @^workstation-product-environment
17 | -@libreoffice
18 | gcc
19 | kernel-devel
20 | kernel-headers
21 | dkms
22 | make
23 | bzip2
24 | perl
25 | %end
26 |
27 | %post --erroronfail
28 | dnf -y update
29 |
30 | cat < /etc/sudoers.d/vertx
31 | Defaults:vertx !requiretty
32 | vertx ALL=(ALL) NOPASSWD: ALL
33 | EOF
34 | chmod 440 /etc/sudoers.d/vertx
35 |
36 | systemctl enable sshd.service
37 |
38 | systemctl set-default graphical.target
39 |
40 | %end
41 |
42 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/component-animations.less:
--------------------------------------------------------------------------------
1 | //
2 | // Component animations
3 | // --------------------------------------------------
4 |
5 | // Heads up!
6 | //
7 | // We don't use the `.opacity()` mixin here since it causes a bug with text
8 | // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
9 |
10 | .fade {
11 | opacity: 0;
12 | .transition(opacity .15s linear);
13 | &.in {
14 | opacity: 1;
15 | }
16 | }
17 |
18 | .collapse {
19 | display: none;
20 |
21 | &.in { display: block; }
22 | tr&.in { display: table-row; }
23 | tbody&.in { display: table-row-group; }
24 | }
25 |
26 | .collapsing {
27 | position: relative;
28 | height: 0;
29 | overflow: hidden;
30 | .transition-property(~"height, visibility");
31 | .transition-duration(.35s);
32 | .transition-timing-function(ease);
33 | }
34 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/table-row.less:
--------------------------------------------------------------------------------
1 | // Tables
2 |
3 | .table-row-variant(@state; @background) {
4 | // Exact selectors below required to override `.table-striped` and prevent
5 | // inheritance to nested tables.
6 | .table > thead > tr,
7 | .table > tbody > tr,
8 | .table > tfoot > tr {
9 | > td.@{state},
10 | > th.@{state},
11 | &.@{state} > td,
12 | &.@{state} > th {
13 | background-color: @background;
14 | }
15 | }
16 |
17 | // Hover states for `.table-hover`
18 | // Note: this is not available for cells or rows within `thead` or `tfoot`.
19 | .table-hover > tbody > tr {
20 | > td.@{state}:hover,
21 | > th.@{state}:hover,
22 | &.@{state}:hover > td,
23 | &:hover > .@{state},
24 | &.@{state}:hover > th {
25 | background-color: darken(@background, 5%);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/component-animations.less:
--------------------------------------------------------------------------------
1 | //
2 | // Component animations
3 | // --------------------------------------------------
4 |
5 | // Heads up!
6 | //
7 | // We don't use the `.opacity()` mixin here since it causes a bug with text
8 | // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
9 |
10 | .fade {
11 | opacity: 0;
12 | .transition(opacity .15s linear);
13 | &.in {
14 | opacity: 1;
15 | }
16 | }
17 |
18 | .collapse {
19 | display: none;
20 |
21 | &.in { display: block; }
22 | tr&.in { display: table-row; }
23 | tbody&.in { display: table-row-group; }
24 | }
25 |
26 | .collapsing {
27 | position: relative;
28 | height: 0;
29 | overflow: hidden;
30 | .transition-property(~"height, visibility");
31 | .transition-duration(.35s);
32 | .transition-timing-function(ease);
33 | }
34 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/table-row.less:
--------------------------------------------------------------------------------
1 | // Tables
2 |
3 | .table-row-variant(@state; @background) {
4 | // Exact selectors below required to override `.table-striped` and prevent
5 | // inheritance to nested tables.
6 | .table > thead > tr,
7 | .table > tbody > tr,
8 | .table > tfoot > tr {
9 | > td.@{state},
10 | > th.@{state},
11 | &.@{state} > td,
12 | &.@{state} > th {
13 | background-color: @background;
14 | }
15 | }
16 |
17 | // Hover states for `.table-hover`
18 | // Note: this is not available for cells or rows within `thead` or `tfoot`.
19 | .table-hover > tbody > tr {
20 | > td.@{state}:hover,
21 | > th.@{state}:hover,
22 | &.@{state}:hover > td,
23 | &:hover > .@{state},
24 | &.@{state}:hover > th {
25 | background-color: darken(@background, 5%);
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/wrapMap.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | // We have to close these tags to support XHTML (#13200)
4 | var wrapMap = {
5 |
6 | // Support: IE9
7 | option: [ 1, "" ],
8 |
9 | // XHTML parsers do not magically insert elements in the
10 | // same way that tag soup parsers do. So we cannot shorten
11 | // this by omitting or other required elements.
12 | thead: [ 1, "" ],
13 | col: [ 2, "" ],
14 | tr: [ 2, "" ],
15 | td: [ 3, "" ],
16 |
17 | _default: [ 0, "", "" ]
18 | };
19 |
20 | // Support: IE9
21 | wrapMap.optgroup = wrapMap.option;
22 |
23 | wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
24 | wrapMap.th = wrapMap.td;
25 |
26 | return wrapMap;
27 | } );
28 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/wrapMap.js:
--------------------------------------------------------------------------------
1 | define( function() {
2 |
3 | // We have to close these tags to support XHTML (#13200)
4 | var wrapMap = {
5 |
6 | // Support: IE9
7 | option: [ 1, "" ],
8 |
9 | // XHTML parsers do not magically insert elements in the
10 | // same way that tag soup parsers do. So we cannot shorten
11 | // this by omitting or other required elements.
12 | thead: [ 1, "" ],
13 | col: [ 2, "" ],
14 | tr: [ 2, "" ],
15 | td: [ 3, "" ],
16 |
17 | _default: [ 0, "", "" ]
18 | };
19 |
20 | // Support: IE9
21 | wrapMap.optgroup = wrapMap.option;
22 |
23 | wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
24 | wrapMap.th = wrapMap.td;
25 |
26 | return wrapMap;
27 | } );
28 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/close.less:
--------------------------------------------------------------------------------
1 | //
2 | // Close icons
3 | // --------------------------------------------------
4 |
5 |
6 | .close {
7 | float: right;
8 | font-size: (@font-size-base * 1.5);
9 | font-weight: @close-font-weight;
10 | line-height: 1;
11 | color: @close-color;
12 | text-shadow: @close-text-shadow;
13 | .opacity(.2);
14 |
15 | &:hover,
16 | &:focus {
17 | color: @close-color;
18 | text-decoration: none;
19 | cursor: pointer;
20 | .opacity(.5);
21 | }
22 |
23 | // Additional properties for button version
24 | // iOS requires the button element instead of an anchor tag.
25 | // If you want the anchor version, it requires `href="#"`.
26 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
27 | button& {
28 | padding: 0;
29 | cursor: pointer;
30 | background: transparent;
31 | border: 0;
32 | -webkit-appearance: none;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/thumbnails.less:
--------------------------------------------------------------------------------
1 | //
2 | // Thumbnails
3 | // --------------------------------------------------
4 |
5 |
6 | // Mixin and adjust the regular image class
7 | .thumbnail {
8 | display: block;
9 | padding: @thumbnail-padding;
10 | margin-bottom: @line-height-computed;
11 | line-height: @line-height-base;
12 | background-color: @thumbnail-bg;
13 | border: 1px solid @thumbnail-border;
14 | border-radius: @thumbnail-border-radius;
15 | .transition(border .2s ease-in-out);
16 |
17 | > img,
18 | a > img {
19 | &:extend(.img-responsive);
20 | margin-left: auto;
21 | margin-right: auto;
22 | }
23 |
24 | // Add a hover state for linked versions only
25 | a&:hover,
26 | a&:focus,
27 | a&.active {
28 | border-color: @link-color;
29 | }
30 |
31 | // Image captions
32 | .caption {
33 | padding: @thumbnail-caption-padding;
34 | color: @thumbnail-caption-color;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/close.less:
--------------------------------------------------------------------------------
1 | //
2 | // Close icons
3 | // --------------------------------------------------
4 |
5 |
6 | .close {
7 | float: right;
8 | font-size: (@font-size-base * 1.5);
9 | font-weight: @close-font-weight;
10 | line-height: 1;
11 | color: @close-color;
12 | text-shadow: @close-text-shadow;
13 | .opacity(.2);
14 |
15 | &:hover,
16 | &:focus {
17 | color: @close-color;
18 | text-decoration: none;
19 | cursor: pointer;
20 | .opacity(.5);
21 | }
22 |
23 | // Additional properties for button version
24 | // iOS requires the button element instead of an anchor tag.
25 | // If you want the anchor version, it requires `href="#"`.
26 | // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
27 | button& {
28 | padding: 0;
29 | cursor: pointer;
30 | background: transparent;
31 | border: 0;
32 | -webkit-appearance: none;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/thumbnails.less:
--------------------------------------------------------------------------------
1 | //
2 | // Thumbnails
3 | // --------------------------------------------------
4 |
5 |
6 | // Mixin and adjust the regular image class
7 | .thumbnail {
8 | display: block;
9 | padding: @thumbnail-padding;
10 | margin-bottom: @line-height-computed;
11 | line-height: @line-height-base;
12 | background-color: @thumbnail-bg;
13 | border: 1px solid @thumbnail-border;
14 | border-radius: @thumbnail-border-radius;
15 | .transition(border .2s ease-in-out);
16 |
17 | > img,
18 | a > img {
19 | &:extend(.img-responsive);
20 | margin-left: auto;
21 | margin-right: auto;
22 | }
23 |
24 | // Add a hover state for linked versions only
25 | a&:hover,
26 | a&:focus,
27 | a&.active {
28 | border-color: @link-color;
29 | }
30 |
31 | // Image captions
32 | .caption {
33 | padding: @thumbnail-caption-padding;
34 | color: @thumbnail-caption-color;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/docs/chapters/conclusion.adoc:
--------------------------------------------------------------------------------
1 | ## Conclusion
2 |
3 | You made it ! Or you jumped to this section. Anyway, congratulations. We hope you enjoy this lab and learn some
4 | _stuff_. There is many other things Vert.x can do and that was not illustrated here.
5 |
6 | Don't forget that reactive systems and so Vert.x requires a mind-shift:
7 |
8 | * Vert.x is a toolkit to build reactive systems
9 | * Asynchronous, non-blocking development model can be hard to understand at the first glance, but it becomes very
10 | convenient very quickly. Don't also forget, computers are asynchronous, so using such development model is
11 | using it the right way to use it to its whole power.
12 |
13 | If you want, and I hope so, to go further here are some references:
14 |
15 | * http://vertx.io[The Vert.x web site]
16 | * http://vertx.io/blog/posts/introduction-to-vertx.html[A blog post series to start developing with Vert.x]
17 | * https://github.com/vert-x3/vertx-microservice-toolbox[a set of building blocks for microservice-based applications]
18 |
19 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/vertx3-eventbus-client/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vertx3-eventbus-client",
3 | "version": "3.2.1",
4 | "homepage": "http://vertx.io",
5 | "authors": [
6 | "The Vert.x Team"
7 | ],
8 | "description": "Vert.x Event Bus Client for vert.x 3.2.1",
9 | "main": "vertx-eventbus.js",
10 | "moduleType": [
11 | "amd"
12 | ],
13 | "repository": {
14 | "type": "git",
15 | "url": "git://github.com/vert-x3/vertx-stack.git"
16 | },
17 | "keywords": [
18 | "vert.x",
19 | "sockjs",
20 | "websocket",
21 | "websockets"
22 | ],
23 | "ignore": [
24 | "src",
25 | "target",
26 | "pom.xml",
27 | "README.md"
28 | ],
29 | "license": "Apache-2.0",
30 | "_release": "3.2.1",
31 | "_resolution": {
32 | "type": "version",
33 | "tag": "3.2.1",
34 | "commit": "b8503b4b55fdf2ee8cda8e6e8f36286f32cfa9c6"
35 | },
36 | "_source": "https://github.com/vert-x3/vertx-bus-bower.git",
37 | "_target": "3.2.1",
38 | "_originalSource": "vertx3-eventbus-client"
39 | }
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/utilities.less:
--------------------------------------------------------------------------------
1 | //
2 | // Utility classes
3 | // --------------------------------------------------
4 |
5 |
6 | // Floats
7 | // -------------------------
8 |
9 | .clearfix {
10 | .clearfix();
11 | }
12 | .center-block {
13 | .center-block();
14 | }
15 | .pull-right {
16 | float: right !important;
17 | }
18 | .pull-left {
19 | float: left !important;
20 | }
21 |
22 |
23 | // Toggling content
24 | // -------------------------
25 |
26 | // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
27 | .hide {
28 | display: none !important;
29 | }
30 | .show {
31 | display: block !important;
32 | }
33 | .invisible {
34 | visibility: hidden;
35 | }
36 | .text-hide {
37 | .text-hide();
38 | }
39 |
40 |
41 | // Hide from screenreaders and browsers
42 | //
43 | // Credit: HTML5 Boilerplate
44 |
45 | .hidden {
46 | display: none !important;
47 | }
48 |
49 |
50 | // For Affix plugin
51 | // -------------------------
52 |
53 | .affix {
54 | position: fixed;
55 | }
56 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/vertx3-eventbus-client/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vertx3-eventbus-client",
3 | "version": "3.2.1",
4 | "homepage": "http://vertx.io",
5 | "authors": [
6 | "The Vert.x Team"
7 | ],
8 | "description": "Vert.x Event Bus Client for vert.x 3.2.1",
9 | "main": "vertx-eventbus.js",
10 | "moduleType": [
11 | "amd"
12 | ],
13 | "repository": {
14 | "type": "git",
15 | "url": "git://github.com/vert-x3/vertx-stack.git"
16 | },
17 | "keywords": [
18 | "vert.x",
19 | "sockjs",
20 | "websocket",
21 | "websockets"
22 | ],
23 | "ignore": [
24 | "src",
25 | "target",
26 | "pom.xml",
27 | "README.md"
28 | ],
29 | "license": "Apache-2.0",
30 | "_release": "3.2.1",
31 | "_resolution": {
32 | "type": "version",
33 | "tag": "3.2.1",
34 | "commit": "b8503b4b55fdf2ee8cda8e6e8f36286f32cfa9c6"
35 | },
36 | "_source": "https://github.com/vert-x3/vertx-bus-bower.git",
37 | "_target": "3.2.1",
38 | "_originalSource": "vertx3-eventbus-client"
39 | }
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/utilities.less:
--------------------------------------------------------------------------------
1 | //
2 | // Utility classes
3 | // --------------------------------------------------
4 |
5 |
6 | // Floats
7 | // -------------------------
8 |
9 | .clearfix {
10 | .clearfix();
11 | }
12 | .center-block {
13 | .center-block();
14 | }
15 | .pull-right {
16 | float: right !important;
17 | }
18 | .pull-left {
19 | float: left !important;
20 | }
21 |
22 |
23 | // Toggling content
24 | // -------------------------
25 |
26 | // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
27 | .hide {
28 | display: none !important;
29 | }
30 | .show {
31 | display: block !important;
32 | }
33 | .invisible {
34 | visibility: hidden;
35 | }
36 | .text-hide {
37 | .text-hide();
38 | }
39 |
40 |
41 | // Hide from screenreaders and browsers
42 | //
43 | // Credit: HTML5 Boilerplate
44 |
45 | .hidden {
46 | display: none !important;
47 | }
48 |
49 |
50 | // For Affix plugin
51 | // -------------------------
52 |
53 | .affix {
54 | position: fixed;
55 | }
56 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/attributes/support.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/document",
3 | "../var/support"
4 | ], function( document, support ) {
5 |
6 | ( function() {
7 | var input = document.createElement( "input" ),
8 | select = document.createElement( "select" ),
9 | opt = select.appendChild( document.createElement( "option" ) );
10 |
11 | input.type = "checkbox";
12 |
13 | // Support: iOS<=5.1, Android<=4.2+
14 | // Default value for a checkbox should be "on"
15 | support.checkOn = input.value !== "";
16 |
17 | // Support: IE<=11+
18 | // Must access selectedIndex to make default options select
19 | support.optSelected = opt.selected;
20 |
21 | // Support: Android<=2.3
22 | // Options inside disabled selects are incorrectly marked as disabled
23 | select.disabled = true;
24 | support.optDisabled = !opt.disabled;
25 |
26 | // Support: IE<=11+
27 | // An input loses its value after becoming a radio
28 | input = document.createElement( "input" );
29 | input.value = "t";
30 | input.type = "radio";
31 | support.radioValue = input.value === "t";
32 | } )();
33 |
34 | return support;
35 |
36 | } );
37 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/package.js:
--------------------------------------------------------------------------------
1 | // package metadata file for Meteor.js
2 |
3 | /* jshint strict:false */
4 | /* global Package:true */
5 |
6 | Package.describe({
7 | name: 'twbs:bootstrap', // http://atmospherejs.com/twbs/bootstrap
8 | summary: 'The most popular front-end framework for developing responsive, mobile first projects on the web.',
9 | version: '3.3.6',
10 | git: 'https://github.com/twbs/bootstrap.git'
11 | });
12 |
13 | Package.onUse(function (api) {
14 | api.versionsFrom('METEOR@1.0');
15 | api.use('jquery', 'client');
16 | var assets = [
17 | 'dist/fonts/glyphicons-halflings-regular.eot',
18 | 'dist/fonts/glyphicons-halflings-regular.svg',
19 | 'dist/fonts/glyphicons-halflings-regular.ttf',
20 | 'dist/fonts/glyphicons-halflings-regular.woff',
21 | 'dist/fonts/glyphicons-halflings-regular.woff2'
22 | ];
23 | if (api.addAssets) {
24 | api.addAssets(assets, 'client');
25 | } else {
26 | api.addFiles(assets, 'client', { isAsset: true });
27 | }
28 | api.addFiles([
29 | 'dist/css/bootstrap.css',
30 | 'dist/js/bootstrap.js'
31 | ], 'client');
32 | });
33 |
--------------------------------------------------------------------------------
/docs/index.adoc:
--------------------------------------------------------------------------------
1 | # Vert.x - From zero to (micro)-hero
2 | Clement Escoffier, Julien Viet
3 | v0.6, March, 18th, 2017
4 | :toc: left
5 | :toclevels: 4
6 | :imagesdir: images
7 | :docinfo1:
8 | :icons: font
9 |
10 | include::chapters/preface.adoc[Preface]
11 | include::chapters/vertx.adoc[Vert.x]
12 | include::chapters/microservices.adoc[Demystifying microservices]
13 | include::chapters/application.adoc[The application]
14 | include::chapters/prerequisites.adoc[Prerequisites]
15 | include::chapters/setup.adoc[Let's start !]
16 | include::chapters/quote-generator.adoc[Your first Vert.x microservice - the quote generator]
17 | include::chapters/portfolio.adoc[Exposing Event bus services, and HTTP client - the portfolio service]
18 | include::chapters/traders.adoc[Consuming Event bus services and polyglot verticle - the trader service]
19 | include::chapters/audit.adoc[Database and complex composition - the audit service]
20 | include::chapters/dashboard.adoc[Anatomy of the dashboard]
21 | include::chapters/conclusion.adoc[You made it!]
22 | include::chapters/references.adoc[References]
23 | include::chapters/appendix-A-commands.adoc[Appendix A - Start, Stop and List commands]
24 |
25 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/attributes/support.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/document",
3 | "../var/support"
4 | ], function( document, support ) {
5 |
6 | ( function() {
7 | var input = document.createElement( "input" ),
8 | select = document.createElement( "select" ),
9 | opt = select.appendChild( document.createElement( "option" ) );
10 |
11 | input.type = "checkbox";
12 |
13 | // Support: iOS<=5.1, Android<=4.2+
14 | // Default value for a checkbox should be "on"
15 | support.checkOn = input.value !== "";
16 |
17 | // Support: IE<=11+
18 | // Must access selectedIndex to make default options select
19 | support.optSelected = opt.selected;
20 |
21 | // Support: Android<=2.3
22 | // Options inside disabled selects are incorrectly marked as disabled
23 | select.disabled = true;
24 | support.optDisabled = !opt.disabled;
25 |
26 | // Support: IE<=11+
27 | // An input loses its value after becoming a radio
28 | input = document.createElement( "input" );
29 | input.value = "t";
30 | input.type = "radio";
31 | support.radioValue = input.value === "t";
32 | } )();
33 |
34 | return support;
35 |
36 | } );
37 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/package.js:
--------------------------------------------------------------------------------
1 | // package metadata file for Meteor.js
2 |
3 | /* jshint strict:false */
4 | /* global Package:true */
5 |
6 | Package.describe({
7 | name: 'twbs:bootstrap', // http://atmospherejs.com/twbs/bootstrap
8 | summary: 'The most popular front-end framework for developing responsive, mobile first projects on the web.',
9 | version: '3.3.6',
10 | git: 'https://github.com/twbs/bootstrap.git'
11 | });
12 |
13 | Package.onUse(function (api) {
14 | api.versionsFrom('METEOR@1.0');
15 | api.use('jquery', 'client');
16 | var assets = [
17 | 'dist/fonts/glyphicons-halflings-regular.eot',
18 | 'dist/fonts/glyphicons-halflings-regular.svg',
19 | 'dist/fonts/glyphicons-halflings-regular.ttf',
20 | 'dist/fonts/glyphicons-halflings-regular.woff',
21 | 'dist/fonts/glyphicons-halflings-regular.woff2'
22 | ];
23 | if (api.addAssets) {
24 | api.addAssets(assets, 'client');
25 | } else {
26 | api.addFiles(assets, 'client', { isAsset: true });
27 | }
28 | api.addFiles([
29 | 'dist/css/bootstrap.css',
30 | 'dist/js/bootstrap.js'
31 | ], 'client');
32 | });
33 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "bootstrap",
3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
4 | "keywords": [
5 | "css",
6 | "js",
7 | "less",
8 | "mobile-first",
9 | "responsive",
10 | "front-end",
11 | "framework",
12 | "web"
13 | ],
14 | "homepage": "http://getbootstrap.com",
15 | "license": "MIT",
16 | "moduleType": "globals",
17 | "main": [
18 | "less/bootstrap.less",
19 | "dist/js/bootstrap.js"
20 | ],
21 | "ignore": [
22 | "/.*",
23 | "_config.yml",
24 | "CNAME",
25 | "composer.json",
26 | "CONTRIBUTING.md",
27 | "docs",
28 | "js/tests",
29 | "test-infra"
30 | ],
31 | "dependencies": {
32 | "jquery": "1.9.1 - 2"
33 | },
34 | "version": "3.3.6",
35 | "_release": "3.3.6",
36 | "_resolution": {
37 | "type": "version",
38 | "tag": "v3.3.6",
39 | "commit": "81df608a40bf0629a1dc08e584849bb1e43e0b7a"
40 | },
41 | "_source": "https://github.com/twbs/bootstrap.git",
42 | "_target": "3.3.6",
43 | "_originalSource": "bootstrap"
44 | }
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/pager.less:
--------------------------------------------------------------------------------
1 | //
2 | // Pager pagination
3 | // --------------------------------------------------
4 |
5 |
6 | .pager {
7 | padding-left: 0;
8 | margin: @line-height-computed 0;
9 | list-style: none;
10 | text-align: center;
11 | &:extend(.clearfix all);
12 | li {
13 | display: inline;
14 | > a,
15 | > span {
16 | display: inline-block;
17 | padding: 5px 14px;
18 | background-color: @pager-bg;
19 | border: 1px solid @pager-border;
20 | border-radius: @pager-border-radius;
21 | }
22 |
23 | > a:hover,
24 | > a:focus {
25 | text-decoration: none;
26 | background-color: @pager-hover-bg;
27 | }
28 | }
29 |
30 | .next {
31 | > a,
32 | > span {
33 | float: right;
34 | }
35 | }
36 |
37 | .previous {
38 | > a,
39 | > span {
40 | float: left;
41 | }
42 | }
43 |
44 | .disabled {
45 | > a,
46 | > a:hover,
47 | > a:focus,
48 | > span {
49 | color: @pager-disabled-color;
50 | background-color: @pager-bg;
51 | cursor: @cursor-disabled;
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/exports/amd.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core"
3 | ], function( jQuery ) {
4 |
5 | // Register as a named AMD module, since jQuery can be concatenated with other
6 | // files that may use define, but not via a proper concatenation script that
7 | // understands anonymous AMD modules. A named AMD is safest and most robust
8 | // way to register. Lowercase jquery is used because AMD module names are
9 | // derived from file names, and jQuery is normally delivered in a lowercase
10 | // file name. Do this after creating the global so that if an AMD module wants
11 | // to call noConflict to hide this version of jQuery, it will work.
12 |
13 | // Note that for maximum portability, libraries that are not jQuery should
14 | // declare themselves as anonymous modules, and avoid setting a global if an
15 | // AMD loader is present. jQuery is a special case. For more information, see
16 | // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
17 |
18 | if ( typeof define === "function" && define.amd ) {
19 | define( "jquery", [], function() {
20 | return jQuery;
21 | } );
22 | }
23 |
24 | } );
25 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "bootstrap",
3 | "description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
4 | "keywords": [
5 | "css",
6 | "js",
7 | "less",
8 | "mobile-first",
9 | "responsive",
10 | "front-end",
11 | "framework",
12 | "web"
13 | ],
14 | "homepage": "http://getbootstrap.com",
15 | "license": "MIT",
16 | "moduleType": "globals",
17 | "main": [
18 | "less/bootstrap.less",
19 | "dist/js/bootstrap.js"
20 | ],
21 | "ignore": [
22 | "/.*",
23 | "_config.yml",
24 | "CNAME",
25 | "composer.json",
26 | "CONTRIBUTING.md",
27 | "docs",
28 | "js/tests",
29 | "test-infra"
30 | ],
31 | "dependencies": {
32 | "jquery": "1.9.1 - 2"
33 | },
34 | "version": "3.3.6",
35 | "_release": "3.3.6",
36 | "_resolution": {
37 | "type": "version",
38 | "tag": "v3.3.6",
39 | "commit": "81df608a40bf0629a1dc08e584849bb1e43e0b7a"
40 | },
41 | "_source": "https://github.com/twbs/bootstrap.git",
42 | "_target": "3.3.6",
43 | "_originalSource": "bootstrap"
44 | }
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/pager.less:
--------------------------------------------------------------------------------
1 | //
2 | // Pager pagination
3 | // --------------------------------------------------
4 |
5 |
6 | .pager {
7 | padding-left: 0;
8 | margin: @line-height-computed 0;
9 | list-style: none;
10 | text-align: center;
11 | &:extend(.clearfix all);
12 | li {
13 | display: inline;
14 | > a,
15 | > span {
16 | display: inline-block;
17 | padding: 5px 14px;
18 | background-color: @pager-bg;
19 | border: 1px solid @pager-border;
20 | border-radius: @pager-border-radius;
21 | }
22 |
23 | > a:hover,
24 | > a:focus {
25 | text-decoration: none;
26 | background-color: @pager-hover-bg;
27 | }
28 | }
29 |
30 | .next {
31 | > a,
32 | > span {
33 | float: right;
34 | }
35 | }
36 |
37 | .previous {
38 | > a,
39 | > span {
40 | float: left;
41 | }
42 | }
43 |
44 | .disabled {
45 | > a,
46 | > a:hover,
47 | > a:focus,
48 | > span {
49 | color: @pager-disabled-color;
50 | background-color: @pager-bg;
51 | cursor: @cursor-disabled;
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/exports/amd.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core"
3 | ], function( jQuery ) {
4 |
5 | // Register as a named AMD module, since jQuery can be concatenated with other
6 | // files that may use define, but not via a proper concatenation script that
7 | // understands anonymous AMD modules. A named AMD is safest and most robust
8 | // way to register. Lowercase jquery is used because AMD module names are
9 | // derived from file names, and jQuery is normally delivered in a lowercase
10 | // file name. Do this after creating the global so that if an AMD module wants
11 | // to call noConflict to hide this version of jQuery, it will work.
12 |
13 | // Note that for maximum portability, libraries that are not jQuery should
14 | // declare themselves as anonymous modules, and avoid setting a global if an
15 | // AMD loader is present. jQuery is a special case. For more information, see
16 | // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
17 |
18 | if ( typeof define === "function" && define.amd ) {
19 | define( "jquery", [], function() {
20 | return jQuery;
21 | } );
22 | }
23 |
24 | } );
25 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/grunt/bs-commonjs-generator.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap Grunt task for the CommonJS module generation
3 | * http://getbootstrap.com
4 | * Copyright 2014-2015 Twitter, Inc.
5 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
6 | */
7 |
8 | 'use strict';
9 |
10 | var fs = require('fs');
11 | var path = require('path');
12 |
13 | var COMMONJS_BANNER = '// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.\n';
14 |
15 | module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath) {
16 | var destDir = path.dirname(destFilepath);
17 |
18 | function srcPathToDestRequire(srcFilepath) {
19 | var requirePath = path.relative(destDir, srcFilepath).replace(/\\/g, '/');
20 | return 'require(\'' + requirePath + '\')';
21 | }
22 |
23 | var moduleOutputJs = COMMONJS_BANNER + srcFiles.map(srcPathToDestRequire).join('\n');
24 | try {
25 | fs.writeFileSync(destFilepath, moduleOutputJs);
26 | } catch (err) {
27 | grunt.fail.warn(err);
28 | }
29 | grunt.log.writeln('File ' + destFilepath.cyan + ' created.');
30 | };
31 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/grunt/bs-commonjs-generator.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap Grunt task for the CommonJS module generation
3 | * http://getbootstrap.com
4 | * Copyright 2014-2015 Twitter, Inc.
5 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
6 | */
7 |
8 | 'use strict';
9 |
10 | var fs = require('fs');
11 | var path = require('path');
12 |
13 | var COMMONJS_BANNER = '// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.\n';
14 |
15 | module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath) {
16 | var destDir = path.dirname(destFilepath);
17 |
18 | function srcPathToDestRequire(srcFilepath) {
19 | var requirePath = path.relative(destDir, srcFilepath).replace(/\\/g, '/');
20 | return 'require(\'' + requirePath + '\')';
21 | }
22 |
23 | var moduleOutputJs = COMMONJS_BANNER + srcFiles.map(srcPathToDestRequire).join('\n');
24 | try {
25 | fs.writeFileSync(destFilepath, moduleOutputJs);
26 | } catch (err) {
27 | grunt.fail.warn(err);
28 | }
29 | grunt.log.writeln('File ' + destFilepath.cyan + ' created.');
30 | };
31 |
--------------------------------------------------------------------------------
/quote-generator/src/test/java/io/vertx/workshop/quote/MarketDataVerticleTest.java:
--------------------------------------------------------------------------------
1 | package io.vertx.workshop.quote;
2 |
3 | import io.vertx.core.json.JsonObject;
4 | import org.junit.Test;
5 |
6 | import static org.assertj.core.api.Assertions.assertThat;
7 |
8 |
9 | /**
10 | * @author Clement Escoffier
11 | */
12 | public class MarketDataVerticleTest {
13 |
14 |
15 | @Test
16 | public void testComputation() {
17 | JsonObject json = new JsonObject()
18 | .put("name", "test")
19 | .put("symbol", "TT");
20 |
21 | MarketDataVerticle verticle = new MarketDataVerticle();
22 | verticle.init(json);
23 |
24 | int volume = verticle.stocks;
25 |
26 | assertThat(verticle.ask).isGreaterThan(0.0);
27 | assertThat(verticle.bid).isGreaterThan(0.0);
28 | assertThat(verticle.share).isGreaterThanOrEqualTo(0).isLessThanOrEqualTo(volume);
29 |
30 | for (int i = 0; i < 1000000; i++) {
31 | verticle.compute();
32 | assertThat(verticle.ask).isGreaterThan(0.0);
33 | assertThat(verticle.bid).isGreaterThan(0.0);
34 | assertThat(verticle.share).isGreaterThanOrEqualTo(0).isLessThanOrEqualTo(volume);
35 | }
36 |
37 | }
38 |
39 | }
--------------------------------------------------------------------------------
/solution/quote-generator/src/test/java/io/vertx/workshop/quote/MarketDataVerticleTest.java:
--------------------------------------------------------------------------------
1 | package io.vertx.workshop.quote;
2 |
3 | import io.vertx.core.json.JsonObject;
4 | import org.junit.Test;
5 |
6 | import static org.assertj.core.api.Assertions.assertThat;
7 |
8 |
9 | /**
10 | * @author Clement Escoffier
11 | */
12 | public class MarketDataVerticleTest {
13 |
14 |
15 | @Test
16 | public void testComputation() {
17 | JsonObject json = new JsonObject()
18 | .put("name", "test")
19 | .put("symbol", "TT");
20 |
21 | MarketDataVerticle verticle = new MarketDataVerticle();
22 | verticle.init(json);
23 |
24 | int volume = verticle.stocks;
25 |
26 | assertThat(verticle.ask).isGreaterThan(0.0);
27 | assertThat(verticle.bid).isGreaterThan(0.0);
28 | assertThat(verticle.share).isGreaterThanOrEqualTo(0).isLessThanOrEqualTo(volume);
29 |
30 | for (int i = 0; i < 1000000; i++) {
31 | verticle.compute();
32 | assertThat(verticle.ask).isGreaterThan(0.0);
33 | assertThat(verticle.bid).isGreaterThan(0.0);
34 | assertThat(verticle.share).isGreaterThanOrEqualTo(0).isLessThanOrEqualTo(volume);
35 | }
36 |
37 | }
38 |
39 | }
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2011-2015 Twitter, Inc
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/trader-dashboard/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | io.vertx.workshop
9 | vertx-microservice-workshop
10 | 1.0-SNAPSHOT
11 |
12 |
13 | trader-dashboard
14 |
15 |
16 | io.vertx.workshop.dashboard.DashboardVerticle
17 |
18 |
19 |
20 |
21 | io.vertx.workshop
22 | vertx-workshop-common
23 | ${project.version}
24 |
25 |
26 |
27 |
28 |
29 |
30 | maven-shade-plugin
31 |
32 |
33 | maven-dependency-plugin
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/docs/docinfo.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2011-2015 Twitter, Inc
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/portfolio-service/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | io.vertx.workshop
9 | vertx-microservice-workshop
10 | 1.0-SNAPSHOT
11 |
12 |
13 | portfolio-service
14 |
15 |
16 | io.vertx.workshop.portfolio.impl.PortfolioVerticle
17 |
18 |
19 |
20 |
21 | io.vertx.workshop
22 | vertx-workshop-common
23 | ${project.version}
24 |
25 |
26 |
27 |
28 |
29 |
30 | maven-shade-plugin
31 |
32 |
33 | maven-dependency-plugin
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/support.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/document",
3 | "../var/support"
4 | ], function( document, support ) {
5 |
6 | ( function() {
7 | var fragment = document.createDocumentFragment(),
8 | div = fragment.appendChild( document.createElement( "div" ) ),
9 | input = document.createElement( "input" );
10 |
11 | // Support: Android 4.0-4.3, Safari<=5.1
12 | // Check state lost if the name is set (#11217)
13 | // Support: Windows Web Apps (WWA)
14 | // `name` and `type` must use .setAttribute for WWA (#14901)
15 | input.setAttribute( "type", "radio" );
16 | input.setAttribute( "checked", "checked" );
17 | input.setAttribute( "name", "t" );
18 |
19 | div.appendChild( input );
20 |
21 | // Support: Safari<=5.1, Android<4.2
22 | // Older WebKit doesn't clone checked state correctly in fragments
23 | support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
24 |
25 | // Support: IE<=11+
26 | // Make sure textarea (and checkbox) defaultValue is properly cloned
27 | div.innerHTML = "";
28 | support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
29 | } )();
30 |
31 | return support;
32 |
33 | } );
34 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/manipulation/support.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../var/document",
3 | "../var/support"
4 | ], function( document, support ) {
5 |
6 | ( function() {
7 | var fragment = document.createDocumentFragment(),
8 | div = fragment.appendChild( document.createElement( "div" ) ),
9 | input = document.createElement( "input" );
10 |
11 | // Support: Android 4.0-4.3, Safari<=5.1
12 | // Check state lost if the name is set (#11217)
13 | // Support: Windows Web Apps (WWA)
14 | // `name` and `type` must use .setAttribute for WWA (#14901)
15 | input.setAttribute( "type", "radio" );
16 | input.setAttribute( "checked", "checked" );
17 | input.setAttribute( "name", "t" );
18 |
19 | div.appendChild( input );
20 |
21 | // Support: Safari<=5.1, Android<4.2
22 | // Older WebKit doesn't clone checked state correctly in fragments
23 | support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
24 |
25 | // Support: IE<=11+
26 | // Make sure textarea (and checkbox) defaultValue is properly cloned
27 | div.innerHTML = "";
28 | support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
29 | } )();
30 |
31 | return support;
32 |
33 | } );
34 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/core/parseHTML.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 | "../var/document",
4 | "./var/rsingleTag",
5 | "../manipulation/buildFragment"
6 | ], function( jQuery, document, rsingleTag, buildFragment ) {
7 |
8 | // Argument "data" should be string of html
9 | // context (optional): If specified, the fragment will be created in this context,
10 | // defaults to document
11 | // keepScripts (optional): If true, will include scripts passed in the html string
12 | jQuery.parseHTML = function( data, context, keepScripts ) {
13 | if ( !data || typeof data !== "string" ) {
14 | return null;
15 | }
16 | if ( typeof context === "boolean" ) {
17 | keepScripts = context;
18 | context = false;
19 | }
20 | context = context || document;
21 |
22 | var parsed = rsingleTag.exec( data ),
23 | scripts = !keepScripts && [];
24 |
25 | // Single tag
26 | if ( parsed ) {
27 | return [ context.createElement( parsed[ 1 ] ) ];
28 | }
29 |
30 | parsed = buildFragment( [ data ], context, scripts );
31 |
32 | if ( scripts && scripts.length ) {
33 | jQuery( scripts ).remove();
34 | }
35 |
36 | return jQuery.merge( [], parsed.childNodes );
37 | };
38 |
39 | return jQuery.parseHTML;
40 |
41 | } );
42 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/core/parseHTML.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../core",
3 | "../var/document",
4 | "./var/rsingleTag",
5 | "../manipulation/buildFragment"
6 | ], function( jQuery, document, rsingleTag, buildFragment ) {
7 |
8 | // Argument "data" should be string of html
9 | // context (optional): If specified, the fragment will be created in this context,
10 | // defaults to document
11 | // keepScripts (optional): If true, will include scripts passed in the html string
12 | jQuery.parseHTML = function( data, context, keepScripts ) {
13 | if ( !data || typeof data !== "string" ) {
14 | return null;
15 | }
16 | if ( typeof context === "boolean" ) {
17 | keepScripts = context;
18 | context = false;
19 | }
20 | context = context || document;
21 |
22 | var parsed = rsingleTag.exec( data ),
23 | scripts = !keepScripts && [];
24 |
25 | // Single tag
26 | if ( parsed ) {
27 | return [ context.createElement( parsed[ 1 ] ) ];
28 | }
29 |
30 | parsed = buildFragment( [ data ], context, scripts );
31 |
32 | if ( scripts && scripts.length ) {
33 | jQuery( scripts ).remove();
34 | }
35 |
36 | return jQuery.merge( [], parsed.childNodes );
37 | };
38 |
39 | return jQuery.parseHTML;
40 |
41 | } );
42 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/media.less:
--------------------------------------------------------------------------------
1 | .media {
2 | // Proper spacing between instances of .media
3 | margin-top: 15px;
4 |
5 | &:first-child {
6 | margin-top: 0;
7 | }
8 | }
9 |
10 | .media,
11 | .media-body {
12 | zoom: 1;
13 | overflow: hidden;
14 | }
15 |
16 | .media-body {
17 | width: 10000px;
18 | }
19 |
20 | .media-object {
21 | display: block;
22 |
23 | // Fix collapse in webkit from max-width: 100% and display: table-cell.
24 | &.img-thumbnail {
25 | max-width: none;
26 | }
27 | }
28 |
29 | .media-right,
30 | .media > .pull-right {
31 | padding-left: 10px;
32 | }
33 |
34 | .media-left,
35 | .media > .pull-left {
36 | padding-right: 10px;
37 | }
38 |
39 | .media-left,
40 | .media-right,
41 | .media-body {
42 | display: table-cell;
43 | vertical-align: top;
44 | }
45 |
46 | .media-middle {
47 | vertical-align: middle;
48 | }
49 |
50 | .media-bottom {
51 | vertical-align: bottom;
52 | }
53 |
54 | // Reset margins on headings for tighter default spacing
55 | .media-heading {
56 | margin-top: 0;
57 | margin-bottom: 5px;
58 | }
59 |
60 | // Media list variation
61 | //
62 | // Undo default ul/ol styles
63 | .media-list {
64 | padding-left: 0;
65 | list-style: none;
66 | }
67 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/showHide.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../data/var/dataPriv"
3 | ], function( dataPriv ) {
4 |
5 | function showHide( elements, show ) {
6 | var display, elem,
7 | values = [],
8 | index = 0,
9 | length = elements.length;
10 |
11 | // Determine new display value for elements that need to change
12 | for ( ; index < length; index++ ) {
13 | elem = elements[ index ];
14 | if ( !elem.style ) {
15 | continue;
16 | }
17 |
18 | display = elem.style.display;
19 | if ( show ) {
20 | if ( display === "none" ) {
21 |
22 | // Restore a pre-hide() value if we have one
23 | values[ index ] = dataPriv.get( elem, "display" ) || "";
24 | }
25 | } else {
26 | if ( display !== "none" ) {
27 | values[ index ] = "none";
28 |
29 | // Remember the value we're replacing
30 | dataPriv.set( elem, "display", display );
31 | }
32 | }
33 | }
34 |
35 | // Set the display of the elements in a second loop
36 | // to avoid the constant reflow
37 | for ( index = 0; index < length; index++ ) {
38 | if ( values[ index ] != null ) {
39 | elements[ index ].style.display = values[ index ];
40 | }
41 | }
42 |
43 | return elements;
44 | }
45 |
46 | return showHide;
47 |
48 | } );
49 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/image.less:
--------------------------------------------------------------------------------
1 | // Image Mixins
2 | // - Responsive image
3 | // - Retina image
4 |
5 |
6 | // Responsive image
7 | //
8 | // Keep images from scaling beyond the width of their parents.
9 | .img-responsive(@display: block) {
10 | display: @display;
11 | max-width: 100%; // Part 1: Set a maximum relative to the parent
12 | height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
13 | }
14 |
15 |
16 | // Retina image
17 | //
18 | // Short retina mixin for setting background-image and -size. Note that the
19 | // spelling of `min--moz-device-pixel-ratio` is intentional.
20 | .img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
21 | background-image: url("@{file-1x}");
22 |
23 | @media
24 | only screen and (-webkit-min-device-pixel-ratio: 2),
25 | only screen and ( min--moz-device-pixel-ratio: 2),
26 | only screen and ( -o-min-device-pixel-ratio: 2/1),
27 | only screen and ( min-device-pixel-ratio: 2),
28 | only screen and ( min-resolution: 192dpi),
29 | only screen and ( min-resolution: 2dppx) {
30 | background-image: url("@{file-2x}");
31 | background-size: @width-1x @height-1x;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | io.vertx.workshop
9 | vertx-microservice-workshop
10 | 1.0-SNAPSHOT
11 |
12 |
13 | trader-dashboard
14 | Trader Dashboard (Solution)
15 |
16 |
17 | io.vertx.workshop.dashboard.DashboardVerticle
18 |
19 |
20 |
21 |
22 | io.vertx.workshop
23 | vertx-workshop-common
24 | ${project.version}
25 |
26 |
27 |
28 |
29 |
30 |
31 | maven-shade-plugin
32 |
33 |
34 | maven-dependency-plugin
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/media.less:
--------------------------------------------------------------------------------
1 | .media {
2 | // Proper spacing between instances of .media
3 | margin-top: 15px;
4 |
5 | &:first-child {
6 | margin-top: 0;
7 | }
8 | }
9 |
10 | .media,
11 | .media-body {
12 | zoom: 1;
13 | overflow: hidden;
14 | }
15 |
16 | .media-body {
17 | width: 10000px;
18 | }
19 |
20 | .media-object {
21 | display: block;
22 |
23 | // Fix collapse in webkit from max-width: 100% and display: table-cell.
24 | &.img-thumbnail {
25 | max-width: none;
26 | }
27 | }
28 |
29 | .media-right,
30 | .media > .pull-right {
31 | padding-left: 10px;
32 | }
33 |
34 | .media-left,
35 | .media > .pull-left {
36 | padding-right: 10px;
37 | }
38 |
39 | .media-left,
40 | .media-right,
41 | .media-body {
42 | display: table-cell;
43 | vertical-align: top;
44 | }
45 |
46 | .media-middle {
47 | vertical-align: middle;
48 | }
49 |
50 | .media-bottom {
51 | vertical-align: bottom;
52 | }
53 |
54 | // Reset margins on headings for tighter default spacing
55 | .media-heading {
56 | margin-top: 0;
57 | margin-bottom: 5px;
58 | }
59 |
60 | // Media list variation
61 | //
62 | // Undo default ul/ol styles
63 | .media-list {
64 | padding-left: 0;
65 | list-style: none;
66 | }
67 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/jquery/src/css/showHide.js:
--------------------------------------------------------------------------------
1 | define( [
2 | "../data/var/dataPriv"
3 | ], function( dataPriv ) {
4 |
5 | function showHide( elements, show ) {
6 | var display, elem,
7 | values = [],
8 | index = 0,
9 | length = elements.length;
10 |
11 | // Determine new display value for elements that need to change
12 | for ( ; index < length; index++ ) {
13 | elem = elements[ index ];
14 | if ( !elem.style ) {
15 | continue;
16 | }
17 |
18 | display = elem.style.display;
19 | if ( show ) {
20 | if ( display === "none" ) {
21 |
22 | // Restore a pre-hide() value if we have one
23 | values[ index ] = dataPriv.get( elem, "display" ) || "";
24 | }
25 | } else {
26 | if ( display !== "none" ) {
27 | values[ index ] = "none";
28 |
29 | // Remember the value we're replacing
30 | dataPriv.set( elem, "display", display );
31 | }
32 | }
33 | }
34 |
35 | // Set the display of the elements in a second loop
36 | // to avoid the constant reflow
37 | for ( index = 0; index < length; index++ ) {
38 | if ( values[ index ] != null ) {
39 | elements[ index ].style.display = values[ index ];
40 | }
41 | }
42 |
43 | return elements;
44 | }
45 |
46 | return showHide;
47 |
48 | } );
49 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins/image.less:
--------------------------------------------------------------------------------
1 | // Image Mixins
2 | // - Responsive image
3 | // - Retina image
4 |
5 |
6 | // Responsive image
7 | //
8 | // Keep images from scaling beyond the width of their parents.
9 | .img-responsive(@display: block) {
10 | display: @display;
11 | max-width: 100%; // Part 1: Set a maximum relative to the parent
12 | height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
13 | }
14 |
15 |
16 | // Retina image
17 | //
18 | // Short retina mixin for setting background-image and -size. Note that the
19 | // spelling of `min--moz-device-pixel-ratio` is intentional.
20 | .img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
21 | background-image: url("@{file-1x}");
22 |
23 | @media
24 | only screen and (-webkit-min-device-pixel-ratio: 2),
25 | only screen and ( min--moz-device-pixel-ratio: 2),
26 | only screen and ( -o-min-device-pixel-ratio: 2/1),
27 | only screen and ( min-device-pixel-ratio: 2),
28 | only screen and ( min-resolution: 192dpi),
29 | only screen and ( min-resolution: 2dppx) {
30 | background-image: url("@{file-2x}");
31 | background-size: @width-1x @height-1x;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/solution/portfolio-service/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | io.vertx.workshop
9 | vertx-microservice-workshop
10 | 1.0-SNAPSHOT
11 |
12 |
13 | portfolio-service
14 | Portfolio Service (Solution)
15 |
16 |
17 | io.vertx.workshop.portfolio.impl.PortfolioVerticle
18 |
19 |
20 |
21 |
22 | io.vertx.workshop
23 | vertx-workshop-common
24 | ${project.version}
25 |
26 |
27 |
28 |
29 |
30 |
31 | maven-shade-plugin
32 |
33 |
34 | maven-dependency-plugin
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/docs/assets/css/hol.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 10px;
3 | }
4 |
5 | p,
6 | blockquote,
7 | dt,
8 | td.content,
9 | span.alt {
10 | font-size: inherit;
11 | }
12 |
13 | #header,
14 | #content,
15 | #footnotes,
16 | #footer {
17 | max-width: 90.5em;
18 | }
19 |
20 | .quoteblock blockquote,
21 | .quoteblock blockquote,
22 | td.content {
23 | font-size: 1.2em;
24 | }
25 |
26 | .assignment pre code {
27 | background-color: transparent;
28 | }
29 |
30 | .sidebarblock p,
31 | .sidebarblock dt,
32 | .sidebarblock td.content,
33 | p.tableblock {
34 | font-size: 1em;
35 | }
36 |
37 | a[data-toggle='collapse'] {
38 | margin-bottom: 10px;
39 | }
40 |
41 | h1 {
42 | font-size: 46px;
43 | font-weight: bold;
44 | }
45 |
46 | #toctitle,
47 | .h1,
48 | .h2,
49 | .h3,
50 | .h4,
51 | .h5,
52 | .h6,
53 | h1,
54 | h2,
55 | h3,
56 | h4,
57 | h5,
58 | h6 {
59 | font-family: inherit;
60 | line-height: 1.1;
61 | color: inherit;
62 | }
63 |
64 | h1 {
65 | margin: .67em 0;
66 | font-size: 1.5em;
67 | }
68 |
69 | li p {
70 | font-size: 1em;
71 | }
72 |
73 | code {
74 | color: #c7254e;
75 | }
76 |
77 | code,
78 | kbd,
79 | pre,
80 | samp {
81 | font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
82 | }
83 |
84 | .quoteblock blockquote:before {
85 | vertical-align: baseline;
86 | }
--------------------------------------------------------------------------------
/solution/portfolio-service/src/test/java/io/vertx/workshop/portfolio/impl/PortfolioVerticleTest.java:
--------------------------------------------------------------------------------
1 | package io.vertx.workshop.portfolio.impl;
2 |
3 | import io.vertx.core.Vertx;
4 | import io.vertx.serviceproxy.ProxyHelper;
5 | import io.vertx.workshop.portfolio.Portfolio;
6 | import io.vertx.workshop.portfolio.PortfolioService;
7 | import org.junit.Test;
8 |
9 | import java.util.concurrent.atomic.AtomicReference;
10 |
11 | import static com.jayway.awaitility.Awaitility.await;
12 | import static org.assertj.core.api.Assertions.assertThat;
13 | import static org.hamcrest.CoreMatchers.not;
14 | import static org.hamcrest.CoreMatchers.nullValue;
15 |
16 | /**
17 | * @author Clement Escoffier
18 | */
19 | public class PortfolioVerticleTest {
20 |
21 | @Test
22 | public void testServiceAccess() {
23 | Vertx vertx = Vertx.vertx();
24 | vertx.deployVerticle(PortfolioVerticle.class.getName());
25 |
26 | PortfolioService proxy = ProxyHelper.createProxy(PortfolioService.class, vertx, PortfolioService.ADDRESS);
27 |
28 | assertThat(proxy).isNotNull();
29 | AtomicReference reference = new AtomicReference<>();
30 | proxy.getPortfolio(ar -> reference.set(ar.result()));
31 |
32 | await().untilAtomic(reference, not(nullValue()));
33 |
34 | vertx.close();
35 | }
36 |
37 | }
--------------------------------------------------------------------------------
/portfolio-service/src/main/java/io/vertx/workshop/portfolio/impl/PortfolioVerticle.java:
--------------------------------------------------------------------------------
1 | package io.vertx.workshop.portfolio.impl;
2 |
3 | import io.vertx.serviceproxy.ProxyHelper;
4 | import io.vertx.workshop.common.MicroServiceVerticle;
5 | import io.vertx.workshop.portfolio.PortfolioService;
6 |
7 | import static io.vertx.workshop.portfolio.PortfolioService.ADDRESS;
8 | import static io.vertx.workshop.portfolio.PortfolioService.EVENT_ADDRESS;
9 |
10 | /**
11 | * A verticle publishing the portfolio service.
12 | */
13 | public class PortfolioVerticle extends MicroServiceVerticle {
14 |
15 | @Override
16 | public void start() {
17 | super.start();
18 |
19 | // Create the service object
20 | PortfolioServiceImpl service = new PortfolioServiceImpl(vertx, discovery, config().getDouble("money", 10000.00));
21 |
22 | // Register the service proxy on the event bus
23 | ProxyHelper.registerService(PortfolioService.class, vertx, service, ADDRESS);
24 |
25 | // Publish it in the discovery infrastructure
26 | publishEventBusService("portfolio", ADDRESS, PortfolioService.class, ar -> {
27 | if (ar.failed()) {
28 | ar.cause().printStackTrace();
29 | } else {
30 | System.out.println("Portfolio service published : " + ar.succeeded());
31 | }
32 | });
33 |
34 | // TODO
35 | //----
36 |
37 | //----
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins.less:
--------------------------------------------------------------------------------
1 | // Mixins
2 | // --------------------------------------------------
3 |
4 | // Utilities
5 | @import "mixins/hide-text.less";
6 | @import "mixins/opacity.less";
7 | @import "mixins/image.less";
8 | @import "mixins/labels.less";
9 | @import "mixins/reset-filter.less";
10 | @import "mixins/resize.less";
11 | @import "mixins/responsive-visibility.less";
12 | @import "mixins/size.less";
13 | @import "mixins/tab-focus.less";
14 | @import "mixins/reset-text.less";
15 | @import "mixins/text-emphasis.less";
16 | @import "mixins/text-overflow.less";
17 | @import "mixins/vendor-prefixes.less";
18 |
19 | // Components
20 | @import "mixins/alerts.less";
21 | @import "mixins/buttons.less";
22 | @import "mixins/panels.less";
23 | @import "mixins/pagination.less";
24 | @import "mixins/list-group.less";
25 | @import "mixins/nav-divider.less";
26 | @import "mixins/forms.less";
27 | @import "mixins/progress-bar.less";
28 | @import "mixins/table-row.less";
29 |
30 | // Skins
31 | @import "mixins/background-variant.less";
32 | @import "mixins/border-radius.less";
33 | @import "mixins/gradients.less";
34 |
35 | // Layout
36 | @import "mixins/clearfix.less";
37 | @import "mixins/center-block.less";
38 | @import "mixins/nav-vertical-align.less";
39 | @import "mixins/grid-framework.less";
40 | @import "mixins/grid.less";
41 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/mixins.less:
--------------------------------------------------------------------------------
1 | // Mixins
2 | // --------------------------------------------------
3 |
4 | // Utilities
5 | @import "mixins/hide-text.less";
6 | @import "mixins/opacity.less";
7 | @import "mixins/image.less";
8 | @import "mixins/labels.less";
9 | @import "mixins/reset-filter.less";
10 | @import "mixins/resize.less";
11 | @import "mixins/responsive-visibility.less";
12 | @import "mixins/size.less";
13 | @import "mixins/tab-focus.less";
14 | @import "mixins/reset-text.less";
15 | @import "mixins/text-emphasis.less";
16 | @import "mixins/text-overflow.less";
17 | @import "mixins/vendor-prefixes.less";
18 |
19 | // Components
20 | @import "mixins/alerts.less";
21 | @import "mixins/buttons.less";
22 | @import "mixins/panels.less";
23 | @import "mixins/pagination.less";
24 | @import "mixins/list-group.less";
25 | @import "mixins/nav-divider.less";
26 | @import "mixins/forms.less";
27 | @import "mixins/progress-bar.less";
28 | @import "mixins/table-row.less";
29 |
30 | // Skins
31 | @import "mixins/background-variant.less";
32 | @import "mixins/border-radius.less";
33 | @import "mixins/gradients.less";
34 |
35 | // Layout
36 | @import "mixins/clearfix.less";
37 | @import "mixins/center-block.less";
38 | @import "mixins/nav-vertical-align.less";
39 | @import "mixins/grid-framework.less";
40 | @import "mixins/grid.less";
41 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/nuget/bootstrap.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | bootstrap
5 | 3.3
6 | Bootstrap CSS
7 | Twitter, Inc.
8 | bootstrap
9 | The most popular front-end framework for developing responsive, mobile first projects on the web.
10 | http://blog.getbootstrap.com
11 | Bootstrap framework in CSS. Includes fonts and JavaScript
12 | en-us
13 | http://getbootstrap.com
14 | http://getbootstrap.com/apple-touch-icon.png
15 | https://github.com/twbs/bootstrap/blob/master/LICENSE
16 | Copyright 2015
17 | false
18 |
19 |
20 |
21 | css js less mobile-first responsive front-end framework web
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/nuget/bootstrap.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | bootstrap
5 | 3.3
6 | Bootstrap CSS
7 | Twitter, Inc.
8 | bootstrap
9 | The most popular front-end framework for developing responsive, mobile first projects on the web.
10 | http://blog.getbootstrap.com
11 | Bootstrap framework in CSS. Includes fonts and JavaScript
12 | en-us
13 | http://getbootstrap.com
14 | http://getbootstrap.com/apple-touch-icon.png
15 | https://github.com/twbs/bootstrap/blob/master/LICENSE
16 | Copyright 2015
17 | false
18 |
19 |
20 |
21 | css js less mobile-first responsive front-end framework web
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/labels.less:
--------------------------------------------------------------------------------
1 | //
2 | // Labels
3 | // --------------------------------------------------
4 |
5 | .label {
6 | display: inline;
7 | padding: .2em .6em .3em;
8 | font-size: 75%;
9 | font-weight: bold;
10 | line-height: 1;
11 | color: @label-color;
12 | text-align: center;
13 | white-space: nowrap;
14 | vertical-align: baseline;
15 | border-radius: .25em;
16 |
17 | // Add hover effects, but only for links
18 | a& {
19 | &:hover,
20 | &:focus {
21 | color: @label-link-hover-color;
22 | text-decoration: none;
23 | cursor: pointer;
24 | }
25 | }
26 |
27 | // Empty labels collapse automatically (not available in IE8)
28 | &:empty {
29 | display: none;
30 | }
31 |
32 | // Quick fix for labels in buttons
33 | .btn & {
34 | position: relative;
35 | top: -1px;
36 | }
37 | }
38 |
39 | // Colors
40 | // Contextual variations (linked labels get darker on :hover)
41 |
42 | .label-default {
43 | .label-variant(@label-default-bg);
44 | }
45 |
46 | .label-primary {
47 | .label-variant(@label-primary-bg);
48 | }
49 |
50 | .label-success {
51 | .label-variant(@label-success-bg);
52 | }
53 |
54 | .label-info {
55 | .label-variant(@label-info-bg);
56 | }
57 |
58 | .label-warning {
59 | .label-variant(@label-warning-bg);
60 | }
61 |
62 | .label-danger {
63 | .label-variant(@label-danger-bg);
64 | }
65 |
--------------------------------------------------------------------------------
/solution/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/labels.less:
--------------------------------------------------------------------------------
1 | //
2 | // Labels
3 | // --------------------------------------------------
4 |
5 | .label {
6 | display: inline;
7 | padding: .2em .6em .3em;
8 | font-size: 75%;
9 | font-weight: bold;
10 | line-height: 1;
11 | color: @label-color;
12 | text-align: center;
13 | white-space: nowrap;
14 | vertical-align: baseline;
15 | border-radius: .25em;
16 |
17 | // Add hover effects, but only for links
18 | a& {
19 | &:hover,
20 | &:focus {
21 | color: @label-link-hover-color;
22 | text-decoration: none;
23 | cursor: pointer;
24 | }
25 | }
26 |
27 | // Empty labels collapse automatically (not available in IE8)
28 | &:empty {
29 | display: none;
30 | }
31 |
32 | // Quick fix for labels in buttons
33 | .btn & {
34 | position: relative;
35 | top: -1px;
36 | }
37 | }
38 |
39 | // Colors
40 | // Contextual variations (linked labels get darker on :hover)
41 |
42 | .label-default {
43 | .label-variant(@label-default-bg);
44 | }
45 |
46 | .label-primary {
47 | .label-variant(@label-primary-bg);
48 | }
49 |
50 | .label-success {
51 | .label-variant(@label-success-bg);
52 | }
53 |
54 | .label-info {
55 | .label-variant(@label-info-bg);
56 | }
57 |
58 | .label-warning {
59 | .label-variant(@label-warning-bg);
60 | }
61 |
62 | .label-danger {
63 | .label-variant(@label-danger-bg);
64 | }
65 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/nuget/bootstrap.less.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | bootstrap.less
5 | 3.3
6 | Bootstrap Less
7 | Twitter, Inc.
8 | bootstrap
9 | The most popular front-end framework for developing responsive, mobile first projects on the web.
10 | http://blog.getbootstrap.com
11 | Bootstrap framework in Less. Includes fonts and JavaScript
12 | en-us
13 | http://getbootstrap.com
14 | http://getbootstrap.com/apple-touch-icon.png
15 | https://github.com/twbs/bootstrap/blob/master/LICENSE
16 | Copyright 2015
17 | false
18 |
19 |
20 |
21 | css js less mobile-first responsive front-end framework web
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/compulsive-traders/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 |
8 | io.vertx.workshop
9 | vertx-microservice-workshop
10 | 1.0-SNAPSHOT
11 |
12 |
13 | compulsive-traders
14 |
15 |
16 | io.vertx.workshop.trader.impl.MainVerticle
17 |
18 |
19 |
20 |
21 | io.vertx.workshop
22 | portfolio-service
23 | ${project.version}
24 |
25 |
26 | io.vertx.workshop
27 | vertx-workshop-common
28 | ${project.version}
29 |
30 |
31 |
32 |
33 |
34 |
35 | maven-shade-plugin
36 |
37 |
38 |
39 | maven-dependency-plugin
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/trader-dashboard/src/main/resources/webroot/bower_components/bootstrap/less/jumbotron.less:
--------------------------------------------------------------------------------
1 | //
2 | // Jumbotron
3 | // --------------------------------------------------
4 |
5 |
6 | .jumbotron {
7 | padding-top: @jumbotron-padding;
8 | padding-bottom: @jumbotron-padding;
9 | margin-bottom: @jumbotron-padding;
10 | color: @jumbotron-color;
11 | background-color: @jumbotron-bg;
12 |
13 | h1,
14 | .h1 {
15 | color: @jumbotron-heading-color;
16 | }
17 |
18 | p {
19 | margin-bottom: (@jumbotron-padding / 2);
20 | font-size: @jumbotron-font-size;
21 | font-weight: 200;
22 | }
23 |
24 | > hr {
25 | border-top-color: darken(@jumbotron-bg, 10%);
26 | }
27 |
28 | .container &,
29 | .container-fluid & {
30 | border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container
31 | padding-left: (@grid-gutter-width / 2);
32 | padding-right: (@grid-gutter-width / 2);
33 | }
34 |
35 | .container {
36 | max-width: 100%;
37 | }
38 |
39 | @media screen and (min-width: @screen-sm-min) {
40 | padding-top: (@jumbotron-padding * 1.6);
41 | padding-bottom: (@jumbotron-padding * 1.6);
42 |
43 | .container &,
44 | .container-fluid & {
45 | padding-left: (@jumbotron-padding * 2);
46 | padding-right: (@jumbotron-padding * 2);
47 | }
48 |
49 | h1,
50 | .h1 {
51 | font-size: @jumbotron-heading-font-size;
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------