This is an Electron application, based on React and Webpack for rapid application development.
⚠ Requires a node version >= 7 and an npm version >= 4 ⚠
First, clone the repo via git:
$ git clone git@github.com:IT-PKS/kta-desktop.git
$ cd kta-desktop
$ git submodule update --init
And then install dependencies with yarn.
$ yarn
Note: If you can't use yarn for some reason, try npm install
.
Start the app in the development
environment. This starts the renderer process in hot-module-replacement mode and starts a server that sends hot updates to the renderer process:
$ yarn dev
For Windows:
$ yarn build-win
Then locate .exe file in release
folder for installation.
WIP
OS X: Cmd + Alt + I or F12
This project includes the following DevTools extensions:
- React Developer Tools - Install via electron-devtools-installer.
- Redux DevTools - Install via electron-devtools-installer.
You can find the tabs on Chrome DevTools.
See electron-builder CLI Usage
⚠ Please read following section before installing any dependencies ⚠
This project uses a two package.json structure. This means, you will have two package.json
files.
./package.json
in the root of your project./app/package.json
insideapp
folder
- If the module is native to a platform (like node-postgres or sqlite3) or otherwise should be included with the published package (i.e. bcrypt, openbci), it should be listed under
dependencies
in./package.json
and./app/package.json
. - If a module is
imported
by another module, include it independencies
in./package.json
. See this ESLint rule. Examples of such modules arematerial-ui
,redux-form
, andmoment
. - Otherwise, modules used for building, testing and debugging should be included in
devDependencies
in./package.json
.