-
UI
-
State & Store
-
Rest
-
Test on `Electron
-
Compiler
- Download and install node (https://nodejs.org/en/download/) LTS last version.
- git clone ....
- install dependencies.
npm install
Lift Application
and Mock Server
.
- Command
npm start
- The the
Application
starts onhttp://localhost:8080
. - The
Mock Json Server
starts onhttp://localhost:3000
.
- The
Mock Json Server
starts onhttp://localhost:3002/
. You can configure porttest:mock
which defined asscripts
command inpackage.json
- Resources use global api url(
http://localhost:3002/
). You can configure port ( checkstools/test/helper.ts
) - Executes
all unit tests
in__test__
folder.
npm test
Executes all unit tests
in __test__
folder.
npm run testd
- Export
Application Project
underbuild
folder.
npm run build
You can check all commands in package.json for more detail.
{
"start": "node ./tools/start.js",
"start:dev": "webpack-dev-server --port 8080 --config tools/app/dev/webpack.js --colors",
"start:mock": "json-server --watch tools/app/dev/db.json --port 3000 --static ./tools/app/dev/public",
"test": "node ./tools/test.js",
"testd": "node ./tools/testd.js",
"test:electron:debug": "electron-mocha --renderer --interactive --opts ./tools/test/mocha.opts",
"test:electron": "electron-mocha --renderer --opts ./tools/test/mocha.opts",
"test:mock": "json-server --watch tools/test/db.json --port 3002 --static ./tools/test/public",
"build": "rimraf ./build && node ./tools/build.js",
"build:app": "webpack --config tools/app/build/webpack.js --colors"
}