From 1e556be21593d67164084eeadd5e2c7c029ce865 Mon Sep 17 00:00:00 2001 From: leejooy96 Date: Tue, 8 Nov 2022 10:32:50 +0900 Subject: [PATCH] docs: add main-and-renderer-process doc --- docs/main-and-renderer-process.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/main-and-renderer-process.md 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