Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

hirmeos/metrics_broker

Repository files navigation

Metrics Broker

Build Status Dependencies DevDependencies

A dashboard to control metrics drivers.

Usage

First we need to define the URLs of the APIs in var.env; a template can be found in var.env.example.

Production

Using docker:

docker-compose build
docker-compose up -d

Or manually:

npm install
npm run build

Development

Using docker:

docker-compose -f docker-compose.dev.yml build
docker-compose -f docker-compose.dev.yml up -d

Or manually:

npm install
npm start

Testing

Tests are automatically run upon build, however they can also be run manually:

npm run test:all

Code consistency

In order to keep a consitent coding style, not just aesthetically, but also syntactically, two libraries are being used: eslint and prettier.

Both libraries can be run using lint-staged before a commit:

npm run precommit

Or individually:

npm run lint
npm run prettier

Eslint's configuration is defined in .eslintrc.js, prettier's in .prettierrc.

NB. For development purposes it is recommended to install all dependencies (npm install) - husky will automatically configure a hook to trigger npm run precommit automatically upon commit. However, the app should still be run in a container, to ensure that it works in an isolated environment.

Further reading

The Metrics Broker is based in Ant Design Pro 2.0, a React UI library powered by UmiJS - in order to understand the architecture of the code it is recommended that you go through both documentations.

About

A dashboard to control metrics drivers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages