This is an app for setting up the complete integration guide.
Tenants Agreement demonstrates the following:
- Authentication with Docusign via JSON Web Token (JWT) Grant.
- Sent Agreement for Sigining: The can send an agreement for signing by mentioning the contact information and placing Docusign Tabs on the agreement. You can also check the status of the agreement using check status page.
Features in this use case:
- Sender View
- Remote signing
- Webhooks
Before you can run this app on your local machine, you must first create a new integration with a Docusign developer account.
- If you don't already have one, create a free developer account.
- Log into your developer account, and navigate to My Apps & Keys.
- Select Add App and Integration Key.
- Create a new integration that is configured to use JSON Web Token (JWT) Grant.
You will need the integration key itself and its RSA key pair. To use this application, you must add your application's Redirect URI to your integration key. See our video, Creating an Integration Key for JWT Authentication for a demonstration of how to create an integration key (client ID) for a user application like this example.
- Save the integration key and private RSA key pair somewhere safe as you will need these later.
- Add the following as redirect URIs for your app:
- A free Docusign developer account.
- Integration key and corresponding RSA key pair from the integration you created above.
- Node.js v14+
- Download or clone this repository to your workstation in a new folder named Blog-Tenant-App.
- Navigate to that folder:
cd Blog-Tenant-App
- Navigate to the client folder:
cd client
- Install dependencies using the npm package manager:
npm install
- Navigate to the server folder:
cd ../server
- Install dependencies:
npm install
- Rename the .env_example file in the root directory to .env, and update the file with the integration key and other settings.
Note: Protect your integration key and client secret. You should make sure that the .env file will not be stored in your source code repository.
- Rename the example_private.key file to private.key, and paste your complete private RSA key into this file (including the header and footer of the key).
- Navigate to the application folder:
cd Blog-Tenant-App
- Navigate to the server folder:
cd server
- To start the server and client at the same time:
npm run dev
- Or, to run the server and client separately:
- In one terminal, navigate to the server folder (
cd server
) and runnpm run server
- In a separate terminal, navigate to the client folder (
cd client
) and runnpm start
- In one terminal, navigate to the server folder (
- Open a browser to http://localhost:3000
This repository uses the MIT License. See the LICENSE file for more information.