Web interface for Surveil
Go to file
2015-04-20 15:37:44 -04:00
app FIX typo 2015-04-02 12:07:07 -04:00
container Change backend route to /surveil/ and bansho to / 2015-04-20 15:37:44 -04: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 FIX: Stop ajax queries on view change 2015-03-25 11:24:58 -04: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
dev_virtualenv Fix dev_virtualenv 2015-03-21 20:30:32 -04:00
Dockerfile Standalone docker image 2015-04-20 15:37:27 -04:00
Gruntfile.js Introduces promise manager 2015-03-31 16:51:47 -04:00
karma.conf.js Fix unit tests issues 2015-02-20 15:14:58 -05:00
LICENSE Add LICENSE 2015-02-10 17:02:26 -05:00
Makefile Reverse proxy for surveil API 2015-04-20 14:52:32 -04:00
package.json Add uglify to grunt tasks 2015-02-20 13:39:16 -05:00
readme.rst Update readme.rst 2015-03-30 15:36:06 -04: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
gem install sass

Dev

Load our dev virtualenv :

source dev_virtualenv

To compile css files run :

grunt sass

To compile js files run :

grunt uglify

If you wish to develop in a docker container, here is how to proceed (assuming you already have docker installed) :

make build
make daemon
curl http://localhost:8080/app

You must leave grunt running in the background to automatically compile css and minify/compress js files when source code changes

grunt

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:8080

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