Recollect - collect operational insights using RabbitMQ and ElasticSearch
npm install
Application is configured through environment variables (acording to The 12-Factor App) methodology.
Following envs are required
Name | Description | Example Value |
---|---|---|
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)
npm run build
npm run api
npm run consumer
docker-compose up -d