Starter workflow for creating self-signed PDF agreements. Check out the demo.
PactMaker collects form data and generates a signed PDF agreement between you and your users. Once generated, it emails the PDF using Postmark to your user and team. PactMaker is built with node.js, express, and EJS templating.
Create an environment variable file(.env
) in the project root with the following variables:
POSTMARK_SERVER_TOKEN=''
POSTMARK_FROM_ADDRESS=''
INTERNAL_EMAIL_RECIPIENTS=''
INTERNAL_EMAIL_SUBJECT=''
SIGNEE_EMAIL_SUBJECT=''
TITLE=''
Server tokens can be found under the credentials tab on your Postmark server.
The email address you want to send the email from. You must verify your domain or create a valid Sender Signature on Postmark.
Comma-separated list of email address you want to send the PDF agreement to.
The subject line of the email that gets sent to your team. Available variables: <%= company %>
, <%= name %>
, <%= role %>
, and <%= email %>
.
The subject line of the email that gets sent to the person who just signed the agreement. Available variables: <%= company %>
, <%= name %>
, <%= role %>
, and <%= email %>
.
The name of your company or app. This will appear on the page header and footer.
Before you get started make sure you create an environment variable file.
npm install
npm start
orheroku local
The email content for the signee and internal email can be found under /emails
. Templates are rendered using EJS. Available variables: <%= company %>
, <%= name %>
, <%= role %>
, and <%= email %>
.
The agreement PDF template can be found at /views/agreement.ejs
. PactMaker comes with basic styles for presenting different signatures.