Skip to content

NPM module containing centralized functionality for connecting to services.

Notifications You must be signed in to change notification settings

greenchef/service-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Centralized functionality for connecting to services.

How To Include This Module

  1. cd to the directory you want to work in.
  2. npm login to login to npmjs from the terminal.
  3. Add the package to your package.json: npm install @greenchef/service-request --save
  4. Add the require statement to your files: require('@greenchef/service-request')

Using This Module

Agenda

var agenda = require('./lib/agenda');
var service = require('@greenchef/service-request');
return when(service.connectToAgenda('your-uri-here',agenda))
  .then(() => { ... });

Mongo

var service = require('@greenchef/service-request');
return when(service.connectToMongo('your-uri-here'))
  .then(() => { ... });

Request

var service = require('@greenchef/service-request');
return when(service.resolveRequest('your-uri-here'))
  .then(() => { ... });

More NPM info

https://confluence.greenchef.com/x/h418

About

NPM module containing centralized functionality for connecting to services.

Resources

Stars

Watchers

Forks

Packages

No packages published