Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

fhightower-tc/playbook-dev-tool

Repository files navigation

Playbook Dev Tool

Spaces app with tools to aid playbook development like JSON path search, JMES search, regex filtering, and more.

Getting Started

  1. Setup your environment for testing:
make setup
  1. 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.

  1. 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.

  1. 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>

Build App For Release

make pack

This will package the app as target/TCS_-_Playbook_Dev_Tool.tcx.

Build App in Development Mode (does not minify or uglify code, so it can be debugged in browser)

make pack-dev

Deploy

In the ThreatConnect UI install the App (the .tcx file) created in the Build App for Release section.

Credits

This package was created with Cookiecutter and Floyd Hightower's Spaces App Template.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published