---
# System prepended metadata

title: Web 3.0 (IOTA Intergration-service sdk)
tags: [IOTA, 區塊鏈]

---

# Web 3.0 (IOTA Intergration-service sdk)
###### tags: `區塊鏈` `IOTA`


### 遇到安裝錯誤

1. 刪除 typebox.js 的 `schemas;`
2. 遇到: `ReferenceError: TextEncoder is not defined`，就在`node_modules/whatwg-url/lib/encoding.js` 加上 `const {TextDecoder, TextEncoder} = require("util");`
3. 注意都改成 SSI_BRIDGE_URL=http://localhost:3000、AUDIT_TRAIL_URL=http://localhost:3000
4.  `.env` 參考如下: 
```javascript=
#-----------------------
# For management purpose
#-----------------------
MONGO_URL=mongodb://root:root@mongo:27017
DB_NAME=intergration-service
SECRET_KEY=7w9gfhb123jngh4gd53z465fewcs569e


#---------------------
# Client configuration
#---------------------

# You can either choose a IS_GATEWAY_URL (used in production) 
# or the SSI_BRIDGE_URL AND AUDIT_TRAIL_URL (for local development)

API_KEY=4ed59704-9a26-11ec-a749-3f57454709b9
IS_GATEWAY_URL=http://localhost:3000

SSI_BRIDGE_URL=http://localhost:3000
AUDIT_TRAIL_URL=http://localhost:3000

#---------------------
# Optional variables
#---------------------
USE_GATEWAY_URL=false
```

