It is recommended to use node14.x-16.x version, npm7.x+ version
- For web
src->config modify it to your own ip, but do not need to modify the port
export const WS_URL = "ws://14.29.213.197:10001";
export const API_URL = "http://14.29.213.197:10002";
export const USER_URL = "http://14.29.213.197:10008";-
Get dependencies from npm
npm install
-
Run and preview at local (web & electron)
npm run dev -
Build (web)
You can refer to the dependencies in the
package_build_web.jsonfile to reduce the size of the installation packagenpm run build -
Build (electron)
You can refer to the dependencies in the
package_build.jsonfile to reduce the size of the installation packageyou need update
utils/open_im_sdk_wasm/api/database/instance.jswasm import path first.- SQL = await initSqlJs({ locateFile: () => '/sql-wasm.wasm' }); + SQL = await initSqlJs({ locateFile: () => '../sql-wasm.wasm' });
npm run build:mac // or npm run build:win // or npm run build:linux
The best way to interact with our team is through GitHub.You can open an issue with this.You can also find some Doc in Our Developer Guide.
