Build & run
Run yarn on ./taskana/web directory
Run taskana-rest-spring-example [Standalone mode] with Login screen
...
Install all dependencies
path: /taskana/webCode Block language bash
...
yarn install
Build taskana-web application in production mode
path: /taskana/web
Code Block language bash yarn build:prod
Build taskana-web dependency
path: /taskana
Code Block language bash
...
.
...
/mvnw clean install -pl :taskana-web
taskana\web\src\environments\data-sources\environment-information.json contains the definition of the external configuration needed for taskana web application, currently exists next options:
"taskanaRestUrl": empty string by default, if you have to change it, just modify with the corresponding REST api url.
if taskanaRestUrl is empty string, web application will use the same machine where it's running as REST url, for instance if you are running the application at http://localhost:8080 the requests will point to http://localhost:8080/v1/...
"taskanaLogoutUrl": empty string by default, if you have to change it, just modify with the corresponding REST api url. This property should point to the logout url desired.
[Optional]: Modify ./rest\taskana-rest-spring-example-boot\src\main\resources\application.properties enableCsrf=false if you're planning to use the REST Service without the Frontend.
Build taskana project
path: /taskana
Code Block language bash
...
./mvnw clean install
Run taskana-rest-spring-example-boot
...
[Optional]: You can add some (exemplary) SPI implementations into our demo app by activating the following profiles:
Profile | Dependency | Description |
---|---|---|
history.plugin |
| simple history + REST Service for retrieving history events |
historyLogging.plugin |
| History events will be logged out |
dmn-routing.plugin |
| DMN-TaskRouter Implementation + REST Service to upload DMN-Excel file |
path: /taskana
Code Block | ||
---|---|---|
| ||
./mvnw spring-boot:run -pl :taskana-rest-spring-example-boot
|
Run taskana-rest-spring-example-boot [Developer mode] without Login screen, user is: admin/admin
Run web application in developer mode
...
...
path: /taskana/web
Code Block language bash yarn start
Modify ./rest\taskana-rest-spring-example-boot\src\main\resources\application.properties devMode=true
Build taskana-rest-spring-example-boot
path: /taskana
Code Block language bash
...
./mvnw install -pl :taskana-rest-spring-example-boot -am
Run taskana-rest-spring-example-boot
path: /taskana
Code Block language bash
...
./mvnw spring-boot:run -pl :taskana-rest-spring-example-boot
Before creating a Pull request
Taskana web application runs Jslint, tests and production bundling before deployment, to make sure that your code is 100% functional run next commands before creating a PR.
Linting and create production code.
codelanguage bash title path: /taskana/web
Code Block language bash yarn build:prod
Run linting
Code Block language bash title path: /taskana/web
Code Block language bash yarn lint
Run tests locally.
codelanguage bash title path: /taskana/web
Code Block language bash yarn test
Run End-to-End tests. (Taskana needs to be running)
Code Block language bashtitle path: /taskana/web
Code Block language bash yarn e2e-dev