1
1
# Docker Jolocom Interactions Demo
2
+ This is a demo of all interactions supported by the
3
+ [ JolocomSDK] ( https://github.com/jolocom/jolocom-sdk ) . There is a React based
4
+ frontend, and a Hapi based backend integrated with the JolocomSDK. It is meant
5
+ to be used with the [ Jolocom
6
+ SmartWallet] ( https://github.com/jolocom/smartwallet-app )
2
7
3
8
A hosted version of this demo is available at https://interxns.jolocom.io
4
9
@@ -11,13 +16,25 @@ described below
11
16
### Service Agent (Backend)
12
17
This requires an LTS version of Node: 10 or 12 or 14
13
18
19
+ The ` service_agent ` needs to know its "public" facing "host: port " address to be
20
+ able to embed it in the interaction tokens, such that the SmartWallet can find
21
+ the agent.
22
+
23
+ To successfully go through the demo while running locally, change the
24
+ ` SERVICE_HOSTPORT ` environment variable that is used in the ` yarn start ` command
25
+ below, to a value that the mobile phone can access, probably the LAN IP address
26
+ of the computer that is running the ` service_agent ` , assuming the test
27
+ SmartWallet is on the same LAN
28
+
14
29
``` sh
15
30
cd service_agent
16
31
yarn install
17
- yarn start
32
+ SERVICE_HOSTPORT= " 192.168.1.42:9000 " yarn start
18
33
```
19
34
20
35
### React App (Frontend)
36
+ In another terminal:
37
+
21
38
``` sh
22
39
cd frontend
23
40
yarn install
@@ -26,7 +43,18 @@ yarn start
26
43
Visit the frontend development server at http://localhost:3000
27
44
and open the Web Console to see debugging output
28
45
29
- ## Deployment instructions
46
+ ### Usage with the SmartWallet
47
+
48
+ The SmartWallet release builds require HTTP** S** connections, and cannot use
49
+ plain HTTP. To use this demo without SSL certificates (which is the case if
50
+ running in development) please use a ** staging** build of the SmartWallet on
51
+ Android, available for download here:
52
+ https://jolocom.io/wp-content/uploads/smartwallet/smartwallet-staging-1.11.1.apk
53
+
54
+ ## Production Deployment instructions
55
+ This demo is not suitable for any sort of "production" deployment, besides use
56
+ as a demo.
57
+
30
58
The repo comes with a [ docker-compose.yml] ( ./docker-compose.yml ) that is
31
59
suitable for deployment accompanied by https://github.com/jolocom/docker-nginx-proxy
32
60
which automatically adds HTTPS support by issuing SSL certificates through
@@ -40,18 +68,3 @@ The configuration for the domain is taken from environment variables in
40
68
SERVICE_HOSTPORT: 'interxns.jolocom.io'
41
69
VIRTUAL_HOST: 'interxns.jolocom.io'
42
70
```
43
-
44
- ### Usage with the SmartWallet
45
-
46
- The ` service_agent ` needs to know its "public" facing "host: port " address to be
47
- able to embed it in the interaction tokens, such the the SmartWallet can find
48
- the agent.
49
-
50
- To successfully go through the demo, change the ` SERVICE_HOSTPORT ` environment
51
- variable inside ` docker-compose.yml ` to a value that the mobile phone can
52
- access, probably the LAN IP address of the computer running the ` service_agent ` ,
53
- assuming the test SmartWallet is on the same LAN
54
-
55
- Also note that the SmartWallet release builds require HTTP** S** connections, and cannot use
56
- plain HTTP. To use this demo without SSL certificates please use a ** staging**
57
- build of the SmartWallet on Android, available for download here: https://jolocom.io/wp-content/uploads/smartwallet/smartwallet-staging-1.11.1.apk
0 commit comments