@@ -190,11 +176,4 @@ Run the application!
-
-
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/web/app/views/about/about.js b/web/app/views/about/about.js
new file mode 100644
index 00000000..88de9479
--- /dev/null
+++ b/web/app/views/about/about.js
@@ -0,0 +1,14 @@
+'use strict';
+
+angular.module('myApp.about', ['ngRoute'])
+
+.config(['$routeProvider', function($routeProvider) {
+ $routeProvider.when('/about', {
+ templateUrl: '/views/about/about.html',
+ controller: 'AboutController'
+ });
+}])
+
+.controller('AboutController', [function() {
+
+}]);
\ No newline at end of file
diff --git a/web/app/views/about/about_test.js b/web/app/views/about/about_test.js
new file mode 100644
index 00000000..07b34d6b
--- /dev/null
+++ b/web/app/views/about/about_test.js
@@ -0,0 +1,16 @@
+'use strict';
+
+describe('myApp.view2 module', function() {
+
+ beforeEach(module('myApp.view2'));
+
+ describe('view2 controller', function(){
+
+ it('should ....', inject(function($controller) {
+ //spec body
+ var view2Ctrl = $controller('View2Ctrl');
+ expect(view2Ctrl).toBeDefined();
+ }));
+
+ });
+});
\ No newline at end of file
diff --git a/web/app/views/home/home.html b/web/app/views/home/home.html
new file mode 100644
index 00000000..0eddc317
--- /dev/null
+++ b/web/app/views/home/home.html
@@ -0,0 +1,28 @@
+
Dashboard
+
All enabled currencies
+
+
{{exchange.exchangeName}}
+
+
+ | Currency |
+ Last |
+ High |
+ Low |
+ Volume |
+ Bid |
+ Ask |
+
+
+ | {{value.CryptoCurrency}} |
+ {{value.Last}} |
+ {{value.High}} |
+ {{value.Low}} |
+ {{value.Volume}} |
+ {{value.Bid}} |
+ {{value.Ask}} |
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/app/views/home/home.js b/web/app/views/home/home.js
new file mode 100644
index 00000000..d2412903
--- /dev/null
+++ b/web/app/views/home/home.js
@@ -0,0 +1,28 @@
+'use strict';
+
+angular.module('myApp.home', ['ngRoute'])
+
+.config(['$routeProvider', function($routeProvider) {
+ $routeProvider.when('/', {
+ templateUrl: '/views/home/home.html',
+ controller: 'HomeController'
+ });
+}])
+
+.controller('HomeController', function ($scope, $http) {
+ $scope.getDashboardData = function() {
+ $http({
+ method: 'GET',
+ url: '/data/all-enabled-currencies'
+ }).
+ success(function (data, status, headers, config) {
+ $scope.exchanges = data.data;
+ }).
+ error(function (data, status, headers, config) {
+ console.log('error');
+ });
+ };
+
+ $scope.getDashboardData();
+
+});
\ No newline at end of file
diff --git a/web/app/views/home/home_test.js b/web/app/views/home/home_test.js
new file mode 100644
index 00000000..14ba79b4
--- /dev/null
+++ b/web/app/views/home/home_test.js
@@ -0,0 +1,16 @@
+'use strict';
+
+describe('myApp.view1 module', function() {
+
+ beforeEach(module('myApp.view1'));
+
+ describe('view1 controller', function(){
+
+ it('should ....', inject(function($controller) {
+ //spec body
+ var view1Ctrl = $controller('View1Ctrl');
+ expect(view1Ctrl).toBeDefined();
+ }));
+
+ });
+});
\ No newline at end of file
diff --git a/web/bower.json b/web/bower.json
new file mode 100644
index 00000000..66d9d74e
--- /dev/null
+++ b/web/bower.json
@@ -0,0 +1,15 @@
+{
+ "name": "angular-seed",
+ "description": "A starter project for AngularJS",
+ "version": "0.0.0",
+ "homepage": "https://github.com/angular/angular-seed",
+ "license": "MIT",
+ "private": true,
+ "dependencies": {
+ "angular": "~1.5.0",
+ "angular-route": "~1.5.0",
+ "angular-loader": "~1.5.0",
+ "angular-mocks": "~1.5.0",
+ "html5-boilerplate": "^5.3.0"
+ }
+}
diff --git a/web/dashboard-contact.html b/web/dashboard-contact.html
deleted file mode 100644
index c66f754a..00000000
--- a/web/dashboard-contact.html
+++ /dev/null
@@ -1,49 +0,0 @@
-{{template "header" .}}
-
-
-
-{{template "footer" .}}
diff --git a/web/dashboard-marketdepth.html b/web/dashboard-marketdepth.html
deleted file mode 100644
index 9171689b..00000000
--- a/web/dashboard-marketdepth.html
+++ /dev/null
@@ -1,89 +0,0 @@
-{{template "header" .}}
-
-
-
-
-
-
-
-
-
-
-

-
Asset Allocation Pie Graph
-
Currencies owned and tracked.
-
-
-

-
Profit/Loss/Initial Pie Graph
-
Current portfolio health.
-
-
-

-
Exchanges Pie Graph
-
Based on current daily volume and analysis.
-
-
-

-
Market Capitalisation Pie Graph
-
In USD terms per deemed weighted currencies.
-
-
-
-
-
-
-
-
- | Exchange |
- LAST - BTC/USD |
- LAST - LTC/USD |
- LAST - BTC/LTC |
- |
-
-
-
-
- | SOMETHING HERE |
- SOMETHING HERE |
- SOMETHING HERE |
- SOMETHING HERE |
- SOMETHING HERE |
-
-
-
-
-
-
-
-{{template "footer" .}}
diff --git a/web/dashboard-ordermanagement.html b/web/dashboard-ordermanagement.html
deleted file mode 100644
index 66113ce1..00000000
--- a/web/dashboard-ordermanagement.html
+++ /dev/null
@@ -1,70 +0,0 @@
-{{template "header" .}}
-
-
-
-
-
-
-
-
-
-
Order Management Tools Go Here.
-
-
-
-
-
-
-
- | DATE/TIME |
- EXCHANGE |
- CURRENCIES USED |
- PROFIT LOSS |
- |
-
-
-
-
- | SOMETHING HERE |
- SOMETHING HERE |
- SOMETHING HERE |
- SOMETHING HERE |
- SOMETHING HERE |
-
-
-
-
-
-
-
-{{template "footer" .}}
diff --git a/web/dashboard-reports.html b/web/dashboard-reports.html
deleted file mode 100644
index ff1fe934..00000000
--- a/web/dashboard-reports.html
+++ /dev/null
@@ -1,89 +0,0 @@
-{{template "header" .}}
-
-
-
-
-
-
-
-
-
-
-

-
Asset Allocation Pie Graph
-
Currencies owned and tracked.
-
-
-

-
Profit/Loss/Initial Pie Graph
-
Current portfolio health.
-
-
-

-
Exchanges Pie Graph
-
Based on current daily volume and analysis.
-
-
-

-
Market Capitalisation Pie Graph
-
In USD terms per deemed weighted currencies.
-
-
-
-
-
-
-
-
- | Trade Execution date |
- Trade Exchange |
- Trade Type |
- Initial Investment |
- PROFIT/LOSS |
-
-
-
-
- | SOMETHING HERE |
- SOMETHING HERE |
- SOMETHING HERE |
- SOMETHING HERE |
- SOMETHING HERE |
-
-
-
-
-
-
-
-{{template "footer" .}}
diff --git a/web/dashboard-settings.html b/web/dashboard-settings.html
deleted file mode 100644
index e0d8b562..00000000
--- a/web/dashboard-settings.html
+++ /dev/null
@@ -1,44 +0,0 @@
-{{template "header" .}}
-
-
-
-{{template "footer" .}}
diff --git a/web/e2e-tests/protractor.conf.js b/web/e2e-tests/protractor.conf.js
new file mode 100644
index 00000000..13c5cb62
--- /dev/null
+++ b/web/e2e-tests/protractor.conf.js
@@ -0,0 +1,22 @@
+//jshint strict: false
+exports.config = {
+
+ allScriptsTimeout: 11000,
+
+ specs: [
+ '*.js'
+ ],
+
+ capabilities: {
+ 'browserName': 'chrome'
+ },
+
+ baseUrl: 'http://localhost:8000/',
+
+ framework: 'jasmine',
+
+ jasmineNodeOpts: {
+ defaultTimeoutInterval: 30000
+ }
+
+};
diff --git a/web/e2e-tests/scenarios.js b/web/e2e-tests/scenarios.js
new file mode 100644
index 00000000..240d5f61
--- /dev/null
+++ b/web/e2e-tests/scenarios.js
@@ -0,0 +1,42 @@
+'use strict';
+
+/* https://github.com/angular/protractor/blob/master/docs/toc.md */
+
+describe('my app', function() {
+
+
+ it('should automatically redirect to /view1 when location hash/fragment is empty', function() {
+ browser.get('index.html');
+ expect(browser.getLocationAbsUrl()).toMatch("/view1");
+ });
+
+
+ describe('view1', function() {
+
+ beforeEach(function() {
+ browser.get('index.html#!/view1');
+ });
+
+
+ it('should render view1 when user navigates to /view1', function() {
+ expect(element.all(by.css('[ng-view] p')).first().getText()).
+ toMatch(/partial for view 1/);
+ });
+
+ });
+
+
+ describe('view2', function() {
+
+ beforeEach(function() {
+ browser.get('index.html#!/view2');
+ });
+
+
+ it('should render view2 when user navigates to /view2', function() {
+ expect(element.all(by.css('[ng-view] p')).first().getText()).
+ toMatch(/partial for view 2/);
+ });
+
+ });
+});
diff --git a/web/error.html b/web/error.html
deleted file mode 100644
index 3a89b218..00000000
--- a/web/error.html
+++ /dev/null
@@ -1,37 +0,0 @@
-{{template "header" .}}
-
-
-
-
-
-
-
-
-
-
-
ERROR
-
The error {{.Error}} has occured.
-
-
-
-
-
-
-
-
-
-
-
-
-
-{{template "footer" .}}
diff --git a/web/favicon.ico b/web/favicon.ico
deleted file mode 100644
index 2216206f..00000000
Binary files a/web/favicon.ico and /dev/null differ
diff --git a/web/footer.html b/web/footer.html
deleted file mode 100644
index 37bdaade..00000000
--- a/web/footer.html
+++ /dev/null
@@ -1,4 +0,0 @@
-{{define "footer"}}
-