You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. Install React dependencies using the [npm](https://www.npmjs.com/) package manager: **npm install**
62
+
3. Install python packages:
63
+
```shell
64
+
cd server
65
+
pip install -r requirements.txt
66
+
```
67
+
4. Install React dependencies using the [npm](https://www.npmjs.com/) package manager:
68
+
```shell
69
+
cd ../client
70
+
npm install
71
+
```
64
72
5. Update the **.env** file with the integration key and other settings.
65
-
> **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.
66
-
6. Navigate to [the admin demo Apps and Keys page](https://admindemo.docusign.com/authenticate?goTo=appsAndKeys), add the Redirect URI http://localhost:3000/callback and then hit save
73
+
> **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.
74
+
6. Navigate to [the admin demo Apps and Keys page](https://admindemo.docusign.com/authenticate?goTo=appsAndKeys), add the Redirect URI http://localhost:3000/callback and generate your RSA key pair if you haven't already.
67
75
68
76
> **Note:** You should add a dynamic content properties to your clickwrap by following this [instruction](https://developers.docusign.com/docs/click-api/click101/customize-elastic-template-fields/) before using it in the sample app.
69
77
78
+
7. Update the **private.key** file with your private RSA key.
79
+
8. Copy your **.env** and your **private.key** files into the server folder
80
+
```shell
81
+
cd ../
82
+
cp .env server/.env
83
+
cp private.key server/private.key
84
+
```
85
+
70
86
**Using installation scripts**
71
87
72
88
1. Download or clone this repository to your workstation in a new folder named **sample-app-insurance-python**.
@@ -86,8 +102,16 @@ All installation scripts are located in the **scripts** folder.
86
102
### Manual
87
103
88
104
1. Navigate to the application folder: **`cd sample-app-insurance-python`**
89
-
2. Run the application: **`flask run --port 5001`**
90
-
3. Run npm: **`npm start`**
105
+
2. Run the application:
106
+
```shell
107
+
cd server
108
+
flask run --port 5001
109
+
```
110
+
3. Run npm:
111
+
```shell
112
+
cd ../client
113
+
npm start
114
+
```
91
115
4. Open a browser to **http://localhost:3000**
92
116
93
117
### Using installation scripts
@@ -97,6 +121,18 @@ All installation scripts are located in the **scripts** folder.
97
121
2. Run the application script: **`./run.sh`**
98
122
3. Open a browser to **http://localhost:3000**
99
123
124
+
## Installing anf running the Insurance sample app using Docker
125
+
1. Navigate to the application folder: **`cd sample-app-insurance-python`**
126
+
2. Install dependencies:
127
+
```shell
128
+
docker compose build
129
+
```
130
+
3. Run the app:
131
+
```shell
132
+
docker compose up
133
+
```
134
+
4. Open a browser to **http://localhost:80**
135
+
100
136
### Configuring a Docusign payments gateway
101
137
Docusign offers built-in connections to multiple payment gateways. The payments example in this sample app uses a demo account for the Stripe gateway service.
0 commit comments