{"id":25553729,"url":"https://github.com/docusign/sample-app-cors-javascript","last_synced_at":"2025-04-11T22:43:04.794Z","repository":{"id":212565777,"uuid":"731728396","full_name":"docusign/sample-app-cors-javascript","owner":"docusign","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-18T23:01:31.000Z","size":2158,"stargazers_count":2,"open_issues_count":3,"forks_count":7,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-25T18:45:18.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/docusign.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-14T18:31:21.000Z","updated_at":"2025-02-18T23:02:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a24cda6-e54a-48d4-891c-2a0edd4ab701","html_url":"https://github.com/docusign/sample-app-cors-javascript","commit_stats":null,"previous_names":["docusign/sample-app-mycors-javascript"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docusign%2Fsample-app-cors-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docusign%2Fsample-app-cors-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docusign%2Fsample-app-cors-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/docusign%2Fsample-app-cors-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/docusign","download_url":"https://codeload.github.com/docusign/sample-app-cors-javascript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492992,"owners_count":21113159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-20T12:01:24.518Z","updated_at":"2025-04-11T22:43:04.760Z","avatar_url":"https://github.com/docusign.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CORS Sample Application: React\n\n## Introduction\n\nThe CORS Sample App is a Docusign sample application that shows how to construct Single Page Applications (SPAs) that leverage Docusign support for Cross-Origin Resource Sharing (CORS). This sample application is created using React.js. You can find a live instance running at [https://cors.sampleapps.docusign.com/](https://cors.sampleapps.docusign.com/).\n\nThe CORS Sample App demonstrates the following:\n\n1. **Authentication** with Docusign via [Implicit Grant](https://developers.docusign.com/platform/auth/implicit/).\n2. **Send Insurance Card:**\n   This example uses the Docusign [eSignature REST API](https://developers.docusign.com/docs/esign-rest-api/) to request a signature by email with [Document Generation](https://developers.docusign.com/docs/esign-rest-api/how-to/request-signature-email-document-generation/) using a predefined template in docx format.\n3. **Know Your Customer:**\n   This example uses the Docusign [eSignature REST API](https://developers.docusign.com/docs/esign-rest-api/) to request a signature through your application using [Embedded Signing](https://developers.docusign.com/docs/esign-rest-api/how-to/request-signature-in-app-embedded/).\n\n## Prerequisites\n\n- Create a Docusign [Developer Account](https://www.docusign.com/developers/sandbox).\n- Create an application on the [Apps and Keys](https://admindemo.docusign.com/authenticate?goTo=appsAndKeys) page.\n- Set Authentication Method for your application to Implicit Grant. Under User Application: Is your application able to securely store a client secret, select No.\n\n- Add redirect URIs:\n  - `{ PROTOCOL }://{ DOMAIN }/`\n  - `{ PROTOCOL }://{ DOMAIN }/oauth-response-handler/`\n  - `{ PROTOCOL }://{ DOMAIN }/ds-response-handler/`\n- Update CORS Configuration:\n\n  - Origin URLs: `{ PROTOCOL }://{ DOMAIN }`\n  - Allowed HTTP Methods: GET, POST, PUT\n\n- Installed and configured [Node.js](https://nodejs.org/en/download)\n- Installed and configured [Docker](https://www.docker.com/)\n\n### Variables configuration\n\nCreate a copy of the file .env.example, save the copy as .env, and fill in the data:\n\n- REACT_APP_OAUTH_CLIENT_ID - integration key of the application created in section \"Create an application on the Apps and Keys page\" above (GUID)\n- REACT_APP_OAUTH_RETURN_URL - internal redirection URL that is used during the authentication\n- REACT_APP_DS_RETURN_URL - internal redirection URL that is used during the enbedded signing process\n\n## Local installation instructions (without Docker)\n\n1. Clone the git repository to your local machine.\n2. Open a terminal in /sample-app-mycors-javascript directory.\n3. Install required application packages runing the following command in the terminal:\n   ```\n   npm install\n   ```\n4. Start the application runing the following command in the terminal:\n\n   ```\n   npm start\n   ```\n\n5. Open a browser to [localhost:3000](http://localhost:3000) (if the page is not openned automatically after step #4).\n\n## Local installation instructions (using Docker)\n\n1. Clone the git repository to your local machine.\n2. Open a terminal in /sample-app-mycors-javascript directory.\n3. Build the docker image runing the following command in the terminal:\n   ```\n   docker build -t docusign_sample_mycors .\n   ```\n4. Start the application (run the Docker container) with the following command in the terminal:\n\n   ```\n   docker run -p 80:80 -d docusign_sample_mycors\n   ```\n\n5. Open a browser to [localhost](http://localhost)\n\n## License information\n\nThis repository uses the MIT License. See the [LICENSE](./LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocusign%2Fsample-app-cors-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdocusign%2Fsample-app-cors-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdocusign%2Fsample-app-cors-javascript/lists"}