# Clone this repository
git clone https://github.com/web1992/call-the-roll
# Go into the repository
cd call-the-roll
# Install dependencies
npm install
# Run the app
npm start
Electron 代码调试
you can debug use
Debug Main Process
orDebug Renderer Process
Debug Main Process
is formain.js
Debug Renderer Process
is forrenderer.js
andhelper.js
debug 有两种模式
在 vscode/launch.json
配置调试
Debug Main Process
调试main.js
中的代码Debug Renderer Process
调试renderer.js
andhelper.js
中的代码
dom 调试
取消main.js
中的代码注释,可打开chrome
调试控制台,如下:
//mainWindow.webContents.openDevTools();
npm run build
-
electronjs.org/docs - all of Electron's documentation
-
electronjs.org/community#boilerplates - sample starter apps created by the community
-
electron/electron-quick-start - a very basic starter Electron app
-
electron/simple-samples - small applications with ideas for taking them further
-
electron/electron-api-demos - an Electron app that teaches you how to use Electron
-
hokein/electron-sample-apps - small demo apps for the various Electron APIs