Skip to content

docusign/sample-app-mywebforms-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MyWebForms Sample Application: React

Introduction

MyWebForms App sample app is to provide ISV developers with a practical example of how to sign documents using web forms with focused view and embedded signing. The application is Single Page Application leveraging the C# Docusign SDK. The SPA is created using React.js and .Net Web API. You can find a live instance at https://mywebforms.sampleapps.docusign.com.

MyWebForms demonstrates the following:

  1. Authentication with Docusign via JWT Grant.

  2. Personal Loan:

    Docusign Features:

    • Web Forms
    • Single signer
    • Templates
    • Focused view
  3. Auto Loan:

    Docusign Features:

    • Web Forms
    • Multiple signers
    • Embedded signing
    • Templates
  4. Sailboat Loan:

    Docusign Features:

    • Web Forms
    • Templates
    • Auto-place (anchor) positioning
    • Embedded signing

Prerequisites

  • Create a Docusign Developer Account.
  • Create an application on the Apps and Keys page.
  • Press "GENERATE RSA" and save the generated key pairs (it will be used later in "Settings configuration" section to configure "private.key")
  • Installed and configured Node.js
  • Installed and configured Docker
  • Installed and configured .Net 7.0
  • Add all templates from folder 'Templates' to your account
  • Add all web form configurations from folder 'WebForms' to your account

Settings configuration

Create a copy of the file appsettings-example.json, save the copy as appsettings.json, and fill in the data:

  • {IntegrationKey} - integration key of the application created in section "Create an application on the Apps and Keys page" above (string)
  • Save generate private RSA key (section "Prerequisites") to the file \sample-app-MyWebForms-csharp\Docusign.MyWebForms\Docusign.MyWebForms\private.key
  • {UserId} - ID of the test user
  • {AccountId} - ID of the account that is connected to the test user
  • {RedirectUri} - Internal redirection URL that is used during the embedded signing process. To run the app locally this should be "http://localhost:5000/sign/completed"
  • {PersonalLoanTemplateName} - The name for personal loan template which should be used when adding template to your account
  • {AutoLoanTemplateName} - The name for auto loan template which should be used when adding template to your account
  • {SailboatLoanTemplateName} - The name for sailboat loan template which should be used when adding template to your account

Local installation instructions (without Docker)

  1. Clone the git repository to your local machine
  2. Make the Settings configuration described above
  3. Open a terminal and navigate to \sample-app-MyWebForms-csharp\Docusign.MyWebForms\Docusign.MyWebForms\ClientApp folder
  4. Install required client application packages running the following command in the terminal:
    npm install
    
  5. Start the client application running the following command in the terminal:
    npm start
    
  6. Open a new terminal and navigate to \sample-app-MyWebForms-csharp\Docusign.MyWebForms
  7. Build the .Net solution:
    dotnet build --configuration Debug
    
  8. Start the .NET application:
    dotnet run --project .\Docusign.MyWebForms\Docusign.MyWebForms.csproj --configuration Debug
    
  9. Open a browser to localhost:5000 (if the page is not opened automatically).

Local installation instructions (using Docker)

  1. Clone the git repository to your local machine

  2. Make the Settings configuration described above

  3. Open a terminal in the \sample-app-MyWebForms-csharp directory.

  4. Build the docker image running the following command in the terminal:

    docker build -f Docusign.MyWebForms/Docusign.MyWebForms/Dockerfile -t docusign-mywebforms .
    
  5. Start the application (run the docker container) with the following command in the terminal:

    docker run -p 80:80 -d docusign-mywebforms
    
  6. Open a browser to localhost

License information

This repository uses the MIT License. See the LICENSE file for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •