Spaces app with tools to aid playbook development like JSON path search, JMES search, regex filtering, and more.
- Setup your environment for testing:
make setup
- Run the app to get started:
make run
This is using the ng serve command to run the app. You can leave this running and it will refresh to serve the most up to date version of the app as you make changes. Let's leave it running an open a new tab in your command line.
- Let's get familiar with the app by removing the pop-up that says "This is the start of something great!":
- Open
src/app/main.component.ts
- Remove the line that says:
this.messages.showSuccess('Success Message', 'This is the start of something great!');
Now check the app and you will see that the pop-up is no longer shown. The main.component.ts
file can be considered the quarter-back for the app. The routes are defined in src/app/app-routing.module.ts
and you can change a route by calling the goTo
function in main.component.ts
.
- To add a new component to the app, run:
cd src/app/
mkdir components # only have to do this the first time you create a component
cd components
ng generate component <COMPONENT_NAME>
make pack
This will package the app as target/TCS_-_Playbook_Dev_Tool.tcx
.
make pack-dev
In the ThreatConnect UI install the App (the .tcx
file) created in the Build App for Release section.
This package was created with Cookiecutter and Floyd Hightower's Spaces App Template.