diff --git a/docs/main-and-renderer-process.md b/docs/main-and-renderer-process.md new file mode 100644 index 0000000..09c6a70 --- /dev/null +++ b/docs/main-and-renderer-process.md @@ -0,0 +1,9 @@ +# Main vs Renderer Process + +A **Vutron** application is divided into code into a Main process and a Renderer process. + +**"Main"** is the code of `src/main` and is mainly the process code handled by Electron. **"Renderer"** is the code of `src/renderer`, mainly for front-end rendering process like Vue. + +The script code of Main cannot be referenced in the Renderer or vice versa, and the two processes can communicate using `IPC`. + +Please see the article below for more details: https://www.electronjs.org/docs/latest/tutorial/ipc