Add onboarding API endpoint in app stack for sumsub token (#2)

Part of [Sumsub KYC integration in onboarding app](https://www.notion.so/Sumsub-KYC-integration-in-onboarding-app-607b598c9c1d4d12adc71725e2ab5e7e)

Reviewed-on: #2
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
This commit is contained in:
Nabarun 2024-07-27 15:32:03 +00:00 committed by nabarun
parent 1e3e592b10
commit 4ffbf87ec5
3 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,7 @@ services:
CERC_LACONICD_DENOM: ${CERC_LACONICD_DENOM:-photon}
CERC_FAUCET_ENDPOINT: ${CERC_FAUCET_ENDPOINT:-http://localhost:4000}
CERC_WALLET_META_URL: ${CERC_WALLET_META_URL:-http://localhost:3000}
CERC_SUMSUB_API_ENDPOINT: ${CERC_SUMSUB_API_ENDPOINT:-http://localhost:3001}
command: ["bash", "/scripts/onboarding-app-start.sh"]
volumes:
- ../config/app/onboarding-app-start.sh:/scripts/onboarding-app-start.sh

View File

@ -13,6 +13,7 @@ echo "CERC_LACONICD_RPC_ENDPOINT: ${CERC_LACONICD_RPC_ENDPOINT}"
echo "CERC_LACONICD_DENOM: ${CERC_LACONICD_DENOM}"
echo "CERC_FAUCET_ENDPOINT: ${CERC_FAUCET_ENDPOINT}"
echo "CERC_WALLET_META_URL: ${CERC_WALLET_META_URL}"
echo "CERC_SUMSUB_API_ENDPOINT: ${CERC_SUMSUB_API_ENDPOINT}"
# Build with required env
REACT_APP_WALLET_CONNECT_ID=$WALLET_CONNECT_ID \
@ -23,6 +24,7 @@ REACT_APP_LACONICD_RPC_ENDPOINT=$CERC_LACONICD_RPC_ENDPOINT \
REACT_APP_LACONICD_DENOM=$CERC_LACONICD_DENOM \
REACT_APP_FAUCET_ENDPOINT=$CERC_FAUCET_ENDPOINT \
REACT_APP_WALLET_META_URL=$CERC_WALLET_META_URL \
REACT_APP_SUMSUB_API_ENDPOINT=$CERC_SUMSUB_API_ENDPOINT \
yarn build
http-server -p 80 /app/build

View File

@ -74,6 +74,9 @@ Instructions for running the `testnet-onboarding-app` using [laconic-so](https:/
# laconic wallet meta URL (default: http://localhost:3000)
CERC_WALLET_META_URL=
# Onboarding API endpoint (default: http://localhost:3001)
CERC_SUMSUB_API_ENDPOINT=
```
## Start the deployment