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
code ccf-app-samples # open samples repository in Visual studio code
46
53
47
54
# In the VScode terminal window
48
-
cd decentralized-authz-app # Navigate to app folder
49
-
npm run build # Build and create the application deployment bundle
55
+
cd decentralized-authz-app # Navigate to app folder
56
+
make build # Build and create the application deployment bundle
50
57
```
51
58
52
-
## Local Deployment
59
+
Now the environment is ready, and there are several scenarios that could be executed at this stage.
60
+
61
+
-**Run the application's [e2e-tests](./test/test.sh) in a sandbox (simulated) environment**
62
+
63
+
-`make test`
64
+
65
+
-**Run the application's [e2e-tests](./test/test.sh) on a Docker Container running a virtual (simulated) environment**
66
+
67
+
-`make test-docker-virtual`
68
+
69
+
-**Start a CCF network with 1 active member and 2 users using the sandbox and deploy the application to it, the application and network are ready to receive requests**
70
+
71
+
-`make start-host`
72
+
73
+
These are the main scenarios; more commands are available at makefile and are described in the following section.
74
+
75
+
### Make file
76
+
77
+
A Makefile provides a front-end to interact with the project. It is used both locally, during CI, and on GitHub Actions. This Makefile is self-documented, and has the following targets:
78
+
79
+
```text
80
+
help 💬 This help message :)
81
+
build 🔨 Build the Application
82
+
build-virtual 📦 Build Virtual container image from Dockerfile
83
+
build-enclave 📦 Build Enclave container image from Dockerfile
84
+
start-host 🏃 Start the CCF network using Sandbox.sh
85
+
test 🧪 Test the Data Reconciliation Application in the sandbox
86
+
test-docker-virtual 🧪 Test the Data Reconciliation Application in a Docker sandbox
87
+
test-docker-enclave 🧪 Test the Data Reconciliation Application in a Docker enclave
88
+
clean 🧹 Clean the working folders created during build/demo
89
+
```
90
+
91
+
## Testing
92
+
93
+
```bash
94
+
cd data-reconciliation-app # Navigate to reconciliation sample folder
0 commit comments