Web interface for Surveil
app | ||
container | ||
e2e-tests | ||
.bowerrc | ||
.gitignore | ||
.jshintrc | ||
.travis.yml | ||
bower.json | ||
Gruntfile.js | ||
karma.conf.js | ||
LICENSE | ||
Makefile | ||
package.json | ||
readme.rst |
Adagios FrontEnd
Installation
sudo apt-get install npm nodejs-legacy
git clone https://github.com/titilambert/adagios-frontend.git
cd adagios-frontend
npm install
Dev
To watch for sass files change and auto-refresh css run :
npm install grunt-cli
grunt
If you wish to develop in a docker container, here is how to proceed (assuming you already have docker installed) :
sed -i "s/localhost/0.0.0.0/" package.json
make build
make run
curl http://localhost/app
Coding style ===========
This project conforms to JSLint coding style (http://github.com/douglascrockford/JSLint). Run the linter as follows:
grunt jslint
Tests
AngularJS comes with Karma which is an automatic unit test runner. While running, Karma automatically executes the tests when any js file changes. To launch Karma :
npm test
Launch
npm start
Now, go on http://127.0.0.1:8000