Checking out the code
Create a remote fork of https://github.com/Taskana/TaskanaSimpleHistory/
Create a local clone
git clone https://github.com/<yourname>/Taskana/TaskanaSimpleHistory.git
Create a remote for the upstream project so that it is later easier to retrieve changes from the main repository.
cd taskana git remote add upstream https://github.com/Taskana/TaskanaSimpleHistory.git
Build the plugin
Taskana history library
cd lib mvn clean install
Rest Api
cd lib\taskana-simplehistory-rest-spring-example mvn spring-boot:run
Rest api will be available: http://localhost:8080/v1/task-history-event
How to include History service into taskana application?
Since history service is thought to be a plugin we have to include it into taskana application following next simple steps:
- Generate client bundle typing npm run build:prod at taskana/web folder (if it is not already generated)
- Install taskana rest project with the option -P history.plugin at taskana/rest folder mvn clean install -P history.plugin (It will create taskana-rest-spring-example-boot with history plugin dependencies)
- Run taskana application, just do mvn spring-boot:run -P history.plugin at taskana\rest\taskana-rest-spring-example-boot folder
- Go to http://localhost:8080 and you will get History module available.