Skip to content

NuLink-network/nulink-web-agent-integration-demo

Repository files navigation

NuLink web agent integration demo

NuLink agent integration demo is a demo for integration nulink-web-agent project.

How to Use

Build Source

1. Rename .env.example to .env
2. Modify config:
  // The SDK backend testnet server address. In the NuLink testnet,
  // you can use the address: https://agent.testnet.nulink.org/bk
  REACT_APP_CENTRALIZED_SERVER_URL=xxxxx
  // The SDK backend testnet server http(s) api base auth username and password. In the NuLink testnet,
  // you can use the address: REACT_APP_SERVER_USERNAME=nulink / REACT_APP_SERVER_PASSWORD=privacyshareisgood
  REACT_APP_SERVER_USERNAME=xxxxxx
  REACT_APP_SERVER_PASSWORD=xxxxxx
  // Your IPFS address, requires permission to write data. In the NuLink testnet,
  // you can use the address: https://agent.testnet.nulink.org/nuipfs
  REACT_APP_IPFS_NODE_URL=xxxxx

  // The SDK agent web address. In the NuLink testnet,
  // you can use the address: https://agent.testnet.nulink.org/
  REACT_APP_NULINK_AGENT_URL=xxxxx 
  
  // The Porter Server address in the NuLink testnet
  // you can ues this address: https://agent.testnet.nulink.org/porter
  REACT_APP_PORTER_URI=xxxxxx

3. yarn install
4. yarn build
5. yarn start