Part of bonita portal written using AngularJs
- node.js 18
- yarn > v0.27.5
- maven > 3.3.9
Please run yarn install
and yarn build
at least once before launching any of the following tasks
Before running project in development mode, you need to launch a Bonita backend available on URL http://localhost:8080/ Then launch:
yarn start
Project should be running at URL http://localhost:9000/bonita/portaljs/.
For instance, if you want to run the application-list page in development mode, with live update, you can do the following steps:
- Open the application list from the Admin app: http://localhost:8080/bonita/apps/adminAppEEBonita/admin-application-list/
- Open the Frame from the page context menu (install the "Open Frame" Chrome extension if needed)
- Replace http://localhost:8080/bonita/portal.js by http://localhost:9000/bonita/portaljs/ in the URL.
Now, you are running the application-list page in development mode, with live update!
yarn run test
yarn run test:watch
yarn run e2e
You can run specific e2e class test with this command line.
yarn run e2eOnly --specs=path_to_file.e2e.js
yarn run e2e:headless
yarn run e2e:headless
yarn run build
Localization keys can be extracted from source files to an .pot output file (./target/portal-js.pot). To do so, run the following command
yarn run pot
Project can also be built using maven
./mvnw clean package [-Pe2e]
This will build the project, package it in a zip file and, run end to end test if e2e profile is activated