This document aims to provide a quick start to the development for this app.
-
Since all the UI components are written in
React
and the main app functionality is embedded inside those components, the React code needs to be compiled into static JS which is done using webpack here. -
webpack-dev server
is used for quick UI development which hot reloads the UI components on changes.
-
Clone this repo and cd into it.
-
Install dependencies
npm install
-
- Building static
src/build/bundle.js
fromsrc/index.js
- Rebuilding native dependencies for electron version.
- Building native installer packages.
- Building static
npm run build
- Building static
src/build/bundle.js
fromsrc/index.js
and startingwebpack-dev
server to update js (including UI components) without refresh via HMR for faster development. Serves atlocalhost:1234
npm run build-watch
- Run electron app in dev mode which just runs page served by webpack server.
npm run start-dev
Start electron app from command line by
npm start
or install built executable.