Comes in two flavors:
Dashboards must be configured for a certain dataset (i.e. campaign). This is done using the config.json. The repo has some examples of configuration files in the config directory. The config file is self-explanatory, take one of the examples and modify it to your needs and put it in the config dir.
To compile, we need to install npm and the npm packages jade, recess, and uglify-js. For Ubuntu:
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install node
sudo npm install -g jade recess uglify-js
Some build parameters can be configured by editing Makefile. By default the output dir is /var/www.
To build the included demo dashboards:
make CAMPAIGN=snackdemo
make CAMPAIGN=mediademo
To build the included live dashboards:
make CAMPAIGN=snack
make CAMPAIGN=media
make CAMPAIGN=litter
make CAMPAIGN=trash
make CAMPAIGN=holiday
make CAMPAIGN=nutrition
Below the steps to update the data of demo campaigns:
snackdemo.json and mediademo.json file, especially photo.thumb and photo.img properties. These must resolve to local or external locations of the pictures.data/snackdemo.csv and data/mediademo.csv, especially column names. Order of the columns is not important, but the exact name is.snackdemo.csv and mediademo.csv. Rename where necessary.photo.thumb and photo.img properties in the config file to point to the image server.The code in this respository is open-source and licensed under the Apache License, version 2.0. The full text of the license may be found at this link: http://www.apache.org/licenses/LICENSE-2.0.
Content type
Image
Digest
Size
20.2 MB
Last updated
almost 7 years ago
docker pull centerx/dashboard