This topic describes how to run the Electron demo.
Prerequisites
You have obtained authentication information from the console. For more information, see Console user guide.
Note
The token obtained from the console is for development and testing only. Using this token in a production environment poses a security threat. For your production environment, you must build a server to generate tokens and use the HTTPS protocol. For more information, see Generate a token on the server-side.
Procedure
Download and decompress the software development kit (SDK) and sample code from GitHub or Gitee.
In the `src/renderer/src/config.json` file, update the `appId` and `appKey` parameters with the values that you obtained from the console.
Run the demo:
npm install npm startPackage the demo:
# windows npm run build:win # mac npm run build:mac
该文章对您有帮助吗?