Use this module as a starting-place scaffold for LeadConduit integrations. It includes standard structure and example code for both inbound and outbound integrations.
Note: this is a source-only repository. It should never be published as a package to npm.
The init.sh
script can be used to initialize a new integration module based
on this template. It takes one parameter: the quoted name of the service being
integrated with (e.g., "SendGrid" or "Amazon Web Services"). This will:
- create the conventionally-named directory at the same level as this template repo (i.e., at
../
) - initialize a
git
repo, including a dummyREADME
and a new working branch calledinit
- copy all the source files into there
- (roughly) customize the copied source with the real service name
For example:
urprompt> pwd
/Users/me/src/leadconduit-integration-template # this repo's dir
urprompt> ./init.sh "America Online"
Initialized empty Git repository in /Users/me/src/leadconduit-integration-america-online/.git/
[master (root-commit) cc59218] initialize repo
1 file changed, 1 insertion(+)
create mode 100644 README.md
Switched to a new branch 'init'
/Users/me/src/leadconduit-integration-template
.eslintrc.js -> ../leadconduit-integration-america-online/.eslintrc.js
.gitignore -> ../leadconduit-integration-america-online/.gitignore
# etc., for a bunch of files
At this point you should be able to successfully run npm install
and npm test
in the new directory. Remove whatever code isn't needed for the new integration
and customize as needed.
Delete this line and everything above when your integration module is ready to publish.
This module is for use on the LeadConduit platform, to integrate with Service_Being_Integrated.