Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 1.3 KB

README.md

File metadata and controls

48 lines (40 loc) · 1.3 KB

Recollect

Recollect - collect operational insights using RabbitMQ and ElasticSearch

Install

npm install

Configure

Application is configured through environment variables (acording to The 12-Factor App) methodology.
Following envs are required

Name Description Example Value
APP_PORT App's http port 3000
RABBITMQ_URL RabbitMQ url amqp://rabbitmq
QUEUE_NAME RabbitMQ queue name event
BASE_QUEUE_NAME RabbitMQ base queues names recollect
ES_URL ElasticSearch url http://elasticsearch
ES_INDEX ElasticSearch index name recollect

You can store all those envs in a file, and then export all of them at once:

export $(cat config.env)

Run

NPM

npm run build
npm run api
npm run consumer

docker-compose

docker-compose up -d

Related resources