Git Product home page Git Product logo

malhar-dashboard-webapp's Introduction

malhar-dashboard-webapp

Build Status

Dashboard Web Application

Online Demo

AngularJS Dashboard

Dependencies

Dashboard Directive

Widget Library

Dependencies

Running Application (minimum dependencies)

  1. Node.js way

Install express

   $ npm install express

Run Node.js server

   $ node app.js

Application will be available at http://localhost:3000.

  1. Simple web server way

Start any web server in "dist" directory, e.g. with Python

   $ python -m SimpleHTTPServer 8080

Application will be available at http://localhost:8080

In both cases static files (including bundled JS/CSS) will be served from "dist" directory.

Running Application (development mode)

Install dependencies:

   $ npm install

Install Bower dependencies:

   $ bower install

Run Grunt server task:

   $ grunt server

Application will be available at http://localhost:9000

Building Application

Application is built with Grunt.

   $ npm install -g grunt-cli
   $ grunt

Contributing

This project welcomes new contributors.

You acknowledge that your submissions to DataTorrent on this repository are made pursuant the terms of the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html) and constitute "Contributions," as defined therein, and you represent and warrant that you have the right and authority to do so.

When adding new javascript files, please prepend the Apache v2.0 license header, which can be found in CONTRIBUTING.md file.

Links

malhar-angular-dashboard AngularJS Dashboard directive.

malhar-angular-widgets Widget library.

Node.js Software platform built on JavaScript runtime

AngularJS JavaScript framework

ui-sortable AngularJS UI Sortable

jQuery UI Sortable jQuery UI Sortable plugin (reordering with drag and drop)

Bower Package manager for the web

Grunt JavaScript Task Runner

Yeoman Webapp generator

DDP Meteor Distributed Data Protocol

Meteor-DDP Meteor DDP Javascript client

malhar-dashboard-webapp's People

Contributors

andyperlitch avatar nickholub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

malhar-dashboard-webapp's Issues

unable to run the application

Error: [$injector:unpr] Unknown provider: $templateRequestProvider <- $templateRequest <- $route <- ngViewDirective

Getting above error when trying to host the web application.tried all the suggested options to resolve the above issue but unable to resolve it.

Trying to run malhar dashboard webapp on local [Windows 7]

Hello everybody,

When using grunt command I get the following error:-

D:\test\malhar-dashboard-webapp>grunt
Running "jshint:all" (jshint) task

15 files lint free.

Running "clean:server" (clean) task
Cleaning .tmp...OK

Running "concurrent:test" (concurrent) task

Running "coffee:dist" (coffee) task

Running "coffee:test" (coffee) task

Done, without errors.

Running "copy:styles" (copy) task
Copied 1 files

Done, without errors.

Running "autoprefixer:dist" (autoprefixer) task
File ".tmp/styles/main.css" created.

Running "connect:test" (connect) task
Started connect web server on 127.0.0.1:9000.

Running "karma:unit" (karma) task
INFO [karma]: Karma v0.10.10 server started at http://localhost:8080/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 48.0.2564 (Windows 7)]: Connected on socket KAbyQhw16zaH8rb4JFpZ
Chrome 48.0.2564 (Windows 7) Controller: MainCtrl should be defined FAILED
Error: [$injector:modulerr] Failed to instantiate module ngMock due to:
Error: [$injector:unpr] Unknown provider: $$asyncCallbackProvider
http://errors.angularjs.org/1.5.0/$injector/unpr?p0=%24%24asyncCallbackP
rovider
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:68:12
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:4397:19
at Object.getService [as get](D:/test/malhar-dashboard-webapp/app/b
ower_components/angular/angular.js:4550:39)
at Object.decorator (D:/test/malhar-dashboard-webapp/app/bower_compo
nents/angular/angular.js:4472:41)
at D:/test/malhar-dashboard-webapp/app/bower_components/angular-mock
s/angular-mocks.js:1947:12
at Object.invoke (D:/test/malhar-dashboard-webapp/app/bower_componen
ts/angular/angular.js:4604:19)
at runInvokeQueue (D:/test/malhar-dashboard-webapp/app/bower_compone
nts/angular/angular.js:4497:35)
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:4506:11
at forEach (D:/test/malhar-dashboard-webapp/app/bower_components/ang
ular/angular.js:321:20)
at loadModules (D:/test/malhar-dashboard-webapp/app/bower_components
/angular/angular.js:4487:5)
http://errors.angularjs.org/1.5.0/$injector/modulerr?p0=ngMock&p1=Error%
3A%20%5B%24injector%3Aunpr%5D%20Unknown%20provider%3A%20%24%24asyncCallbackProvi
der%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.0%2F%24injector%2Funpr%3Fp0%3D%252
4%2524asyncCallbackProvider%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fb
ase%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3F1455466129714%3A68%3A12%0A
%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_components%2
Fangular%2Fangular.js%3F1455466129714%3A4397%3A19%0A%20%20%20%20at%20Object.getS
ervice%20%5Bas%20get%5D%20(http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_co
mponents%2Fangular%2Fangular.js%3F1455466129714%3A4550%3A39)%0A%20%20%20%20at%20
Object.decorator%20(http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_component
s%2Fangular%2Fangular.js%3F1455466129714%3A4472%3A41)%0A%20%20%20%20at%20http%3A
%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_components%2Fangular-mocks%2Fangular
-mocks.js%3F1455465027396%3A1947%3A12%0A%20%20%20%20at%20Object.invoke%20(http%3
A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3
F1455466129714%3A4604%3A19)%0A%20%20%20%20at%20runInvokeQueue%20(http%3A%2F%2Flo
calhost%3A8080%2Fbase%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3F14554661
29714%3A4497%3A35)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp
%2Fbower_components%2Fangular%2Fangular.js%3F1455466129714%3A4506%3A11%0A%20%20%
20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_componen
ts%2Fangular%2Fangular.js%3F1455466129714%3A321%3A20)%0A%20%20%20%20at%20loadMod
ules%20(http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_components%2Fangular%
2Fangular.js%3F1455466129714%3A4487%3A5)
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:68:12
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:4526:15
at forEach (D:/test/malhar-dashboard-webapp/app/bower_components/ang
ular/angular.js:321:20)
at loadModules (D:/test/malhar-dashboard-webapp/app/bower_components
/angular/angular.js:4487:5)
at Object.createInjector [as injector](D:/test/malhar-dashboard-web
app/app/bower_components/angular/angular.js:4409:19)
at workFn (D:/test/malhar-dashboard-webapp/app/bower_components/angu
lar-mocks/angular-mocks.js:2464:52)
Expected undefined to be defined.
Error: Expected undefined to be defined.
at null. (D:/test/malhar-dashboard-webapp/test/spec/contr
ollers/main.js:20:22)
Chrome 48.0.2564 (Windows 7): Executed 1 of 1 (1 FAILED) ERROR (1.004 secs / 0.1
secs)
Warning: Task "karma:unit" failed. Use --force to continue.

Here is the code of my main.js file

'use strict';

describe('Controller: MainCtrl', function () {

// load the controller's module
beforeEach(module('app'));

var MainCtrl,
scope;

// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
MainCtrl = $controller('MainCtrl', {
$scope: scope
});
}));

it('should be defined', function () {
expect(MainCtrl).toBeDefined();
});
});

Aborted due to warnings.

Any help would be appreciated.

routes are missing

Perhaps they were left out on purpose? But you can't start up the app without the routes-

unable to run the application (minimum dependencies)

followed the steps, also did npm install, but got this error every time I send a request:

Express server listening on port 3000
GET / 304 7ms
GET /settings.js 200 2ms - 397b
GET /styles/574cd7c6.main.css 404 6ms
GET /scripts/3d8ef89e.modules.js 404 3ms
GET /scripts/2e720eb8.scripts.js 404 2ms

Error in RandomBaseDataModel.angular.extend.init

Good Afternoon,

I just download and setup the dashboard. I run it and generally speaking it works fine.

However, the wt-line-chart is giving me problems. It does not render and it throws a javascript error.

TypeError: Cannot read property 'change' of undefined
at RandomBaseDataModel.angular.extend.init (http://127.0.0.1:9000/bower_components/malhar-angular-widgets/dist/malhar-angular-widgets.js:50:45)
at RandomBaseDataModel.RandomTimeSeriesDataModel.init (http://127.0.0.1:9000/bower_components/malhar-angular-widgets/dist/malhar-angular-widgets.js:132:42)
at link (http://127.0.0.1:9000/bower_components/malhar-angular-dashboard/dist/angular-ui-dashboard.js:483:14)
at nodeLinkFn (http://127.0.0.1:9000/bower_components/angular/angular.js:6676:13)
at compositeLinkFn (http://127.0.0.1:9000/bower_components/angular/angular.js:6070:13)
at publicLinkFn (http://127.0.0.1:9000/bower_components/angular/angular.js:5966:30)
at boundTranscludeFn (http://127.0.0.1:9000/bower_components/angular/angular.js:6090:21)
at controllersBoundTransclude (http://127.0.0.1:9000/bower_components/angular/angular.js:6697:18)
at ngRepeatAction (http://127.0.0.1:9000/bower_components/angular/angular.js:20502:15)
at Object.$watchCollectionAction as fn

I track the issue to the bower_components/malhar-angular-widgets. I check the version version of angular.js in bower_components/angular and compare with the last version in git and everything is correct.

Could you please take a look and guide how to solve this issue.

I really like the dashboard that you create. Very clean and nice job.

Launch socket erver

WebSocket connection to 'ws://localhost:9090/pubsub' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

No socket server seams to be provided with solution.

less.js error

Running "less:development" (less) task

TypeError: tree.css is not a function
at minify (/home/anupam/malhar-dashboard-webapp/node_modules/grunt-contrib-less/tasks/less.js:152:17)
at /home/anupam/malhar-dashboard-webapp/node_modules/grunt-contrib-less/tasks/less.js:129:15
at Object.finish [as _finish] (/home/anupam/malhar-dashboard-webapp/node_modules/less/lib/less/parser.js:669:28)
at Object.subFinish [as _finish] (/home/anupam/malhar-dashboard-webapp/node_modules/less/lib/less/import-visitor.js:63:47)
at Object.subFinish [as _finish] (/home/anupam/malhar-dashboard-webapp/node_modules/less/lib/less/import-visitor.js:63:47)
at Object.tree.importVisitor.run (/home/anupam/malhar-dashboard-webapp/node_modules/less/lib/less/import-visitor.js:25:22)
at /home/anupam/malhar-dashboard-webapp/node_modules/less/lib/less/import-visitor.js:72:38
at fileParsedFunc (/home/anupam/malhar-dashboard-webapp/node_modules/less/lib/less/parser.js:83:17)
at /home/anupam/malhar-dashboard-webapp/node_modules/less/lib/less/parser.js:106:29
at finish (/home/anupam/malhar-dashboard-webapp/node_modules/less/lib/less/parser.js:669:28)
at Object.Parser.parser.parse [as parse] (/home/anupam/malhar-dashboard-webapp/node_modules/less/lib/less/parser.js:677:24)
at /home/anupam/malhar-dashboard-webapp/node_modules/less/lib/less/parser.js:105:50
at handleDataAndCallCallback (/home/anupam/malhar-dashboard-webapp/node_modules/less/lib/less/index.js:154:9)
at /home/anupam/malhar-dashboard-webapp/node_modules/less/lib/less/index.js:223:33
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)
Warning: Error compiling .tmp/styles/main.less Used --force, continuing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.