Web interface for Surveil
Go to file
OpenDev Sysadmins 0f4bdef7c5 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:43 +00:00
app Clean config.js and remove container 2015-08-26 16:45:55 -04:00
container Added 'N' option is getopt 2015-08-20 10:47:53 -04:00
debian Update packaging 2015-05-26 16:14:52 -04:00
e2e-tests First commit based on angular-seed 2014-12-16 17:05:07 -05:00
.bowerrc Container: From npm to apache 2015-04-20 17:20:36 -04:00
.dockerignore Made container configurable 2015-04-23 10:51:43 -04:00
.gitignore Remove adagios backend 2015-05-20 13:25:16 -04:00
.gitreview OpenDev Migration Patch 2019-04-19 19:50:43 +00: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
Dockerfile Surveil - New default port: 5311 2015-07-03 10:58:49 -04:00
Gruntfile.js Font awesome available in production 2015-08-19 14:36:29 +00:00
LICENSE Add LICENSE 2015-02-10 17:02:26 -05:00
Makefile Ignore errors on 'make remove' 2015-07-16 12:14:14 -04:00
README.rst Remove adagios backend 2015-05-20 13:25:16 -04:00
bower.json Begin to integrate angular-material (on table component) 2015-06-26 18:46:40 -04:00
dev_virtualenv Fix dev_virtualenv 2015-03-21 20:30:32 -04:00
karma.conf.js Fix unit tests issues 2015-02-20 15:14:58 -05:00
package.json Fix pnotify css import 2015-06-18 15:59:51 -04:00

README.rst

Bansho

Web Interface for Surveil

Bansho interface picture

Production

sudo apt-get install docker.io
git clone https://github.com/stackforge/bansho
cd bansho
make build
make production

You can alternatively forge a Docker command to select your port.

Development

Clone project :

git clone https://github.com/stackforge/bansho
cd bansho

Install development dependencies :

sudo apt-get install npm nodejs-legacy ruby docker.io
npm install grunt-cli bower
npm install
bower install
gem install sass
make build

Start the Docker container (be sure to have a surveil container available at this link: https://github.com/stackforge/surveil )

make daemon

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

curl http://localhost:8888/

To only compile sass files to css run :

grunt sass

Coding style

This project conforms to JSLint coding style (http://github.com/douglascrockford/JSLint). Run the linter as follows:

grunt jshint

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/app/

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/bansho
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 bansho
  • Make sure your controllers are suffixed with Ctrl
  • Resolve merge conflicts locally