Skip to content

frontful/frontful-queue-monitor

Repository files navigation

Frontful Queue Monitor

frontful-queue-monitor is job and task monitor for frontful-queue message queue micro service to overview and filter messages, view message details including its full state (as well as edit and resend messages in the future).

Configuration

Configuration is done by modifying [config.js](Configuration is done). config.js can be modified and replaced after production build.

  • common.api - frontful-queue API url e.g. http://localhost:7010/api by default.
  • common.utcOffset - Time offset in minutes for time to be rendered the same on server and client.
  • common.content - Text content keys and values, used to add mapping between job and task names to their descriptions.

Installation

# install yarn package manager
npm install yarn -g
# install dependencies
yarn install

Development

  1. Install dependencies
  2. yarn start to start application (http://localhost:7015 by default)
  3. Change code, application gets rebuilt and reloaded
  4. Ensure that frontful-queue service is running (http://localhost:7010 by default)

Deployment

  • yarn package to create .zip package.
  • Move .zip package to host environment, and extract its content.
  • Install dependencies
  • yarn build to build the service
  • To start the service
    • Linux - PORT=7015 HOST=localhost node ./build/server
    • Windows - ./node_modules/.bin/cross-env PORT=7015 HOST=localhost node ./build/server

HOST environment variable is used to signal server and browser on what hostname frontful-queue is running and can be accessed at.

Linux

On Linux use any deployment strategy e.g. started directly from console, using Nginx, Passenger etc.

Windows

On Windows you can either start service directly from console or install it as windows service.

./node_modules/.bin/cross-env PORT=7015 HOST=localhost yarn deploy

Releases

No releases published

Packages

No packages published