The Navigator Sample App showcases how the Navigator API (beta) can be used to get agreement details.
Before you begin, ensure you have the following installed:
- Node.js (v14.x or later)
- npm (v6.x or later)
- A Docusign developer account
- Download or clone this repository to your workstation in a new folder named sample-app-navigator-node.
- Navigate to that folder:
cd sample-app-navigator-node
- 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
- If you don't already have one, create a free developer account.
- Log in to your developer account and navigate to Apps and Keys.
- Select Add App and Integration Key.
- Create a new integration that is configured to use JSON Web Token (JWT) Grant and Authorization Code Grant (ACG).
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 redirect URIs for your app:
- 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.
- Do the same with the .env.example file in the
server
directory. - Rename the example.private.key file in the
server/config
directory to private.key, and paste your complete private RSA key into this file (including the header and footer of the key). This should be the private RSA key you should have gotten when you created your integration key.
- In one terminal, navigate to the server folder (cd server) and run npm start
- In a separate terminal, navigate to the client folder (cd client) and run npm start
- Open a browser to http://localhost:3000