You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,10 @@
2
2
3
3
This is an example electron/create-react-app application, and serves as an example of how to structure your project if you want to share pieces of your codebase between electron and react.
4
4
5
-
## Project structure
5
+
## Usage
6
6
7
-
-`electron/`: Code for the main Electron process
8
-
-`src/react/`: Code for the React renderer process
9
-
-`src/shared/`: Code shared between React and Electron
10
-
-`package.json`: Contains scripts for running the app in development, building it, and packaging it for production using electron-builder
7
+
- Clone this repository
8
+
- cd into the directory and run `npm install`
11
9
12
10
## Development
13
11
@@ -20,6 +18,13 @@ This is an example electron/create-react-app application, and serves as an examp
20
18
- A new `dist` folder will be created in the root of your project containing the executable files
21
19
NOTE: add `--mac` to the `postpackage` script besides `--win` if you are on a mac computer
22
20
21
+
## Project structure
22
+
23
+
-`electron/`: Code for the main Electron process
24
+
-`src/react/`: Code for the React renderer process
25
+
-`src/shared/`: Code shared between React and Electron
26
+
-`package.json`: Contains scripts for running the app in development, building it, and packaging it for production using electron-builder
0 commit comments