Giter VIP home page Giter VIP logo

sample-app-mywebforms-csharp's Introduction

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.

sample-app-mywebforms-csharp's People

Contributors

inbargazit avatar paigesrossi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.