Barthelemy / InfoLoggerGui

InfoLogger web application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InfoLoggerGui

Web app for querying infoLogger database and streaming logs in real-time with filtering.

$ git clone ...
$ create ssl keys, configure config.js
$ npm install
$ npm start
Command Result
npm start start app in production mode
npm run dev start app in dev mode with auto-restart on file change
npm run test will run eslint, mocha and qunit
npm run doc build the doc in docs/API.md
npm run coverage report coverage of tests

Before starting the InfoLoggerGui (which is a server/client view), you should have a InfoLoggerServer and MySQL running (which store the logs) and configured in config.js, all this can be found here: https://github.com/AliceO2Group/InfoLogger/blob/master/doc/README.md

Compatibility

All browsers, starting from IE 12 (Edge)

How to develop

Generating SSL key

It generates two files without pass phrase.

$ mkdir cert $ openssl req -nodes -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365

Working with remote MariaSQL server

During development you can use SSH Tunnels to use a distant SQL server without opening him to the world which is a security issue cause of bruteforce.

$ ssh -L 3306:127.0.0.1:3306 user@remote

Configuration

The content of config.js must be as follow

TODO: table here, waiting first prototype to be finished

Insert fake data into MySQL and check them

$ mysql -u root -p INFOLOGGER < logs.sql
$ mysql
$ use INFOLOGGER;
$ select * from messages limit 10;

About

InfoLogger web application

License:GNU General Public License v3.0


Languages

Language:JavaScript 91.5%Language:CSS 4.8%Language:Smarty 3.7%