Web interface for Surveil
Go to file
2015-02-06 16:05:38 -05:00
app Refactor : Config module is more generic 2015-02-06 16:05:38 -05:00
container Add all-interface-listen to supervisor's npm start rather than in package.json 2015-02-02 11:54:14 -05:00
e2e-tests First commit based on angular-seed 2014-12-16 17:05:07 -05:00
.bowerrc First commit based on angular-seed 2014-12-16 17:05:07 -05:00
.gitignore Merge branch 'master' of github.com:titilambert/adagios-frontend 2015-01-22 14:19:10 -05:00
.jshintrc First commit based on angular-seed 2014-12-16 17:05:07 -05:00
.travis.yml First commit based on angular-seed 2014-12-16 17:05:07 -05:00
bower.json Add moments.js to project 2015-01-30 14:02:06 -05:00
Gruntfile.js Added global variables to JSLint configuration 2015-02-03 11:51:32 -05:00
karma.conf.js Table first draft 2015-01-20 14:29:10 -05:00
LICENSE First commit based on angular-seed 2014-12-16 17:05:07 -05:00
Makefile Update readme and Makefile for run --> interactive/daemon 2015-01-23 16:34:28 -05:00
package.json Add missing devDependencies 2015-01-20 15:27:39 -05:00
readme.rst Update readme and Makefile for run --> interactive/daemon 2015-01-23 16:34:28 -05:00

Adagios FrontEnd

Installation

sudo apt-get install npm nodejs-legacy ruby
git clone https://github.com/titilambert/adagios-frontend.git
cd adagios-frontend
npm install
npm install grunt-cli
gem install sass

Dev

To watch for sass files change and auto-refresh css run :

grunt

To compile css files run :

grunt sass

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 daemon
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

Contributing

To contribute to this project, please fork the repo. Then do your commits (branch as you will) and then open a pull-request to this repo's master branch.

<fork this repo on github>
git clone your-repo/adagios-frontend
git checkout -b dev-new-feature-xx
git commit ...
git push origin dev-new-feature-xx
<You can now open your pull-request to this repo's master>

Good practices before opening a pull request:

  • Run tests with npm test
  • Lint your .js files with grunt jslint
  • Make sure your directives are prefixed with adg
  • Make sure your controllers are suffixed with Ctrl
  • Resolve merge conflicts locally