-
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 installLift Applicationand Mock Server.
- Command
npm start- The the
Applicationstarts onhttp://localhost:8080. - The
Mock Json Serverstarts onhttp://localhost:3000.
- The
Mock Json Serverstarts onhttp://localhost:3002/. You can configure porttest:mockwhich defined asscriptscommand inpackage.json - Resources use global api url(
http://localhost:3002/). You can configure port ( checkstools/test/helper.ts) - Executes
all unit testsin__test__folder.
npm testExecutes all unit tests in __test__ folder.
npm run testd- Export
Application Projectunderbuildfolder.
npm run buildYou 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"
}