- There is a file:
electron/main.js
. First change theconst debug = false;
toconst debug = true;
- In the project directory, you can run:
npm run react-start
. Keep the terminal window open. This will start ReactJs front service. - In the project directory, you can run:
npm run start
. The application should pop up and in development setting.
- In the project directory, you can run:
npm run build
. This step will package the code from ReactJs - In the project directory, you can run:
npm run package
. The application should be packaged by electron-forge. The output of the application will be available in a folder calledout/
- Never push your rule directly into main. Get a branch, push your code, open a pull request and wait for Github Action to pass and others to approve your code.
- Always set
const debug
tofalse
when push your code change to the repository.
- Always use IPC from electron to communicate to the machine if you are in render processes. In render processes, if you want to communicate with main process, then function name should be always be in this format
ipcRenderer.invoke('requestXxxxx',)
. In main processes, if you want to communicate with renderer processes, then function name should be always be in this formatxxx.webContents.send('distributeXxxx',)
.