$ sudo apt-get install nodejs npm
$ # on debian
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
$ git clone ...
$ nmp install
-
Edit dashboard.js, set
var dev = true;
. -
start json fetch in crontab
-
-
-
-
- /home/wunderlins/Projects/dashboard/fetch >/dev/null 2>&1
-
-
-
-
-
start dev webserver
$ export PATH="$PATH":node_modules/.bin/ $ npm start
- remove dev flag in dashboard.js
- in index.html, switch all css/js includes to min versions
- tar xzf ../dashboard-
VERSION
.tgz . - git tag RELEASE_
VERSION
- git push --tags