see Project Board
yarnwill install all modules needed.yarn startwill start the Electron app and the React app at the same time.yarn buildwill build the React app and package it along the Electron app.
- Fork or Clone or Download the code
- cd in the folder, containing the package.json (root folder of the app)
- Run
yarn(install it withnpm install --global yarn) - When completed, run
yarn build - You will find build files in .\tomato-timer\dist
- Main and only file for electron is a electron.js, located in ./public
- electron.js renders index.html in the same solder
- In HTML's file body, you can find
<div id="root"></div>. This div is an entry point for a React app
- ./src/index.js renders ./src/App.js into the
<div id="root">, stated above - ./src/App.js renders component called ClockPage, located in ./src/components/ClockPage.js
- ./src/components/ClockPage.js is a Main UI, that you will see on app startup