@rocketmakers/template-services
v0.1.4
Published
Suite of http enabled service classes to interact with a Rocketmakers template codebase
Downloads
4
Readme
@rocketmakers/template-services
Set of service classes required to manage Rocketmakers templates
Implementation
When using @rocketmakers/template-services
there are two options to register service classes with your ioc framework.
Option #1:
If you only want to register classes as needed, or inject alternative repository layers, you can bootstrap services as you would with any other class.
Option #2:
You can bootstrap template service classes using the exposed registerTemplateServiceIoC()
function by following the steps below. This will register all service classes, using injected git http template repository classes from @rocketmakers/template-http-repository
(you must install this as a dependency).
// Register types and repository classes from @rocketmakers/template-http-repository
registerTemplateRepositoryIoC({ rootTemplateRepoUrl, notifyServiceName });
// Register template types and services from @rocketmakers/template-services
registerTemplateServiceIoC();
Docs
Hosted docs covering types, interfaces and all service class/method signatures within this package can be found using the link below:
Source code
Source code for this package can be found using the link below:
Contributing docs can be found in the README.md