Code Monkey home page Code Monkey logo

biomaj-watcher's Introduction

biomaj-watcher

Web interface for biomaj (https://github.com/genouest/biomaj)

License

AGPL

Requirements

biomaj3

Javascript dependencies are downloaded help with bower (see next). Dependencies are listed in biomajwatcher/webapp/bower.json.

Build web app

Install npm (apt-get install npm/ yum install npm)

in biomajwatcher/webapp

npm install -g bower
bower install

Configuration

Configuration is done in development.ini or production.ini

global_properties = PATH_TO_BIOMAJ_global.properties

# List of user ids with admin priviledges.
# Users need to be create or be ldap users if ldap
# is configured in global.properties
admin = admin, jdoe

# Celery configuration over mongodb, mongodb url
BROKER_URL = mongodb://localhost/biomaj_celery

Install

python setup.py develop

Running

Development

pserve development.ini

Production

gunicorn -p /var/run/gunicorn_bmaj.pid --log-config=production.ini --paste production.ini &

Web server will start to listen on port 6543 by default. Update ini files to customize web configuration.

Background processing (Optional)

To allow banks update/removal by authenticated user, Celery is needed. Celery can run on same node, or multiple distant ones to execute bank updates.

pceleryd development.ini/production.ini

One can use flower to monitor celery.

User creation

python db/seed.py --config global.properties --user yyy --pwd xxxx

API / REST interface

The old API interface (/BmajWatcher/GET) is still available. A new REST interface is available but we kept the old one for compatibility for other tools. The old interface does not take advantage of the new features however.

Don't like the color? Need your logo?

You can easily customize the look of the watcher. Theme is pure CSS and CSS giles are available in directroy biomajwatcher/webapp/app/styles. CSS are based on Bootstrap 3. You may also need to override some directives from app.css according to your theme (font color...)

If you want to customize the theme, create a new theme CSS file (with an other name), and update the reference to "path_to_styles/theme.css" to your new file in biomajwatcher/webapp/app/index.html.

In index.html you can also add your logol, chnage header etc...

REST API

/bank  : list of banks
/bank/:id : details of bank
/bank/:id/status: current status of the bank
/bank/:id/config: properties of the bank
/bank/:id/log/:sessionid : log file of the session
/search: search in banks with GET parameter "q=query", query follows Lucene syntax
/search/format/:format: get banks having format
/search/type/:type: get banks having type
/search/format/:format/type/:type : get banks having format and type
/stat : get banks disk usage

Credits

Signin image from http://bootsnipp.com/snippets/featured/google-style-login

biomaj-watcher's People

Contributors

markiskander avatar osallou avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.