This document describes how to quickly run the IM demo for Electron.
|Electron||v13.1.5 or later|
If you already have an app, record its SDKAppID and obtain key information.
A Tencent Cloud account can create a maximum of 300 IM apps. If you want to create a new app, disable and delete an unwanted app first. Once an app (along with its SDKAppID) is deleted, the provided services and all its data are lost. Please proceed with caution.
git clone https://github.com/tencentyun/im_electron_demo.git
// Root directory of the project npm install // Rendering process directory cd src/client npm install
// Root directory of the project npm start
// Build the project in macOS npm run build:mac // Build the project in Windows npm run build:windows
Currently, both macOS and Windows platforms are supported.
gypgyp ERR!ERRis reported during development environment installation?
Please see gypgyp ERR!ERR! .
npm run starton Mac?
The error occurs because the rendering process code is not completely built and the port 3000 opened by the main process points to an empty page. The error will be resolved after the rendering process code is completely built and you refresh the window. Alternatively, you can run
cd src/client && npm run dev:react and
npm run dev:electron to start the rendering process and main process separately.