Dulce-Work-Schedule/2018.1-Dulce_Schedule

View on GitHub
Server/schedule.js

Summary

Maintainability
A
1 hr
Test Coverage
var currentWeekNumber = require('current-week-number');

require('seneca')()
 .use("entity")
 .use('mongo-store',{
    name:process.env.MONGO_DATABASE,
    host:process.env.MONGO_HOST,
    port:process.env.MONGO_PORT
  })
 .use('seneca-amqp-transport')
 .use('plg_schedule')
 .listen({
    type:'amqp',
    pin:'role:schedule',
    port: process.env.RABBITMQ_PORT,
    username: process.env.RABBITMQ_DEFAULT_USER,
    password: process.env.RABBITMQ_DEFAULT_PASS,
    url: 'amqp://' + process.env.RABBITMQ_HOST,
})